LibreOffice Module canvas (master) 1
|
Helper class for basic canvas functionality. More...
#include <ogl_bitmapcanvashelper.hxx>
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_Int8 > | getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) |
css::uno::Sequence< sal_Int8 > | getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) |
css::rendering::IntegerBitmapLayout | getMemoryLayout () const |
Public Member Functions inherited from oglcanvas::CanvasHelper | |
CanvasHelper () | |
~CanvasHelper () | |
CanvasHelper & | operator= (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... | |
SpriteDeviceHelper * | getDeviceHelper () 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::ThreadSafeRefCountingPolicy > | RecordVectorT |
Helper class for basic canvas functionality.
Definition at line 21 of file ogl_bitmapcanvashelper.hxx.
oglcanvas::BitmapCanvasHelper::BitmapCanvasHelper | ( | ) |
Definition at line 21 of file ogl_bitmapcanvashelper.cxx.
void oglcanvas::BitmapCanvasHelper::disposing | ( | ) |
Release all references.
Definition at line 24 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 58 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 | ||
) |
|
inline |
Definition at line 50 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!
rDevice | Reference device this canvas is associated with |
Definition at line 29 of file ogl_bitmapcanvashelper.cxx.
References oglcanvas::CanvasHelper::init(), and maSize.
|
private |
Definition at line 67 of file ogl_bitmapcanvashelper.hxx.