LibreOffice Module canvas (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dxcanvas::DXSurfaceBitmap Class Reference

#include <dx_surfacebitmap.hxx>

Inheritance diagram for dxcanvas::DXSurfaceBitmap:
[legend]
Collaboration diagram for dxcanvas::DXSurfaceBitmap:
[legend]

Public Member Functions

 DXSurfaceBitmap (const ::basegfx::B2IVector &rSize, const std::shared_ptr< canvas::ISurfaceProxyManager > &rMgr, const IDXRenderModuleSharedPtr &rRenderModule, bool bWithAlpha)
 
bool resize (const ::basegfx::B2IVector &rSize)
 
void clear ()
 
virtual GraphicsSharedPtr getGraphics () override
 
virtual BitmapSharedPtr getBitmap () const override
 
virtual ::basegfx::B2IVector getSize () const override
 
virtual bool hasAlpha () const override
 
COMReference< surface_typegetSurface () const
 
bool draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DHomMatrix &rTransform)
 
bool draw (const ::basegfx::B2IRange &rArea)
 
bool draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DRange &rArea, const ::basegfx::B2DHomMatrix &rTransform)
 
bool draw (double fAlpha, const ::basegfx::B2DPoint &rPos, const ::basegfx::B2DPolyPolygon &rClipPoly, const ::basegfx::B2DHomMatrix &rTransform)
 
virtual css::uno::Sequence< sal_Int8getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void setData (const css::uno::Sequence< sal_Int8 > &data, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void setPixel (const css::uno::Sequence< sal_Int8 > &color, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::uno::Sequence< sal_Int8getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
- Public Member Functions inherited from dxcanvas::GraphicsProvider
 GraphicsProvider ()=default
 
virtual ~GraphicsProvider ()
 
 GraphicsProvider (const GraphicsProvider &)=delete
 make noncopyable More...
 
GraphicsProvideroperator= (const GraphicsProvider &)=delete
 

Private Member Functions

void init ()
 

Private Attributes

GDIPlusUserSharedPtr mpGdiPlusUser
 
::basegfx::B2IVector maSize
 
IDXRenderModuleSharedPtr mpRenderModule
 
std::shared_ptr< canvas::ISurfaceProxyManagermpSurfaceManager
 
std::shared_ptr< canvas::ISurfaceProxympSurfaceProxy
 
COMReference< surface_typempSurface
 
BitmapSharedPtr mpGDIPlusBitmap
 
GraphicsSharedPtr mpGraphics
 
std::shared_ptr< canvas::IColorBuffermpColorBuffer
 
bool mbIsSurfaceDirty
 
bool mbAlpha
 

Detailed Description

Definition at line 32 of file dx_surfacebitmap.hxx.

Constructor & Destructor Documentation

dxcanvas::DXSurfaceBitmap::DXSurfaceBitmap ( const ::basegfx::B2IVector rSize,
const std::shared_ptr< canvas::ISurfaceProxyManager > &  rMgr,
const IDXRenderModuleSharedPtr rRenderModule,
bool  bWithAlpha 
)

Definition at line 188 of file dx_surfacebitmap.cxx.

References createInstance(), and init().

Member Function Documentation

void dxcanvas::DXSurfaceBitmap::clear ( )

Definition at line 273 of file dx_surfacebitmap.cxx.

References getGraphics().

bool dxcanvas::DXSurfaceBitmap::draw ( double  fAlpha,
const ::basegfx::B2DPoint rPos,
const ::basegfx::B2DHomMatrix rTransform 
)

Definition at line 378 of file dx_surfacebitmap.cxx.

References mbIsSurfaceDirty, and mpSurfaceProxy.

bool dxcanvas::DXSurfaceBitmap::draw ( const ::basegfx::B2IRange rArea)

Definition at line 395 of file dx_surfacebitmap.cxx.

References mbIsSurfaceDirty, and mpSurfaceProxy.

bool dxcanvas::DXSurfaceBitmap::draw ( double  fAlpha,
const ::basegfx::B2DPoint rPos,
const ::basegfx::B2DRange rArea,
const ::basegfx::B2DHomMatrix rTransform 
)

Definition at line 360 of file dx_surfacebitmap.cxx.

References mbIsSurfaceDirty, and mpSurfaceProxy.

bool dxcanvas::DXSurfaceBitmap::draw ( double  fAlpha,
const ::basegfx::B2DPoint rPos,
const ::basegfx::B2DPolyPolygon rClipPoly,
const ::basegfx::B2DHomMatrix rTransform 
)

Definition at line 342 of file dx_surfacebitmap.cxx.

References mbIsSurfaceDirty, and mpSurfaceProxy.

BitmapSharedPtr dxcanvas::DXSurfaceBitmap::getBitmap ( ) const
overridevirtual
uno::Sequence< sal_Int8 > dxcanvas::DXSurfaceBitmap::getData ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
overridevirtual
GraphicsSharedPtr dxcanvas::DXSurfaceBitmap::getGraphics ( )
overridevirtual
uno::Sequence< sal_Int8 > dxcanvas::DXSurfaceBitmap::getPixel ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
overridevirtual
basegfx::B2IVector dxcanvas::DXSurfaceBitmap::getSize ( ) const
overridevirtual

Implements dxcanvas::IBitmap.

Definition at line 211 of file dx_surfacebitmap.cxx.

References maSize.

COMReference<surface_type> dxcanvas::DXSurfaceBitmap::getSurface ( ) const
inline

Definition at line 49 of file dx_surfacebitmap.hxx.

References mpSurface.

bool dxcanvas::DXSurfaceBitmap::hasAlpha ( ) const
overridevirtual

Implements dxcanvas::IBitmap.

Definition at line 285 of file dx_surfacebitmap.cxx.

References mbAlpha.

Referenced by getBitmap(), getData(), getGraphics(), getPixel(), setData(), and setPixel().

void dxcanvas::DXSurfaceBitmap::init ( )
private
bool dxcanvas::DXSurfaceBitmap::resize ( const ::basegfx::B2IVector rSize)

Definition at line 258 of file dx_surfacebitmap.cxx.

References init(), and maSize.

void dxcanvas::DXSurfaceBitmap::setData ( const css::uno::Sequence< sal_Int8 > &  data,
const css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
overridevirtual
void dxcanvas::DXSurfaceBitmap::setPixel ( const css::uno::Sequence< sal_Int8 > &  color,
const css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
overridevirtual

Member Data Documentation

::basegfx::B2IVector dxcanvas::DXSurfaceBitmap::maSize
private

Definition at line 92 of file dx_surfacebitmap.hxx.

Referenced by getBitmap(), getPixel(), getSize(), init(), resize(), and setPixel().

bool dxcanvas::DXSurfaceBitmap::mbAlpha
private

Definition at line 130 of file dx_surfacebitmap.hxx.

Referenced by hasAlpha(), and init().

bool dxcanvas::DXSurfaceBitmap::mbIsSurfaceDirty
mutableprivate

Definition at line 127 of file dx_surfacebitmap.hxx.

Referenced by draw(), getGraphics(), setData(), and setPixel().

std::shared_ptr<canvas::IColorBuffer> dxcanvas::DXSurfaceBitmap::mpColorBuffer
private

Definition at line 121 of file dx_surfacebitmap.hxx.

Referenced by init().

BitmapSharedPtr dxcanvas::DXSurfaceBitmap::mpGDIPlusBitmap
private

Definition at line 116 of file dx_surfacebitmap.hxx.

Referenced by getBitmap(), getData(), getPixel(), init(), setData(), and setPixel().

GDIPlusUserSharedPtr dxcanvas::DXSurfaceBitmap::mpGdiPlusUser
private

Definition at line 89 of file dx_surfacebitmap.hxx.

GraphicsSharedPtr dxcanvas::DXSurfaceBitmap::mpGraphics
private

Definition at line 118 of file dx_surfacebitmap.hxx.

Referenced by getGraphics(), and init().

IDXRenderModuleSharedPtr dxcanvas::DXSurfaceBitmap::mpRenderModule
private

Definition at line 99 of file dx_surfacebitmap.hxx.

Referenced by init().

COMReference<surface_type> dxcanvas::DXSurfaceBitmap::mpSurface
private
std::shared_ptr<canvas::ISurfaceProxyManager> dxcanvas::DXSurfaceBitmap::mpSurfaceManager
private

Definition at line 103 of file dx_surfacebitmap.hxx.

Referenced by init().

std::shared_ptr< canvas::ISurfaceProxy > dxcanvas::DXSurfaceBitmap::mpSurfaceProxy
private

Definition at line 107 of file dx_surfacebitmap.hxx.

Referenced by draw(), and init().


The documentation for this class was generated from the following files: