LibreOffice Module cppcanvas (master) 1
Classes | Public Member Functions | List of all members
cppcanvas::internal::Action Class Referenceabstract

Interface for internal render actions. More...

#include <action.hxx>

Inheritance diagram for cppcanvas::internal::Action:
[legend]

Classes

struct  Subset
 Used for rendering action subsets. More...
 

Public Member Functions

virtual ~Action ()
 
virtual bool render (const ::basegfx::B2DHomMatrix &rTransformation) const =0
 Render this action to the associated canvas. More...
 
virtual bool renderSubset (const ::basegfx::B2DHomMatrix &rTransformation, const Subset &rSubset) const =0
 Render the given part of the action to the associated canvas. More...
 
virtual ::basegfx::B2DRange getBounds (const ::basegfx::B2DHomMatrix &rTransformation) const =0
 Query bounds of this action on the associated canvas. More...
 
virtual ::basegfx::B2DRange getBounds (const ::basegfx::B2DHomMatrix &rTransformation, const Subset &rSubset) const =0
 Query bounds for the given part of the action on the associated canvas. More...
 
virtual sal_Int32 getActionCount () const =0
 Query action count. More...
 

Detailed Description

Interface for internal render actions.

This interface is implemented by all objects generated from the metafile renderer, and corresponds roughly to the VCL meta action.

Definition at line 41 of file action.hxx.

Constructor & Destructor Documentation

◆ ~Action()

virtual cppcanvas::internal::Action::~Action ( )
inlinevirtual

Definition at line 77 of file action.hxx.

Member Function Documentation

◆ getActionCount()

virtual sal_Int32 cppcanvas::internal::Action::getActionCount ( ) const
pure virtual

Query action count.

This method returns the number of subset actions contained in this action. The render( Subset ) method must accept subset ranges up to the value returned here.

Returns
the number of subset actions

◆ getBounds() [1/2]

virtual ::basegfx::B2DRange cppcanvas::internal::Action::getBounds ( const ::basegfx::B2DHomMatrix rTransformation) const
pure virtual

Query bounds of this action on the associated canvas.

Parameters
rTransformationTransformation matrix to apply
Returns
the bounds for this action in device coordinate space.

◆ getBounds() [2/2]

virtual ::basegfx::B2DRange cppcanvas::internal::Action::getBounds ( const ::basegfx::B2DHomMatrix rTransformation,
const Subset rSubset 
) const
pure virtual

Query bounds for the given part of the action on the associated canvas.

Parameters
rTransformationTransformation matrix to apply.
rSubsetSubset of the action to query. See Subset description for index semantics.
Returns
the bounds for the given subset in device coordinate space.

◆ render()

virtual bool cppcanvas::internal::Action::render ( const ::basegfx::B2DHomMatrix rTransformation) const
pure virtual

Render this action to the associated canvas.

Parameters
rTransformationTransformation matrix to apply before rendering
Returns
true, if rendering was successful. If rendering failed, false is returned.

Implemented in cppcanvas::internal::CachedPrimitiveBase, and cppcanvas::internal::CachedPrimitiveBase.

◆ renderSubset()

virtual bool cppcanvas::internal::Action::renderSubset ( const ::basegfx::B2DHomMatrix rTransformation,
const Subset rSubset 
) const
pure virtual

Render the given part of the action to the associated canvas.

Parameters
rTransformationTransformation matrix to apply before rendering
rSubsetSubset of the action to render. See Subset description for index semantics.
Returns
true, if rendering was successful. If the specified subset is invalid for this action, or if rendering failed for other reasons, false is returned.

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