LibreOffice Module basegfx (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
basegfx::B3DPolygon Class Reference

#include <b3dpolygon.hxx>

Collaboration diagram for basegfx::B3DPolygon:
[legend]

Public Types

typedef o3tl::cow_wrapper< ImplB3DPolygon, o3tl::ThreadSafeRefCountingPolicyImplType
 

Public Member Functions

 B3DPolygon ()
 
 B3DPolygon (const B3DPolygon &rPolygon)
 
 B3DPolygon (B3DPolygon &&rPolygon)
 
 ~B3DPolygon ()
 
B3DPolygonoperator= (const B3DPolygon &rPolygon)
 
B3DPolygonoperator= (B3DPolygon &&rPolygon)
 
bool operator== (const B3DPolygon &rPolygon) const
 
bool operator!= (const B3DPolygon &rPolygon) const
 
sal_uInt32 count () const
 
B3DPoint const & getB3DPoint (sal_uInt32 nIndex) const
 
void setB3DPoint (sal_uInt32 nIndex, const B3DPoint &rValue)
 
void append (const B3DPoint &rPoint, sal_uInt32 nCount=1)
 
BColor const & getBColor (sal_uInt32 nIndex) const
 
void setBColor (sal_uInt32 nIndex, const BColor &rValue)
 
bool areBColorsUsed () const
 
void clearBColors ()
 
B3DVector const & getNormal () const
 
B3DVector const & getNormal (sal_uInt32 nIndex) const
 
void setNormal (sal_uInt32 nIndex, const B3DVector &rValue)
 
void transformNormals (const B3DHomMatrix &rMatrix)
 
bool areNormalsUsed () const
 
void clearNormals ()
 
B2DPoint const & getTextureCoordinate (sal_uInt32 nIndex) const
 
void setTextureCoordinate (sal_uInt32 nIndex, const B2DPoint &rValue)
 
void transformTextureCoordinates (const B2DHomMatrix &rMatrix)
 
bool areTextureCoordinatesUsed () const
 
void clearTextureCoordinates ()
 
void append (const B3DPolygon &rPoly, sal_uInt32 nIndex=0, sal_uInt32 nCount=0)
 
void remove (sal_uInt32 nIndex, sal_uInt32 nCount=1)
 
void clear ()
 
bool isClosed () const
 
void setClosed (bool bNew)
 
void flip ()
 
bool hasDoublePoints () const
 
void removeDoublePoints ()
 
void transform (const B3DHomMatrix &rMatrix)
 

Private Attributes

ImplType mpPolygon
 

Detailed Description

Definition at line 40 of file b3dpolygon.hxx.

Member Typedef Documentation

◆ ImplType

Definition at line 43 of file b3dpolygon.hxx.

Constructor & Destructor Documentation

◆ B3DPolygon() [1/3]

basegfx::B3DPolygon::B3DPolygon ( )

Definition at line 1393 of file b3dpolygon.cxx.

◆ B3DPolygon() [2/3]

basegfx::B3DPolygon::B3DPolygon ( const B3DPolygon rPolygon)
default

◆ B3DPolygon() [3/3]

basegfx::B3DPolygon::B3DPolygon ( B3DPolygon &&  rPolygon)
default

◆ ~B3DPolygon()

basegfx::B3DPolygon::~B3DPolygon ( )
default

Member Function Documentation

◆ append() [1/2]

void basegfx::B3DPolygon::append ( const B3DPoint rPoint,
sal_uInt32  nCount = 1 
)

◆ append() [2/2]

void basegfx::B3DPolygon::append ( const B3DPolygon rPoly,
sal_uInt32  nIndex = 0,
sal_uInt32  nCount = 0 
)

Definition at line 1542 of file b3dpolygon.cxx.

References count(), mpPolygon, nCount, and nIndex.

◆ areBColorsUsed()

bool basegfx::B3DPolygon::areBColorsUsed ( ) const

Definition at line 1456 of file b3dpolygon.cxx.

References mpPolygon.

Referenced by clearBColors().

◆ areNormalsUsed()

bool basegfx::B3DPolygon::areNormalsUsed ( ) const

Definition at line 1493 of file b3dpolygon.cxx.

References mpPolygon.

Referenced by clearNormals(), basegfx::utils::invertNormals(), and transformNormals().

◆ areTextureCoordinatesUsed()

bool basegfx::B3DPolygon::areTextureCoordinatesUsed ( ) const

Definition at line 1525 of file b3dpolygon.cxx.

References mpPolygon.

Referenced by clearTextureCoordinates(), and transformTextureCoordinates().

◆ clear()

void basegfx::B3DPolygon::clear ( )

◆ clearBColors()

void basegfx::B3DPolygon::clearBColors ( )

Definition at line 1461 of file b3dpolygon.cxx.

References areBColorsUsed(), and mpPolygon.

◆ clearNormals()

void basegfx::B3DPolygon::clearNormals ( )

Definition at line 1498 of file b3dpolygon.cxx.

References areNormalsUsed(), and mpPolygon.

◆ clearTextureCoordinates()

void basegfx::B3DPolygon::clearTextureCoordinates ( )

Definition at line 1530 of file b3dpolygon.cxx.

References areTextureCoordinatesUsed(), and mpPolygon.

◆ count()

sal_uInt32 basegfx::B3DPolygon::count ( ) const

◆ flip()

void basegfx::B3DPolygon::flip ( )

Definition at line 1588 of file b3dpolygon.cxx.

References count(), and mpPolygon.

◆ getB3DPoint()

basegfx::B3DPoint const & basegfx::B3DPolygon::getB3DPoint ( sal_uInt32  nIndex) const

◆ getBColor()

BColor const & basegfx::B3DPolygon::getBColor ( sal_uInt32  nIndex) const

Definition at line 1441 of file b3dpolygon.cxx.

References count(), mpPolygon, and nIndex.

Referenced by setBColor().

◆ getNormal() [1/2]

B3DVector const & basegfx::B3DPolygon::getNormal ( ) const

Definition at line 1467 of file b3dpolygon.cxx.

References mpPolygon.

Referenced by basegfx::utils::invertNormals(), basegfx::utils::isInside(), and setNormal().

◆ getNormal() [2/2]

B3DVector const & basegfx::B3DPolygon::getNormal ( sal_uInt32  nIndex) const

Definition at line 1472 of file b3dpolygon.cxx.

References count(), mpPolygon, and nIndex.

◆ getTextureCoordinate()

B2DPoint const & basegfx::B3DPolygon::getTextureCoordinate ( sal_uInt32  nIndex) const

◆ hasDoublePoints()

bool basegfx::B3DPolygon::hasDoublePoints ( ) const

Definition at line 1594 of file b3dpolygon.cxx.

References mpPolygon.

Referenced by removeDoublePoints().

◆ isClosed()

bool basegfx::B3DPolygon::isClosed ( ) const

◆ operator!=()

bool basegfx::B3DPolygon::operator!= ( const B3DPolygon rPolygon) const

Definition at line 1416 of file b3dpolygon.cxx.

◆ operator=() [1/2]

B3DPolygon & basegfx::B3DPolygon::operator= ( B3DPolygon &&  rPolygon)
default

◆ operator=() [2/2]

B3DPolygon & basegfx::B3DPolygon::operator= ( const B3DPolygon rPolygon)
default

◆ operator==()

bool basegfx::B3DPolygon::operator== ( const B3DPolygon rPolygon) const

◆ remove()

void basegfx::B3DPolygon::remove ( sal_uInt32  nIndex,
sal_uInt32  nCount = 1 
)

Definition at line 1564 of file b3dpolygon.cxx.

References count(), mpPolygon, nCount, and nIndex.

Referenced by basegfx::utils::checkClosed().

◆ removeDoublePoints()

void basegfx::B3DPolygon::removeDoublePoints ( )

Definition at line 1599 of file b3dpolygon.cxx.

References hasDoublePoints(), and mpPolygon.

Referenced by basegfx::utils::implHandleFirstLast().

◆ setB3DPoint()

void basegfx::B3DPolygon::setB3DPoint ( sal_uInt32  nIndex,
const B3DPoint rValue 
)

◆ setBColor()

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

Definition at line 1448 of file b3dpolygon.cxx.

References count(), getBColor(), mpPolygon, and nIndex.

◆ setClosed()

void basegfx::B3DPolygon::setClosed ( bool  bNew)

◆ setNormal()

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

◆ setTextureCoordinate()

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

◆ transform()

void basegfx::B3DPolygon::transform ( const B3DHomMatrix rMatrix)

Definition at line 1608 of file b3dpolygon.cxx.

References count(), basegfx::B3DHomMatrix::isIdentity(), and mpPolygon.

◆ transformNormals()

void basegfx::B3DPolygon::transformNormals ( const B3DHomMatrix rMatrix)

Definition at line 1487 of file b3dpolygon.cxx.

References areNormalsUsed(), basegfx::B3DHomMatrix::isIdentity(), and mpPolygon.

◆ transformTextureCoordinates()

void basegfx::B3DPolygon::transformTextureCoordinates ( const B2DHomMatrix rMatrix)

Member Data Documentation

◆ mpPolygon

ImplType basegfx::B3DPolygon::mpPolygon
private

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