LibreOffice Module basegfx (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ImplB3DPolygon Class Reference
Collaboration diagram for ImplB3DPolygon:
[legend]

Public Member Functions

 ImplB3DPolygon ()
 
 ImplB3DPolygon (const ImplB3DPolygon &rToBeCopied)
 
 ImplB3DPolygon (const ImplB3DPolygon &rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
 
sal_uInt32 count () const
 
bool isClosed () const
 
void setClosed (bool bNew)
 
bool impBColorsAreEqual (const ImplB3DPolygon &rCandidate) const
 
bool impNormalsAreEqual (const ImplB3DPolygon &rCandidate) const
 
bool impTextureCoordinatesAreEqual (const ImplB3DPolygon &rCandidate) const
 
bool operator== (const ImplB3DPolygon &rCandidate) const
 
const ::basegfx::B3DPointgetPoint (sal_uInt32 nIndex) const
 
void setPoint (sal_uInt32 nIndex, const ::basegfx::B3DPoint &rValue)
 
void insert (sal_uInt32 nIndex, const ::basegfx::B3DPoint &rPoint, sal_uInt32 nCount)
 
const ::basegfx::BColorgetBColor (sal_uInt32 nIndex) const
 
void setBColor (sal_uInt32 nIndex, const ::basegfx::BColor &rValue)
 
bool areBColorsUsed () const
 
void clearBColors ()
 
const ::basegfx::B3DVectorgetNormal () const
 
const ::basegfx::B3DVectorgetNormal (sal_uInt32 nIndex) const
 
void setNormal (sal_uInt32 nIndex, const ::basegfx::B3DVector &rValue)
 
void transformNormals (const ::basegfx::B3DHomMatrix &rMatrix)
 
bool areNormalsUsed () const
 
void clearNormals ()
 
const ::basegfx::B2DPointgetTextureCoordinate (sal_uInt32 nIndex) const
 
void setTextureCoordinate (sal_uInt32 nIndex, const ::basegfx::B2DPoint &rValue)
 
bool areTextureCoordinatesUsed () const
 
void clearTextureCoordinates ()
 
void transformTextureCoordinates (const ::basegfx::B2DHomMatrix &rMatrix)
 
void insert (sal_uInt32 nIndex, const ImplB3DPolygon &rSource)
 
void remove (sal_uInt32 nIndex, sal_uInt32 nCount)
 
void flip ()
 
bool hasDoublePoints () const
 
void removeDoublePointsAtBeginEnd ()
 
void removeDoublePointsWholeTrack ()
 
void transform (const ::basegfx::B3DHomMatrix &rMatrix)
 

Protected Member Functions

void invalidatePlaneNormal ()
 

Private Attributes

CoordinateDataArray3D maPoints
 
std::unique_ptr< BColorArray > mpBColors
 
std::unique_ptr< NormalsArray3D > mpNormals
 
std::unique_ptr< TextureCoordinate2D > mpTextureCoordinates
 
::basegfx::B3DVector maPlaneNormal
 
bool mbIsClosed: 1
 
bool mbPlaneNormalValid: 1
 

Detailed Description

Definition at line 678 of file b3dpolygon.cxx.

Constructor & Destructor Documentation

◆ ImplB3DPolygon() [1/3]

ImplB3DPolygon::ImplB3DPolygon ( )
inline

Definition at line 717 of file b3dpolygon.cxx.

◆ ImplB3DPolygon() [2/3]

ImplB3DPolygon::ImplB3DPolygon ( const ImplB3DPolygon rToBeCopied)
inline

Definition at line 726 of file b3dpolygon.cxx.

References mpBColors, mpNormals, and mpTextureCoordinates.

◆ ImplB3DPolygon() [3/3]

ImplB3DPolygon::ImplB3DPolygon ( const ImplB3DPolygon rToBeCopied,
sal_uInt32  nIndex,
sal_uInt32  nCount 
)
inline

Definition at line 749 of file b3dpolygon.cxx.

References mpBColors, mpNormals, mpTextureCoordinates, nCount, and nIndex.

Member Function Documentation

◆ areBColorsUsed()

bool ImplB3DPolygon::areBColorsUsed ( ) const
inline

Definition at line 980 of file b3dpolygon.cxx.

References mpBColors.

◆ areNormalsUsed()

bool ImplB3DPolygon::areNormalsUsed ( ) const
inline

Definition at line 1042 of file b3dpolygon.cxx.

References mpNormals.

◆ areTextureCoordinatesUsed()

bool ImplB3DPolygon::areTextureCoordinatesUsed ( ) const
inline

Definition at line 1085 of file b3dpolygon.cxx.

References mpTextureCoordinates.

◆ clearBColors()

void ImplB3DPolygon::clearBColors ( )
inline

Definition at line 985 of file b3dpolygon.cxx.

References mpBColors.

◆ clearNormals()

void ImplB3DPolygon::clearNormals ( )
inline

Definition at line 1047 of file b3dpolygon.cxx.

References mpNormals.

◆ clearTextureCoordinates()

void ImplB3DPolygon::clearTextureCoordinates ( )
inline

Definition at line 1090 of file b3dpolygon.cxx.

References mpTextureCoordinates.

◆ count()

sal_uInt32 ImplB3DPolygon::count ( ) const
inline

Definition at line 787 of file b3dpolygon.cxx.

References maPoints.

◆ flip()

void ImplB3DPolygon::flip ( )
inline

◆ getBColor()

const ::basegfx::BColor & ImplB3DPolygon::getBColor ( sal_uInt32  nIndex) const
inline

Definition at line 947 of file b3dpolygon.cxx.

References mpBColors, and nIndex.

◆ getNormal() [1/2]

const ::basegfx::B3DVector & ImplB3DPolygon::getNormal ( ) const
inline

Definition at line 990 of file b3dpolygon.cxx.

References maPlaneNormal, maPoints, and mbPlaneNormalValid.

◆ getNormal() [2/2]

const ::basegfx::B3DVector & ImplB3DPolygon::getNormal ( sal_uInt32  nIndex) const
inline

Definition at line 1001 of file b3dpolygon.cxx.

References mpNormals, and nIndex.

◆ getPoint()

const ::basegfx::B3DPoint & ImplB3DPolygon::getPoint ( sal_uInt32  nIndex) const
inline

Definition at line 911 of file b3dpolygon.cxx.

References maPoints, and nIndex.

◆ getTextureCoordinate()

const ::basegfx::B2DPoint & ImplB3DPolygon::getTextureCoordinate ( sal_uInt32  nIndex) const
inline

Definition at line 1052 of file b3dpolygon.cxx.

References mpTextureCoordinates, and nIndex.

◆ hasDoublePoints()

bool ImplB3DPolygon::hasDoublePoints ( ) const
inline

Definition at line 1233 of file b3dpolygon.cxx.

References a, maPoints, mbIsClosed, mpBColors, mpNormals, mpTextureCoordinates, and nIndex.

◆ impBColorsAreEqual()

bool ImplB3DPolygon::impBColorsAreEqual ( const ImplB3DPolygon rCandidate) const
inline

Definition at line 805 of file b3dpolygon.cxx.

References mpBColors.

Referenced by operator==().

◆ impNormalsAreEqual()

bool ImplB3DPolygon::impNormalsAreEqual ( const ImplB3DPolygon rCandidate) const
inline

Definition at line 833 of file b3dpolygon.cxx.

References mpNormals.

Referenced by operator==().

◆ impTextureCoordinatesAreEqual()

bool ImplB3DPolygon::impTextureCoordinatesAreEqual ( const ImplB3DPolygon rCandidate) const
inline

Definition at line 861 of file b3dpolygon.cxx.

References mpTextureCoordinates.

Referenced by operator==().

◆ insert() [1/2]

void ImplB3DPolygon::insert ( sal_uInt32  nIndex,
const ::basegfx::B3DPoint rPoint,
sal_uInt32  nCount 
)
inline

◆ insert() [2/2]

void ImplB3DPolygon::insert ( sal_uInt32  nIndex,
const ImplB3DPolygon rSource 
)
inline

◆ invalidatePlaneNormal()

void ImplB3DPolygon::invalidatePlaneNormal ( )
inlineprotected

Definition at line 706 of file b3dpolygon.cxx.

References mbPlaneNormalValid.

Referenced by insert(), remove(), setPoint(), and transform().

◆ isClosed()

bool ImplB3DPolygon::isClosed ( ) const
inline

Definition at line 792 of file b3dpolygon.cxx.

References mbIsClosed.

◆ operator==()

bool ImplB3DPolygon::operator== ( const ImplB3DPolygon rCandidate) const
inline

◆ remove()

void ImplB3DPolygon::remove ( sal_uInt32  nIndex,
sal_uInt32  nCount 
)
inline

◆ removeDoublePointsAtBeginEnd()

void ImplB3DPolygon::removeDoublePointsAtBeginEnd ( )
inline

Definition at line 1288 of file b3dpolygon.cxx.

References maPoints, mbIsClosed, mpBColors, mpNormals, mpTextureCoordinates, nIndex, and remove().

◆ removeDoublePointsWholeTrack()

void ImplB3DPolygon::removeDoublePointsWholeTrack ( )
inline

Definition at line 1329 of file b3dpolygon.cxx.

References maPoints, mpBColors, mpNormals, mpTextureCoordinates, nIndex, and remove().

◆ setBColor()

void ImplB3DPolygon::setBColor ( sal_uInt32  nIndex,
const ::basegfx::BColor rValue 
)
inline

Definition at line 959 of file b3dpolygon.cxx.

References maPoints, mpBColors, and nIndex.

◆ setClosed()

void ImplB3DPolygon::setClosed ( bool  bNew)
inline

Definition at line 797 of file b3dpolygon.cxx.

References mbIsClosed.

◆ setNormal()

void ImplB3DPolygon::setNormal ( sal_uInt32  nIndex,
const ::basegfx::B3DVector rValue 
)
inline

Definition at line 1013 of file b3dpolygon.cxx.

References maPoints, mpNormals, and nIndex.

◆ setPoint()

void ImplB3DPolygon::setPoint ( sal_uInt32  nIndex,
const ::basegfx::B3DPoint rValue 
)
inline

Definition at line 916 of file b3dpolygon.cxx.

References invalidatePlaneNormal(), maPoints, and nIndex.

◆ setTextureCoordinate()

void ImplB3DPolygon::setTextureCoordinate ( sal_uInt32  nIndex,
const ::basegfx::B2DPoint rValue 
)
inline

Definition at line 1064 of file b3dpolygon.cxx.

References maPoints, mpTextureCoordinates, and nIndex.

◆ transform()

void ImplB3DPolygon::transform ( const ::basegfx::B3DHomMatrix rMatrix)
inline

Definition at line 1368 of file b3dpolygon.cxx.

References invalidatePlaneNormal(), and maPoints.

◆ transformNormals()

void ImplB3DPolygon::transformNormals ( const ::basegfx::B3DHomMatrix rMatrix)
inline

Definition at line 1034 of file b3dpolygon.cxx.

References mpNormals.

◆ transformTextureCoordinates()

void ImplB3DPolygon::transformTextureCoordinates ( const ::basegfx::B2DHomMatrix rMatrix)
inline

Definition at line 1095 of file b3dpolygon.cxx.

References mpTextureCoordinates.

Member Data Documentation

◆ maPlaneNormal

::basegfx::B3DVector ImplB3DPolygon::maPlaneNormal
private

Definition at line 697 of file b3dpolygon.cxx.

Referenced by flip(), and getNormal().

◆ maPoints

CoordinateDataArray3D ImplB3DPolygon::maPoints
private

◆ mbIsClosed

bool ImplB3DPolygon::mbIsClosed
private

◆ mbPlaneNormalValid

bool ImplB3DPolygon::mbPlaneNormalValid
private

Definition at line 703 of file b3dpolygon.cxx.

Referenced by flip(), getNormal(), and invalidatePlaneNormal().

◆ mpBColors

std::unique_ptr<BColorArray> ImplB3DPolygon::mpBColors
private

◆ mpNormals

std::unique_ptr<NormalsArray3D> ImplB3DPolygon::mpNormals
private

◆ mpTextureCoordinates

std::unique_ptr<TextureCoordinate2D> ImplB3DPolygon::mpTextureCoordinates
private

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