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

Helper class for basic canvas functionality. More...

#include <ogl_bitmapcanvashelper.hxx>

Inheritance diagram for oglcanvas::BitmapCanvasHelper:
[legend]
Collaboration diagram for oglcanvas::BitmapCanvasHelper:
[legend]

Public Member Functions

 BitmapCanvasHelper ()
 
void disposing ()
 Release all references. More...
 
void init (css::rendering::XGraphicDevice &rDevice, SpriteDeviceHelper &rDeviceHelper, const css::geometry::IntegerSize2D &rSize)
 Initialize canvas helper. More...
 
const css::geometry::IntegerSize2D & getSize () const
 
css::uno::Reference< css::rendering::XBitmap > getScaledBitmap (const css::geometry::RealSize2D &newSize, bool beFast)
 
css::uno::Sequence< sal_Int8getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect)
 
css::uno::Sequence< sal_Int8getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos)
 
css::rendering::IntegerBitmapLayout getMemoryLayout () const
 
- Public Member Functions inherited from oglcanvas::CanvasHelper
 CanvasHelper ()
 
 ~CanvasHelper ()
 
CanvasHelperoperator= (const CanvasHelper &)
 
void disposing ()
 Release all references. More...
 
void init (css::rendering::XGraphicDevice &rDevice, SpriteDeviceHelper &rDeviceHelper)
 Initialize canvas helper. More...
 
void clear ()
 
void drawLine (const css::rendering::XCanvas *pCanvas, const css::geometry::RealPoint2D &aStartPoint, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
void drawBezier (const css::rendering::XCanvas *pCanvas, const css::geometry::RealBezierSegment2D &aBezierSegment, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XCachedPrimitive > drawPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XCachedPrimitive > strokePolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes)
 
css::uno::Reference< css::rendering::XCachedPrimitive > strokeTexturedPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::rendering::StrokeAttributes &strokeAttributes)
 
css::uno::Reference< css::rendering::XCachedPrimitive > strokeTextureMappedPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping, const css::rendering::StrokeAttributes &strokeAttributes)
 
css::uno::Reference< css::rendering::XPolyPolygon2D > queryStrokeShapes (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes)
 
css::uno::Reference< css::rendering::XCachedPrimitive > fillPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XCachedPrimitive > fillTexturedPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures)
 
css::uno::Reference< css::rendering::XCachedPrimitive > fillTextureMappedPolyPolygon (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping)
 
css::uno::Reference< css::rendering::XCanvasFont > createFont (const css::rendering::XCanvas *pCanvas, const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &fontMatrix)
 
css::uno::Sequence< css::rendering::FontInfo > queryAvailableFonts (const css::rendering::XCanvas *pCanvas, const css::rendering::FontInfo &aFilter, const css::uno::Sequence< css::beans::PropertyValue > &aFontProperties)
 
css::uno::Reference< css::rendering::XCachedPrimitive > drawText (const css::rendering::XCanvas *pCanvas, const css::rendering::StringContext &text, const css::uno::Reference< css::rendering::XCanvasFont > &xFont, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, sal_Int8 textDirection)
 
css::uno::Reference< css::rendering::XCachedPrimitive > drawTextLayout (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XTextLayout > &layoutetText, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XCachedPrimitive > drawBitmap (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XCachedPrimitive > drawBitmapModulated (const css::rendering::XCanvas *pCanvas, const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
css::uno::Reference< css::rendering::XGraphicDevice > getDevice ()
 
bool renderRecordedActions () const
 Write out recorded actions. More...
 
size_t getRecordedActionCount () const
 Retrieve number of recorded actions. More...
 
SpriteDeviceHelpergetDeviceHelper () const
 
css::rendering::XGraphicDevice * getDevice () const
 

Private Attributes

css::geometry::IntegerSize2D maSize
 

Additional Inherited Members

- Public Types inherited from oglcanvas::CanvasHelper
typedef o3tl::cow_wrapper< std::vector< Action >, o3tl::ThreadSafeRefCountingPolicyRecordVectorT
 

Detailed Description

Helper class for basic canvas functionality.

Definition at line 23 of file ogl_bitmapcanvashelper.hxx.

Constructor & Destructor Documentation

oglcanvas::BitmapCanvasHelper::BitmapCanvasHelper ( )

Definition at line 23 of file ogl_bitmapcanvashelper.cxx.

Member Function Documentation

void oglcanvas::BitmapCanvasHelper::disposing ( )

Release all references.

Definition at line 26 of file ogl_bitmapcanvashelper.cxx.

References oglcanvas::CanvasHelper::disposing().

css::uno::Sequence< sal_Int8 > oglcanvas::BitmapCanvasHelper::getData ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerRectangle2D &  rect 
)
rendering::IntegerBitmapLayout oglcanvas::BitmapCanvasHelper::getMemoryLayout ( ) const

Definition at line 60 of file ogl_bitmapcanvashelper.cxx.

References getSize(), and canvas::tools::getStdMemoryLayout().

css::uno::Sequence< sal_Int8 > oglcanvas::BitmapCanvasHelper::getPixel ( css::rendering::IntegerBitmapLayout &  bitmapLayout,
const css::geometry::IntegerPoint2D &  pos 
)
css::uno::Reference< css::rendering::XBitmap > oglcanvas::BitmapCanvasHelper::getScaledBitmap ( const css::geometry::RealSize2D &  newSize,
bool  beFast 
)
const css::geometry::IntegerSize2D& oglcanvas::BitmapCanvasHelper::getSize ( ) const
inline

Definition at line 52 of file ogl_bitmapcanvashelper.hxx.

References maSize.

Referenced by getMemoryLayout().

void oglcanvas::BitmapCanvasHelper::init ( css::rendering::XGraphicDevice &  rDevice,
SpriteDeviceHelper rDeviceHelper,
const css::geometry::IntegerSize2D &  rSize 
)

Initialize canvas helper.

This method late-initializes the canvas helper, providing it with the necessary device and output objects. Note that the CanvasHelper does not take ownership of the passed rDevice reference, nor does it perform any reference counting. Thus, to prevent the reference counted SpriteCanvas object from deletion, the user of this class is responsible for holding ref-counted references itself!

Parameters
rDeviceReference device this canvas is associated with

Definition at line 31 of file ogl_bitmapcanvashelper.cxx.

References oglcanvas::CanvasHelper::init(), and maSize.

Member Data Documentation

css::geometry::IntegerSize2D oglcanvas::BitmapCanvasHelper::maSize
private

Definition at line 69 of file ogl_bitmapcanvashelper.hxx.

Referenced by getSize(), and init().


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