LibreOffice Module basegfx (master) 1
|
#include <b3dpolygon.hxx>
Public Types | |
typedef o3tl::cow_wrapper< ImplB3DPolygon, o3tl::ThreadSafeRefCountingPolicy > | ImplType |
Public Member Functions | |
B3DPolygon () | |
B3DPolygon (const B3DPolygon &rPolygon) | |
B3DPolygon (B3DPolygon &&rPolygon) | |
~B3DPolygon () | |
B3DPolygon & | operator= (const B3DPolygon &rPolygon) |
B3DPolygon & | operator= (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 |
Definition at line 40 of file b3dpolygon.hxx.
typedef o3tl::cow_wrapper< ImplB3DPolygon, o3tl::ThreadSafeRefCountingPolicy > basegfx::B3DPolygon::ImplType |
Definition at line 43 of file b3dpolygon.hxx.
basegfx::B3DPolygon::B3DPolygon | ( | ) |
Definition at line 1393 of file b3dpolygon.cxx.
|
default |
|
default |
|
default |
void basegfx::B3DPolygon::append | ( | const B3DPoint & | rPoint, |
sal_uInt32 | nCount = 1 |
||
) |
Definition at line 1536 of file b3dpolygon.cxx.
References count(), mpPolygon, and nCount.
Referenced by basegfx::utils::applyLineDashing(), basegfx::utils::createB3DPolygonFromB2DPolygon(), basegfx::utils::createUnitCubeFillPolyPolygon(), basegfx::utils::createUnitCubePolyPolygon(), basegfx::utils::createUnitSphereFillPolyPolygon(), basegfx::utils::createUnitSpherePolyPolygon(), basegfx::utils::implHandleFirstLast(), and basegfx::utils::UnoPolyPolygonShape3DToB3DPolyPolygon().
void basegfx::B3DPolygon::append | ( | const B3DPolygon & | rPoly, |
sal_uInt32 | nIndex = 0 , |
||
sal_uInt32 | nCount = 0 |
||
) |
bool basegfx::B3DPolygon::areBColorsUsed | ( | ) | const |
bool basegfx::B3DPolygon::areNormalsUsed | ( | ) | const |
Definition at line 1493 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by clearNormals(), basegfx::utils::invertNormals(), and transformNormals().
bool basegfx::B3DPolygon::areTextureCoordinatesUsed | ( | ) | const |
Definition at line 1525 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by clearTextureCoordinates(), and transformTextureCoordinates().
void basegfx::B3DPolygon::clear | ( | ) |
Definition at line 1572 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by basegfx::utils::applyLineDashing(), basegfx::utils::createUnitCubeFillPolyPolygon(), basegfx::utils::createUnitCubePolyPolygon(), and basegfx::utils::implHandleFirstLast().
void basegfx::B3DPolygon::clearBColors | ( | ) |
Definition at line 1461 of file b3dpolygon.cxx.
References areBColorsUsed(), and mpPolygon.
void basegfx::B3DPolygon::clearNormals | ( | ) |
Definition at line 1498 of file b3dpolygon.cxx.
References areNormalsUsed(), and mpPolygon.
void basegfx::B3DPolygon::clearTextureCoordinates | ( | ) |
Definition at line 1530 of file b3dpolygon.cxx.
References areTextureCoordinatesUsed(), and mpPolygon.
sal_uInt32 basegfx::B3DPolygon::count | ( | ) | const |
Definition at line 1421 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by append(), basegfx::utils::applyDefaultNormalsSphere(), basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::utils::applyLineDashing(), basegfx::utils::B3DPolyPolygonToUnoPolyPolygonShape3D(), basegfx::utils::checkClosed(), basegfx::utils::createB2DPolygonFromB3DPolygon(), basegfx::utils::createUnitSphereFillPolyPolygon(), flip(), getB3DPoint(), getBColor(), basegfx::utils::getIndexOfSuccessor(), basegfx::utils::getLength(), getNormal(), basegfx::utils::getRange(), getTextureCoordinate(), basegfx::utils::implHandleFirstLast(), basegfx::utils::implHandleSnippet(), basegfx::utils::invertNormals(), basegfx::utils::isInside(), basegfx::utils::isPointOnPolygon(), remove(), setB3DPoint(), setBColor(), setNormal(), setTextureCoordinate(), basegfx::utils::snapPointsOfHorizontalOrVerticalEdges(), and transform().
void basegfx::B3DPolygon::flip | ( | ) |
Definition at line 1588 of file b3dpolygon.cxx.
basegfx::B3DPoint const & basegfx::B3DPolygon::getB3DPoint | ( | sal_uInt32 | nIndex | ) | const |
Definition at line 1426 of file b3dpolygon.cxx.
References count(), mpPolygon, and nIndex.
Referenced by basegfx::utils::applyDefaultNormalsSphere(), basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), basegfx::utils::applyLineDashing(), basegfx::utils::B3DPolyPolygonToUnoPolyPolygonShape3D(), basegfx::utils::checkClosed(), basegfx::utils::createB2DPolygonFromB3DPolygon(), basegfx::utils::createUnitSphereFillPolyPolygon(), basegfx::utils::getLength(), basegfx::utils::getRange(), basegfx::utils::implHandleFirstLast(), basegfx::utils::isInside(), basegfx::utils::isPointOnPolygon(), setB3DPoint(), and basegfx::utils::snapPointsOfHorizontalOrVerticalEdges().
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().
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().
B3DVector const & basegfx::B3DPolygon::getNormal | ( | sal_uInt32 | nIndex | ) | const |
Definition at line 1472 of file b3dpolygon.cxx.
B2DPoint const & basegfx::B3DPolygon::getTextureCoordinate | ( | sal_uInt32 | nIndex | ) | const |
Definition at line 1504 of file b3dpolygon.cxx.
References count(), mpPolygon, and nIndex.
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::applyDefaultTextureCoordinatesSphere(), and setTextureCoordinate().
bool basegfx::B3DPolygon::hasDoublePoints | ( | ) | const |
Definition at line 1594 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by removeDoublePoints().
bool basegfx::B3DPolygon::isClosed | ( | ) | const |
Definition at line 1577 of file b3dpolygon.cxx.
References mpPolygon.
Referenced by basegfx::utils::applyLineDashing(), basegfx::utils::B3DPolyPolygonToUnoPolyPolygonShape3D(), basegfx::utils::createB2DPolygonFromB3DPolygon(), basegfx::utils::getLength(), basegfx::utils::implHandleSnippet(), basegfx::utils::isPointOnPolygon(), and setClosed().
bool basegfx::B3DPolygon::operator!= | ( | const B3DPolygon & | rPolygon | ) | const |
Definition at line 1416 of file b3dpolygon.cxx.
|
default |
References count, operator!=(), operator==(), and remove().
|
default |
bool basegfx::B3DPolygon::operator== | ( | const B3DPolygon & | rPolygon | ) | const |
Definition at line 1408 of file b3dpolygon.cxx.
References mpPolygon, and o3tl::cow_wrapper< typename T, class MTPolicy >::same_object().
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().
void basegfx::B3DPolygon::removeDoublePoints | ( | ) |
Definition at line 1599 of file b3dpolygon.cxx.
References hasDoublePoints(), and mpPolygon.
Referenced by basegfx::utils::implHandleFirstLast().
void basegfx::B3DPolygon::setB3DPoint | ( | sal_uInt32 | nIndex, |
const B3DPoint & | rValue | ||
) |
Definition at line 1433 of file b3dpolygon.cxx.
References count(), getB3DPoint(), mpPolygon, and nIndex.
Referenced by basegfx::utils::snapPointsOfHorizontalOrVerticalEdges().
void basegfx::B3DPolygon::setBColor | ( | sal_uInt32 | nIndex, |
const BColor & | rValue | ||
) |
Definition at line 1448 of file b3dpolygon.cxx.
References count(), getBColor(), mpPolygon, and nIndex.
void basegfx::B3DPolygon::setClosed | ( | bool | bNew | ) |
Definition at line 1582 of file b3dpolygon.cxx.
References isClosed(), and mpPolygon.
Referenced by basegfx::utils::checkClosed(), basegfx::utils::createB3DPolygonFromB2DPolygon(), basegfx::utils::createUnitCubeFillPolyPolygon(), basegfx::utils::createUnitCubePolyPolygon(), basegfx::utils::createUnitSphereFillPolyPolygon(), and basegfx::utils::createUnitSpherePolyPolygon().
void basegfx::B3DPolygon::setNormal | ( | sal_uInt32 | nIndex, |
const B3DVector & | rValue | ||
) |
Definition at line 1479 of file b3dpolygon.cxx.
References count(), getNormal(), mpPolygon, and nIndex.
Referenced by basegfx::utils::applyDefaultNormalsSphere(), basegfx::utils::createUnitSphereFillPolyPolygon(), and basegfx::utils::invertNormals().
void basegfx::B3DPolygon::setTextureCoordinate | ( | sal_uInt32 | nIndex, |
const B2DPoint & | rValue | ||
) |
Definition at line 1511 of file b3dpolygon.cxx.
References count(), getTextureCoordinate(), mpPolygon, and nIndex.
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), and basegfx::utils::applyDefaultTextureCoordinatesSphere().
void basegfx::B3DPolygon::transform | ( | const B3DHomMatrix & | rMatrix | ) |
Definition at line 1608 of file b3dpolygon.cxx.
References count(), basegfx::B3DHomMatrix::isIdentity(), and mpPolygon.
void basegfx::B3DPolygon::transformNormals | ( | const B3DHomMatrix & | rMatrix | ) |
Definition at line 1487 of file b3dpolygon.cxx.
References areNormalsUsed(), basegfx::B3DHomMatrix::isIdentity(), and mpPolygon.
void basegfx::B3DPolygon::transformTextureCoordinates | ( | const B2DHomMatrix & | rMatrix | ) |
Definition at line 1519 of file b3dpolygon.cxx.
References areTextureCoordinatesUsed(), basegfx::B2DHomMatrix::isIdentity(), and mpPolygon.
|
private |
Definition at line 47 of file b3dpolygon.hxx.
Referenced by append(), areBColorsUsed(), areNormalsUsed(), areTextureCoordinatesUsed(), clear(), clearBColors(), clearNormals(), clearTextureCoordinates(), count(), flip(), getB3DPoint(), getBColor(), getNormal(), getTextureCoordinate(), hasDoublePoints(), isClosed(), operator==(), remove(), removeDoublePoints(), setB3DPoint(), setBColor(), setClosed(), setNormal(), setTextureCoordinate(), transform(), transformNormals(), and transformTextureCoordinates().