LibreOffice Module drawinglayer (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D Class Referencefinal

PolyPolygonSelectionPrimitive2D class. More...

#include <PolyPolygonSelectionPrimitive2D.hxx>

Inheritance diagram for drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D:
[legend]
Collaboration diagram for drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D:
[legend]

Public Member Functions

 PolyPolygonSelectionPrimitive2D (basegfx::B2DPolyPolygon aPolyPolygon, const basegfx::BColor &rColor, double fTransparence, double fDiscreteGrow, bool bFill)
 constructor More...
 
const basegfx::B2DPolyPolygongetB2DPolyPolygon () const
 data read access More...
 
const basegfx::BColorgetColor () const
 
double getTransparence () const
 
double getDiscreteGrow () const
 
bool getFill () const
 
virtual bool operator== (const BasePrimitive2D &rPrimitive) const override
 compare operator More...
 
virtual basegfx::B2DRange getB2DRange (const geometry::ViewInformation2D &rViewInformation) const override
 get range More...
 
virtual sal_uInt32 getPrimitive2DID () const override
 provide unique ID More...
 
- Public Member Functions inherited from drawinglayer::primitive2d::DiscreteMetricDependentPrimitive2D
 DiscreteMetricDependentPrimitive2D ()
 constructor More...
 
double getDiscreteUnit () const
 data read access More...
 
virtual void get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
 Override standard getDecomposition to be view-dependent here. More...
 
- Public Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D
 BufferedDecompositionPrimitive2D ()
 
virtual void get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
 The getDecomposition default implementation will on demand use create2DDecomposition() if maBuffered2DDecomposition is empty. More...
 
void setTransparenceForShadow (sal_uInt16 nTransparenceForShadow)
 
sal_uInt16 getTransparenceForShadow () const
 
- Public Member Functions inherited from drawinglayer::primitive2d::BasePrimitive2D
 BasePrimitive2D ()
 
virtual ~BasePrimitive2D () override
 
virtual bool operator== (const BasePrimitive2D &rPrimitive) const
 the ==operator is mainly needed to allow testing newly-created primitives against their last incarnation which buffers/holds the made decompositions. More...
 
bool operator!= (const BasePrimitive2D &rPrimitive) const
 
virtual basegfx::B2DRange getB2DRange (const geometry::ViewInformation2D &rViewInformation) const
 The default implementation will use getDecomposition results to create the range. More...
 
virtual sal_uInt32 getPrimitive2DID () const =0
 provide unique ID for fast identifying of known primitive implementations in renderers. More...
 
virtual void get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const
 The default implementation will return an empty sequence. More...
 
Primitive2DContainer getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters)
 The getDecomposition implementation for UNO API will use getDecomposition from this implementation. More...
 
css::geometry::RealRectangle2D getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters)
 The getRange implementation for UNO API will use getRange from this implementation. More...
 
virtual sal_Int64 estimateUsage ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Member Functions

virtual void create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override
 local decomposition. More...
 

Private Attributes

basegfx::B2DPolyPolygon maPolyPolygon
 the tools::PolyPolygon geometry More...
 
basegfx::BColor maColor
 the color More...
 
double mfTransparence
 the transparence [0.0 .. 1.0] More...
 
double mfDiscreteGrow
 the discrete grow size ('pixels'), only positive values allowed More...
 
bool mbFill: 1
 draw polygons filled when fill is set More...
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from drawinglayer::primitive2d::BufferedDecompositionPrimitive2D
const Primitive2DContainergetBuffered2DDecomposition () const
 access methods to maBuffered2DDecomposition. More...
 
void setBuffered2DDecomposition (Primitive2DContainer &&rNew)
 
virtual void create2DDecomposition (Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const =0
 method which is to be used to implement the local decomposition of a 2D primitive. More...
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

PolyPolygonSelectionPrimitive2D class.

This primitive defines a tools::PolyPolygon which gets filled with a defined color and a defined transparence, but also gets extended ('grown') by the given discrete size (thus being a view-dependent primitive)

Definition at line 37 of file PolyPolygonSelectionPrimitive2D.hxx.

Constructor & Destructor Documentation

◆ PolyPolygonSelectionPrimitive2D()

drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::PolyPolygonSelectionPrimitive2D ( basegfx::B2DPolyPolygon  aPolyPolygon,
const basegfx::BColor rColor,
double  fTransparence,
double  fDiscreteGrow,
bool  bFill 
)

constructor

Definition at line 73 of file PolyPolygonSelectionPrimitive2D.cxx.

References maColor, and maPolyPolygon.

Member Function Documentation

◆ create2DDecomposition()

void drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::create2DDecomposition ( Primitive2DContainer rContainer,
const geometry::ViewInformation2D rViewInformation 
) const
overrideprivatevirtual

◆ getB2DPolyPolygon()

const basegfx::B2DPolyPolygon & drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getB2DPolyPolygon ( ) const
inline

data read access

Definition at line 68 of file PolyPolygonSelectionPrimitive2D.hxx.

References maPolyPolygon.

Referenced by create2DDecomposition(), getB2DRange(), and operator==().

◆ getB2DRange()

basegfx::B2DRange drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getB2DRange ( const geometry::ViewInformation2D rViewInformation) const
overridevirtual

◆ getColor()

const basegfx::BColor & drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getColor ( ) const
inline

Definition at line 69 of file PolyPolygonSelectionPrimitive2D.hxx.

References maColor.

Referenced by create2DDecomposition(), and operator==().

◆ getDiscreteGrow()

double drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getDiscreteGrow ( ) const
inline

◆ getFill()

bool drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getFill ( ) const
inline

Definition at line 72 of file PolyPolygonSelectionPrimitive2D.hxx.

Referenced by create2DDecomposition(), and operator==().

◆ getPrimitive2DID()

sal_uInt32 drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getPrimitive2DID ( ) const
overridevirtual

◆ getTransparence()

double drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::getTransparence ( ) const
inline

Definition at line 70 of file PolyPolygonSelectionPrimitive2D.hxx.

Referenced by create2DDecomposition(), and operator==().

◆ operator==()

bool drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::operator== ( const BasePrimitive2D rPrimitive) const
overridevirtual

Member Data Documentation

◆ maColor

basegfx::BColor drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::maColor
private

the color

Definition at line 45 of file PolyPolygonSelectionPrimitive2D.hxx.

◆ maPolyPolygon

basegfx::B2DPolyPolygon drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::maPolyPolygon
private

the tools::PolyPolygon geometry

Definition at line 42 of file PolyPolygonSelectionPrimitive2D.hxx.

◆ mbFill

bool drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::mbFill
private

draw polygons filled when fill is set

Definition at line 54 of file PolyPolygonSelectionPrimitive2D.hxx.

◆ mfDiscreteGrow

double drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::mfDiscreteGrow
private

the discrete grow size ('pixels'), only positive values allowed

Definition at line 51 of file PolyPolygonSelectionPrimitive2D.hxx.

◆ mfTransparence

double drawinglayer::primitive2d::PolyPolygonSelectionPrimitive2D::mfTransparence
private

the transparence [0.0 .. 1.0]

Definition at line 48 of file PolyPolygonSelectionPrimitive2D.hxx.


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