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

ShadowPrimitive3D class. More...

#include <shadowprimitive3d.hxx>

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

Public Member Functions

 ShadowPrimitive3D (basegfx::B2DHomMatrix aShadowTransform, const basegfx::BColor &rShadowColor, double fShadowTransparence, bool bShadow3D, const Primitive3DContainer &rChildren)
 constructor More...
 
const basegfx::B2DHomMatrixgetShadowTransform () const
 data read access More...
 
const basegfx::BColorgetShadowColor () const
 
double getShadowTransparence () const
 
bool getShadow3D () const
 
virtual bool operator== (const BasePrimitive3D &rPrimitive) const override
 compare operator More...
 
- Public Member Functions inherited from drawinglayer::primitive3d::GroupPrimitive3D
 GroupPrimitive3D (Primitive3DContainer aChildren)
 constructor More...
 
const Primitive3DContainergetChildren () const
 data read access More...
 
virtual bool operator== (const BasePrimitive3D &rPrimitive) const override
 compare operator More...
 
virtual Primitive3DContainer get3DDecomposition (const geometry::ViewInformation3D &rViewInformation) const override
 local decomposition. Implementation will just return children 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 Attributes

basegfx::B2DHomMatrix maShadowTransform
 2D shadow definition More...
 
basegfx::BColor maShadowColor
 
double mfShadowTransparence
 
bool mbShadow3D: 1
 

Additional Inherited Members

- 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

ShadowPrimitive3D class.

This 3D grouping primitive is used to define a shadow for 3d geometry by embedding it. The shadow of 3D objects are 2D polygons, so the shadow transformation is a 2D transformation.

If the Shadow3D flag is set, the shadow definition has to be combined with the scene and camera definition to create the correct projected shadow 2D-Polygons.

Definition at line 39 of file shadowprimitive3d.hxx.

Constructor & Destructor Documentation

◆ ShadowPrimitive3D()

drawinglayer::primitive3d::ShadowPrimitive3D::ShadowPrimitive3D ( basegfx::B2DHomMatrix  aShadowTransform,
const basegfx::BColor rShadowColor,
double  fShadowTransparence,
bool  bShadow3D,
const Primitive3DContainer rChildren 
)

constructor

Definition at line 30 of file shadowprimitive3d.cxx.

References maShadowColor.

Member Function Documentation

◆ getShadow3D()

bool drawinglayer::primitive3d::ShadowPrimitive3D::getShadow3D ( ) const
inline

◆ getShadowColor()

const basegfx::BColor & drawinglayer::primitive3d::ShadowPrimitive3D::getShadowColor ( ) const
inline

◆ getShadowTransform()

const basegfx::B2DHomMatrix & drawinglayer::primitive3d::ShadowPrimitive3D::getShadowTransform ( ) const
inline

◆ getShadowTransparence()

double drawinglayer::primitive3d::ShadowPrimitive3D::getShadowTransparence ( ) const
inline

◆ operator==()

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

compare operator

Reimplemented from drawinglayer::primitive3d::GroupPrimitive3D.

Definition at line 44 of file shadowprimitive3d.cxx.

References getShadow3D(), getShadowColor(), getShadowTransform(), and getShadowTransparence().

Member Data Documentation

◆ maShadowColor

basegfx::BColor drawinglayer::primitive3d::ShadowPrimitive3D::maShadowColor
private

Definition at line 43 of file shadowprimitive3d.hxx.

Referenced by getShadowColor().

◆ maShadowTransform

basegfx::B2DHomMatrix drawinglayer::primitive3d::ShadowPrimitive3D::maShadowTransform
private

2D shadow definition

Definition at line 42 of file shadowprimitive3d.hxx.

Referenced by getShadowTransform().

◆ mbShadow3D

bool drawinglayer::primitive3d::ShadowPrimitive3D::mbShadow3D
private

Definition at line 46 of file shadowprimitive3d.hxx.

Referenced by getShadow3D().

◆ mfShadowTransparence

double drawinglayer::primitive3d::ShadowPrimitive3D::mfShadowTransparence
private

Definition at line 44 of file shadowprimitive3d.hxx.

Referenced by getShadowTransparence().


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