LibreOffice Module drawinglayer (master) 1
|
UnifiedTransparencePrimitive2D class. More...
#include <unifiedtransparenceprimitive2d.hxx>
Public Member Functions | |
UnifiedTransparencePrimitive2D (Primitive2DContainer &&rChildren, double fTransparence) | |
constructor More... | |
double | getTransparence () const |
data read access More... | |
virtual bool | operator== (const BasePrimitive2D &rPrimitive) const override |
compare operator More... | |
virtual basegfx::B2DRange | getB2DRange (const geometry::ViewInformation2D &rViewInformation) const override |
own getB2DRange implementation to include transparent geometries to BoundRect calculations More... | |
virtual void | get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override |
create decomposition More... | |
virtual sal_uInt32 | getPrimitive2DID () const override |
provide unique ID More... | |
Public Member Functions inherited from drawinglayer::primitive2d::GroupPrimitive2D | |
GroupPrimitive2D (Primitive2DContainer &&aChildren) | |
constructor More... | |
const Primitive2DContainer & | getChildren () const |
data read access More... | |
void | getChildren (Primitive2DDecompositionVisitor &rVisitor) const |
virtual bool | operator== (const BasePrimitive2D &rPrimitive) const override |
compare operator More... | |
virtual void | get2DDecomposition (Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override |
local decomposition. Implementation will just return children More... | |
virtual sal_uInt32 | getPrimitive2DID () const override |
provide unique ID More... | |
virtual sal_Int64 | estimateUsage () override |
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 Attributes | |
double | mfTransparence |
the unified transparence 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 salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
UnifiedTransparencePrimitive2D class.
This primitive encapsulates a child hierarchy and defines that it shall be visualized with the given transparency. That transparency is unique for all contained geometry, so that e.g. overlapping polygons in the child geometry will not show regions of combined transparency, but be all rendered with the defined, single transparency.
Definition at line 38 of file unifiedtransparenceprimitive2d.hxx.
drawinglayer::primitive2d::UnifiedTransparencePrimitive2D::UnifiedTransparencePrimitive2D | ( | Primitive2DContainer && | rChildren, |
double | fTransparence | ||
) |
constructor
Definition at line 35 of file unifiedtransparenceprimitive2d.cxx.
|
overridevirtual |
create decomposition
Reimplemented from drawinglayer::primitive2d::GroupPrimitive2D.
Definition at line 62 of file unifiedtransparenceprimitive2d.cxx.
References basegfx::utils::createPolygonFromRect(), getB2DRange(), drawinglayer::primitive2d::GroupPrimitive2D::getChildren(), getTransparence(), and drawinglayer::primitive2d::Primitive2DDecompositionVisitor::visit().
|
overridevirtual |
own getB2DRange implementation to include transparent geometries to BoundRect calculations
Reimplemented from drawinglayer::primitive2d::BasePrimitive2D.
Definition at line 55 of file unifiedtransparenceprimitive2d.cxx.
References drawinglayer::primitive2d::Primitive2DContainer::getB2DRange(), and drawinglayer::primitive2d::GroupPrimitive2D::getChildren().
Referenced by get2DDecomposition().
|
overridevirtual |
provide unique ID
Reimplemented from drawinglayer::primitive2d::GroupPrimitive2D.
Definition at line 105 of file unifiedtransparenceprimitive2d.cxx.
References PRIMITIVE2D_ID_UNIFIEDTRANSPARENCEPRIMITIVE2D.
Referenced by drawinglayer::processor2d::VclPixelProcessor2D::processUnifiedTransparencePrimitive2D().
|
inline |
data read access
Definition at line 51 of file unifiedtransparenceprimitive2d.hxx.
Referenced by drawinglayer::Primitive2dXmlDump::decomposeAndWrite(), get2DDecomposition(), operator==(), drawinglayer::processor2d::D2DPixelProcessor2D::processUnifiedTransparencePrimitive2D(), drawinglayer::processor2d::VclMetafileProcessor2D::processUnifiedTransparencePrimitive2D(), drawinglayer::processor2d::VclPixelProcessor2D::processUnifiedTransparencePrimitive2D(), and drawinglayer::processor2d::VclProcessor2D::RenderUnifiedTransparencePrimitive2D().
|
overridevirtual |
compare operator
Reimplemented from drawinglayer::primitive2d::GroupPrimitive2D.
Definition at line 43 of file unifiedtransparenceprimitive2d.cxx.
References getTransparence().
|
private |
the unified transparence
Definition at line 42 of file unifiedtransparenceprimitive2d.hxx.