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

PolygonStrokePrimitive3D class. More...

#include <polygonprimitive3d.hxx>

Inheritance diagram for drawinglayer::primitive3d::PolygonStrokePrimitive3D:
[legend]
Collaboration diagram for drawinglayer::primitive3d::PolygonStrokePrimitive3D:
[legend]

Public Member Functions

 PolygonStrokePrimitive3D (basegfx::B3DPolygon aPolygon, const attribute::LineAttribute &rLineAttribute, attribute::StrokeAttribute aStrokeAttribute)
 constructor More...
 
const basegfx::B3DPolygongetB3DPolygon () const
 data read access More...
 
const attribute::LineAttributegetLineAttribute () const
 
const attribute::StrokeAttributegetStrokeAttribute () const
 
virtual bool operator== (const BasePrimitive3D &rPrimitive) const override
 compare operator More...
 
- Public Member Functions inherited from drawinglayer::primitive3d::BufferedDecompositionPrimitive3D
 BufferedDecompositionPrimitive3D ()
 
virtual Primitive3DContainer get3DDecomposition (const geometry::ViewInformation3D &rViewInformation) const override
 The getDecomposition default implementation will on demand use create3DDecomposition() if maBuffered3DDecomposition is empty. More...
 
- Public Member Functions inherited from drawinglayer::primitive3d::BasePrimitive3D
 BasePrimitive3D ()
 
virtual ~BasePrimitive3D () override
 
virtual bool operator== (const BasePrimitive3D &rPrimitive) const
 the ==operator is mainly needed to allow testing newly-created high level primitives against their last incarnation which buffers/holds the decompositions. More...
 
bool operator!= (const BasePrimitive3D &rPrimitive) const
 
virtual basegfx::B3DRange getB3DRange (const geometry::ViewInformation3D &rViewInformation) const
 This method is for places where using the C++ implementation directly is possible. More...
 
virtual sal_uInt32 getPrimitive3DID () const =0
 provide unique ID for fast identifying of known primitive implementations in renderers. More...
 
virtual Primitive3DContainer get3DDecomposition (const geometry::ViewInformation3D &rViewInformation) const
 The default implementation returns an empty sequence. More...
 
virtual css::uno::Sequence< ::css::uno::Reference< ::css::graphic::XPrimitive3D > > SAL_CALL getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) override
 The getDecomposition implementation for UNO API will use getDecomposition from this implementation. More...
 
virtual css::geometry::RealRectangle3D SAL_CALL getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) override
 the getRange default implementation will use getDecomposition to create the range information from merging getRange results from the single local decomposition primitives. More...
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

virtual Primitive3DContainer create3DDecomposition (const geometry::ViewInformation3D &rViewInformation) const override
 local decomposition. More...
 

Private Attributes

basegfx::B3DPolygon maPolygon
 the line geometry More...
 
attribute::LineAttribute maLineAttribute
 the line attributes like width, join and color More...
 
attribute::StrokeAttribute maStrokeAttribute
 the line stroking (if used) More...
 

Additional Inherited Members

- Protected Member Functions inherited from drawinglayer::primitive3d::BufferedDecompositionPrimitive3D
const Primitive3DContainergetBuffered3DDecomposition () const
 access methods to maBuffered3DDecomposition. More...
 
void setBuffered3DDecomposition (const Primitive3DContainer &rNew)
 
virtual Primitive3DContainer create3DDecomposition (const geometry::ViewInformation3D &rViewInformation) const
 method which is to be used to implement the local decomposition of a 2D primitive. More...
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

PolygonStrokePrimitive3D class.

This primitive defines a 3D line with line width, line join, line color and stroke attributes. It will be decomposed dependent on the definition to the needed primitives, e.g. filled Tubes for fat lines.

Definition at line 82 of file polygonprimitive3d.hxx.

Constructor & Destructor Documentation

◆ PolygonStrokePrimitive3D()

drawinglayer::primitive3d::PolygonStrokePrimitive3D::PolygonStrokePrimitive3D ( basegfx::B3DPolygon  aPolygon,
const attribute::LineAttribute rLineAttribute,
attribute::StrokeAttribute  aStrokeAttribute 
)

constructor

Member Function Documentation

◆ create3DDecomposition()

virtual Primitive3DContainer drawinglayer::primitive3d::PolygonStrokePrimitive3D::create3DDecomposition ( const geometry::ViewInformation3D rViewInformation) const
overrideprivatevirtual

local decomposition.

Reimplemented from drawinglayer::primitive3d::BufferedDecompositionPrimitive3D.

◆ getB3DPolygon()

const basegfx::B3DPolygon & drawinglayer::primitive3d::PolygonStrokePrimitive3D::getB3DPolygon ( ) const
inline

data read access

Definition at line 105 of file polygonprimitive3d.hxx.

References maPolygon.

Referenced by drawinglayer::primitive3d::ImplPrimitive3DIDBlock(), and operator==().

◆ getLineAttribute()

const attribute::LineAttribute & drawinglayer::primitive3d::PolygonStrokePrimitive3D::getLineAttribute ( ) const
inline

◆ getStrokeAttribute()

const attribute::StrokeAttribute & drawinglayer::primitive3d::PolygonStrokePrimitive3D::getStrokeAttribute ( ) const
inline

◆ operator==()

bool drawinglayer::primitive3d::PolygonStrokePrimitive3D::operator== ( const BasePrimitive3D rPrimitive) const
overridevirtual

compare operator

Reimplemented from drawinglayer::primitive3d::BasePrimitive3D.

Definition at line 130 of file polygonprimitive3d.cxx.

References getB3DPolygon(), getLineAttribute(), and getStrokeAttribute().

Member Data Documentation

◆ maLineAttribute

attribute::LineAttribute drawinglayer::primitive3d::PolygonStrokePrimitive3D::maLineAttribute
private

the line attributes like width, join and color

Definition at line 89 of file polygonprimitive3d.hxx.

Referenced by getLineAttribute().

◆ maPolygon

basegfx::B3DPolygon drawinglayer::primitive3d::PolygonStrokePrimitive3D::maPolygon
private

the line geometry

Definition at line 86 of file polygonprimitive3d.hxx.

Referenced by getB3DPolygon().

◆ maStrokeAttribute

attribute::StrokeAttribute drawinglayer::primitive3d::PolygonStrokePrimitive3D::maStrokeAttribute
private

the line stroking (if used)

Definition at line 92 of file polygonprimitive3d.hxx.

Referenced by getStrokeAttribute().


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