LibreOffice Module cppcanvas (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cppcanvas::internal::ImplPolyPolygon Class Reference

#include <implpolypolygon.hxx>

Inheritance diagram for cppcanvas::internal::ImplPolyPolygon:
[legend]
Collaboration diagram for cppcanvas::internal::ImplPolyPolygon:
[legend]

Public Member Functions

 ImplPolyPolygon (const CanvasSharedPtr &rParentCanvas, css::uno::Reference< css::rendering::XPolyPolygon2D > xPolyPoly)
 
virtual ~ImplPolyPolygon () override
 
virtual void setRGBAFillColor (IntSRGBA) override
 Set polygon fill color. More...
 
virtual void setRGBALineColor (IntSRGBA) override
 Set polygon line color. More...
 
virtual IntSRGBA getRGBALineColor () const override
 Get polygon line color. More...
 
virtual void setStrokeWidth (const double &rStrokeWidth) override
 
virtual double getStrokeWidth () const override
 
virtual bool draw () const override
 Render to parent canvas. More...
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > getUNOPolyPolygon () const override
 
virtual void setRGBAFillColor (IntSRGBA)=0
 Set polygon fill color. More...
 
virtual void setRGBALineColor (IntSRGBA)=0
 Set polygon line color. More...
 
virtual IntSRGBA getRGBALineColor () const =0
 Get polygon line color. More...
 
virtual void setStrokeWidth (const double &rStrokeWidth)=0
 
virtual double getStrokeWidth () const =0
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > getUNOPolyPolygon () const =0
 
- 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...
 

Private Member Functions

 ImplPolyPolygon (const ImplPolyPolygon &)=delete
 
ImplPolyPolygonoperator= (const ImplPolyPolygon &)=delete
 

Private Attributes

const css::uno::Reference< css::rendering::XPolyPolygon2D > mxPolyPoly
 
css::rendering::StrokeAttributes maStrokeAttributes
 
css::uno::Sequence< double > maFillColor
 
css::uno::Sequence< double > maStrokeColor
 
bool mbFillColorSet
 
bool mbStrokeColorSet
 

Additional Inherited Members

- Protected Member Functions inherited from cppcanvas::internal::CanvasGraphicHelper
const CanvasSharedPtrgetCanvas () const
 
const css::rendering::RenderState & getRenderState () const
 
 CanvasGraphicHelper (CanvasSharedPtr xParentCanvas)
 
virtual void setTransformation (const ::basegfx::B2DHomMatrix &rMatrix) override
 Set object transformation matrix. More...
 
virtual void setClip (const ::basegfx::B2DPolyPolygon &rClipPoly) override
 Set object clipping polygon. More...
 
virtual void setClip () override
 Clear object clipping polygon. More...
 
virtual void setCompositeOp (sal_Int8 aOp) override
 Set object composite mode. More...
 

Detailed Description

Definition at line 38 of file implpolypolygon.hxx.

Constructor & Destructor Documentation

◆ ImplPolyPolygon() [1/2]

cppcanvas::internal::ImplPolyPolygon::ImplPolyPolygon ( const CanvasSharedPtr rParentCanvas,
css::uno::Reference< css::rendering::XPolyPolygon2D >  xPolyPoly 
)

◆ ~ImplPolyPolygon()

ImplPolyPolygon::~ImplPolyPolygon ( )
overridevirtual

Definition at line 55 of file implpolypolygon.cxx.

◆ ImplPolyPolygon() [2/2]

cppcanvas::internal::ImplPolyPolygon::ImplPolyPolygon ( const ImplPolyPolygon )
privatedelete

Member Function Documentation

◆ draw()

bool ImplPolyPolygon::draw ( ) const
overridevirtual

Render to parent canvas.

This method renders the content to the parent canvas, i.e. the canvas this object was constructed for.

Returns
whether the rendering finished successfully.

Implements cppcanvas::CanvasGraphic.

Definition at line 86 of file implpolypolygon.cxx.

References maFillColor, maStrokeAttributes, and mxPolyPoly.

◆ getRGBALineColor()

IntSRGBA ImplPolyPolygon::getRGBALineColor ( ) const
overridevirtual

Get polygon line color.

Implements cppcanvas::PolyPolygon.

Definition at line 71 of file implpolypolygon.cxx.

References cppcanvas::tools::doubleSequenceToIntSRGBA().

◆ getStrokeWidth()

double ImplPolyPolygon::getStrokeWidth ( ) const
overridevirtual

Implements cppcanvas::PolyPolygon.

Definition at line 81 of file implpolypolygon.cxx.

References maStrokeAttributes.

◆ getUNOPolyPolygon()

uno::Reference< rendering::XPolyPolygon2D > ImplPolyPolygon::getUNOPolyPolygon ( ) const
overridevirtual

Implements cppcanvas::PolyPolygon.

Definition at line 126 of file implpolypolygon.cxx.

References mxPolyPoly.

◆ operator=()

ImplPolyPolygon & cppcanvas::internal::ImplPolyPolygon::operator= ( const ImplPolyPolygon )
privatedelete

◆ setRGBAFillColor()

void ImplPolyPolygon::setRGBAFillColor ( IntSRGBA  )
overridevirtual

Set polygon fill color.

Implements cppcanvas::PolyPolygon.

Definition at line 59 of file implpolypolygon.cxx.

References cppcanvas::tools::intSRGBAToDoubleSequence(), and maFillColor.

◆ setRGBALineColor()

void ImplPolyPolygon::setRGBALineColor ( IntSRGBA  )
overridevirtual

Set polygon line color.

Implements cppcanvas::PolyPolygon.

Definition at line 65 of file implpolypolygon.cxx.

References cppcanvas::tools::intSRGBAToDoubleSequence().

◆ setStrokeWidth()

void ImplPolyPolygon::setStrokeWidth ( const double &  rStrokeWidth)
overridevirtual

Implements cppcanvas::PolyPolygon.

Definition at line 76 of file implpolypolygon.cxx.

References maStrokeAttributes.

Member Data Documentation

◆ maFillColor

css::uno::Sequence< double > cppcanvas::internal::ImplPolyPolygon::maFillColor
private

Definition at line 67 of file implpolypolygon.hxx.

◆ maStrokeAttributes

css::rendering::StrokeAttributes cppcanvas::internal::ImplPolyPolygon::maStrokeAttributes
private

Definition at line 65 of file implpolypolygon.hxx.

◆ maStrokeColor

css::uno::Sequence< double > cppcanvas::internal::ImplPolyPolygon::maStrokeColor
private

Definition at line 68 of file implpolypolygon.hxx.

◆ mbFillColorSet

bool cppcanvas::internal::ImplPolyPolygon::mbFillColorSet
private

Definition at line 69 of file implpolypolygon.hxx.

◆ mbStrokeColorSet

bool cppcanvas::internal::ImplPolyPolygon::mbStrokeColorSet
private

Definition at line 70 of file implpolypolygon.hxx.

◆ mxPolyPoly

const css::uno::Reference< css::rendering::XPolyPolygon2D > cppcanvas::internal::ImplPolyPolygon::mxPolyPoly
private

Definition at line 63 of file implpolypolygon.hxx.


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