LibreOffice Module canvas (master) 1
|
#include <ogl_canvascustomsprite.hxx>
Public Member Functions | |
CanvasCustomSprite (const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice, SpriteDeviceHelper &rDeviceHelper) | |
Create a custom sprite. More... | |
virtual void | disposeThis () override |
virtual void SAL_CALL | setAlpha (double alpha) override |
virtual void SAL_CALL | move (const css::geometry::RealPoint2D &aNewPos, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual void SAL_CALL | transform (const css::geometry::AffineMatrix2D &aTransformation) override |
virtual void SAL_CALL | clip (const css::uno::Reference< css::rendering::XPolyPolygon2D > &aClip) override |
virtual void SAL_CALL | setPriority (double nPriority) override |
virtual void SAL_CALL | show () override |
virtual void SAL_CALL | hide () override |
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL | getContentCanvas () override |
double | getPriority () const |
bool | renderSprite () const |
Render sprite content at sprite position. More... | |
Public Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > | |
CanvasBase () | |
Create CanvasBase. More... | |
virtual void | disposeThis () override |
virtual void SAL_CALL | clear () override |
virtual void SAL_CALL | drawPoint (const css::geometry::RealPoint2D &aPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual void SAL_CALL | drawLine (const css::geometry::RealPoint2D &aStartPoint, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual void SAL_CALL | drawBezier (const css::geometry::RealBezierSegment2D &aBezierSegment, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | drawPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | strokePolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | strokeTexturedPolyPolygon (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) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | strokeTextureMappedPolyPolygon (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) override |
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL | queryStrokeShapes (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | fillPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | fillTexturedPolyPolygon (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) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | fillTextureMappedPolyPolygon (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) override |
virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL | createFont (const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &fontMatrix) override |
virtual css::uno::Sequence< css::rendering::FontInfo > SAL_CALL | queryAvailableFonts (const css::rendering::FontInfo &aFilter, const css::uno::Sequence< css::beans::PropertyValue > &aFontProperties) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | drawText (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) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | drawTextLayout (const css::uno::Reference< css::rendering::XTextLayout > &laidOutText, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | drawBitmap (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL | drawBitmapModulated (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override |
virtual css::uno::Reference< css::rendering::XGraphicDevice > SAL_CALL | getDevice () override |
Private Attributes | |
SpriteCanvasRef | mpSpriteCanvas |
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) More... | |
const css::geometry::RealSize2D | maSize |
css::uno::Reference< css::rendering::XPolyPolygon2D > | mxClip |
css::geometry::AffineMatrix2D | maTransformation |
::basegfx::B2DPoint | maPosition |
double | mfAlpha |
double | mfPriority |
Additional Inherited Members | |
Public Types inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > | |
typedef Base | BaseType |
typedef Mutex | MutexType |
typedef UnambiguousBase | UnambiguousBaseType |
Protected Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > | |
~CanvasBase () | |
Protected Attributes inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > | |
CanvasHelper | maCanvasHelper |
bool | mbSurfaceDirty |
Definition at line 37 of file ogl_canvascustomsprite.hxx.
oglcanvas::CanvasCustomSprite::CanvasCustomSprite | ( | const css::geometry::RealSize2D & | rSpriteSize, |
const SpriteCanvasRef & | rRefDevice, | ||
SpriteDeviceHelper & | rDeviceHelper | ||
) |
Create a custom sprite.
rSpriteSize | Size of the sprite in pixel |
rRefDevice | Associated output device |
rSpriteCanvas | Target canvas |
rDevice | Target DX device |
Definition at line 32 of file ogl_canvascustomsprite.cxx.
References ENSURE_OR_THROW, canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::maCanvasHelper, maTransformation, mpSpriteCanvas, and canvas::tools::setIdentityAffineMatrix2D().
|
overridevirtual |
Definition at line 91 of file ogl_canvascustomsprite.cxx.
References mxClip.
|
overridevirtual |
Reimplemented from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >.
Definition at line 48 of file ogl_canvascustomsprite.cxx.
References canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::disposeThis(), m_aMutex, and mpSpriteCanvas.
|
overridevirtual |
Definition at line 116 of file ogl_canvascustomsprite.cxx.
|
inline |
Definition at line 72 of file ogl_canvascustomsprite.hxx.
References mfPriority.
|
overridevirtual |
Definition at line 109 of file ogl_canvascustomsprite.cxx.
References m_aMutex, and mpSpriteCanvas.
|
overridevirtual |
Definition at line 66 of file ogl_canvascustomsprite.cxx.
References m_aMutex, maPosition, canvas::tools::mergeViewAndRenderTransform(), and canvas::tools::verifyArgs().
bool oglcanvas::CanvasCustomSprite::renderSprite | ( | ) | const |
Render sprite content at sprite position.
Definition at line 121 of file ogl_canvascustomsprite.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), i, canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::maCanvasHelper, maPosition, maSize, maTransformation, mfAlpha, mfPriority, mxClip, and oglcanvas::renderOSD().
|
overridevirtual |
Definition at line 58 of file ogl_canvascustomsprite.cxx.
References alpha, m_aMutex, mfAlpha, and canvas::tools::verifyRange().
|
overridevirtual |
Definition at line 96 of file ogl_canvascustomsprite.cxx.
References m_aMutex, and mfPriority.
|
overridevirtual |
Definition at line 102 of file ogl_canvascustomsprite.cxx.
References m_aMutex, and mpSpriteCanvas.
|
overridevirtual |
Definition at line 85 of file ogl_canvascustomsprite.cxx.
References m_aMutex, and maTransformation.
|
private |
Definition at line 86 of file ogl_canvascustomsprite.hxx.
Referenced by move(), and renderSprite().
|
private |
Definition at line 82 of file ogl_canvascustomsprite.hxx.
Referenced by renderSprite().
|
private |
Definition at line 85 of file ogl_canvascustomsprite.hxx.
Referenced by CanvasCustomSprite(), renderSprite(), and transform().
|
private |
Definition at line 87 of file ogl_canvascustomsprite.hxx.
Referenced by renderSprite(), and setAlpha().
|
private |
Definition at line 88 of file ogl_canvascustomsprite.hxx.
Referenced by getPriority(), renderSprite(), and setPriority().
|
private |
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)
Definition at line 81 of file ogl_canvascustomsprite.hxx.
Referenced by disposeThis(), hide(), and show().
|
private |
Definition at line 84 of file ogl_canvascustomsprite.hxx.
Referenced by clip(), and renderSprite().