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

#include <renderer.hxx>

Inheritance diagram for cppcanvas::Renderer:
[legend]
Collaboration diagram for cppcanvas::Renderer:
[legend]

Classes

struct  Parameters
 Parameters for the Renderer. More...
 

Public Member Functions

virtual bool drawSubset (sal_Int32 nStartIndex, sal_Int32 nEndIndex) const =0
 Render subset of metafile to given canvas. More...
 
virtual ::basegfx::B2DRange getSubsetArea (sal_Int32 nStartIndex, sal_Int32 nEndIndex) const =0
 Query bounding box of metafile subset. More...
 
- Public Member Functions inherited from cppcanvas::CanvasGraphic
virtual ~CanvasGraphic ()
 
virtual void setTransformation (const ::basegfx::B2DHomMatrix &rMatrix)=0
 Set object transformation matrix. More...
 
virtual void setClip (const ::basegfx::B2DPolyPolygon &rClipPoly)=0
 Set object clipping polygon. More...
 
virtual void setClip ()=0
 Clear object clipping polygon. More...
 
virtual void setCompositeOp (sal_Int8 aOp)=0
 Set object composite mode. More...
 
virtual bool draw () const =0
 Render to parent canvas. More...
 

Detailed Description

Definition at line 41 of file renderer.hxx.

Member Function Documentation

◆ drawSubset()

virtual bool cppcanvas::Renderer::drawSubset ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
) const
pure virtual

Render subset of metafile to given canvas.

This method renders the given subset of the content to the associated canvas.

Parameters
nStartIndexThe index of the first action to be rendered (the indices correspond roughly to the action indices of the originating GDIMetaFile. Note, although, that certain actions, e.g. text, accounts for more than one index: a text produces as many addressable indices as it has characters).
nEndIndexThe index of the first action not painted anymore, i.e. the action after the last action rendered (the indices correspond roughly to the action indices of the originating GDIMetaFile. Note, although, that certain actions, e.g. text, accounts for more than one index: a text produces as many addressable indices as it has characters).
Returns
whether the rendering finished successfully.

Implemented in cppcanvas::internal::ImplRenderer.

◆ getSubsetArea()

virtual ::basegfx::B2DRange cppcanvas::Renderer::getSubsetArea ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
) const
pure virtual

Query bounding box of metafile subset.

This method queries the actual bounding box of the given subset, when rendered on the associated canvas.

Parameters
nStartIndexThe index of the first action to be rendered (the indices correspond roughly to the action indices of the originating GDIMetaFile. Note, although, that certain actions, e.g. text, accounts for more than one index: a text produces as many addressable indices as it has characters).
nEndIndexThe index of the first action not painted anymore, i.e. the action after the last action rendered (the indices correspond roughly to the action indices of the originating GDIMetaFile. Note, although, that certain actions, e.g. text, accounts for more than one index: a text produces as many addressable indices as it has characters).
Returns
the bounding box of the specified subset

Implemented in cppcanvas::internal::ImplRenderer.


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