LibreOffice Module basegfx (master) 1
|
#include <b3drange.hxx>
Public Member Functions | |
B3DRange () | |
B3DRange (const B3DTuple &rTuple) | |
B3DRange (double x1, double y1, double z1, double x2, double y2, double z2) | |
B3DRange (const B3DTuple &rTuple1, const B3DTuple &rTuple2) | |
bool | isEmpty () const |
void | reset () |
bool | operator== (const B3DRange &rRange) const |
bool | operator!= (const B3DRange &rRange) const |
double | getMinX () const |
double | getMinY () const |
double | getMinZ () const |
double | getMaxX () const |
double | getMaxY () const |
double | getMaxZ () const |
double | getWidth () const |
double | getHeight () const |
double | getDepth () const |
B3DVector | getRange () const |
B3DPoint | getCenter () const |
bool | overlaps (const B3DRange &rRange) const |
void | expand (const B3DTuple &rTuple) |
void | expand (const B3DRange &rRange) |
void | grow (double fValue) |
B3DTuple | clamp (const B3DTuple &rTuple) const |
clamp value on range More... | |
BASEGFX_DLLPUBLIC void | transform (const B3DHomMatrix &rMatrix) |
B3DRange & | operator*= (const ::basegfx::B3DHomMatrix &rMat) |
Transform Range by given transformation matrix. More... | |
Static Public Member Functions | |
static const B3DRange & | getUnitB3DRange () |
Get a range filled with (0.0, 0.0, 0.0, 1.0, 1.0, 1.0) More... | |
Private Types | |
typedef ::basegfx::BasicRange< double, DoubleTraits > | MyBasicRange |
Private Attributes | |
MyBasicRange | maRangeX |
MyBasicRange | maRangeY |
MyBasicRange | maRangeZ |
Definition at line 32 of file b3drange.hxx.
|
private |
Definition at line 34 of file b3drange.hxx.
|
inline |
Definition at line 41 of file b3drange.hxx.
|
inlineexplicit |
Definition at line 43 of file b3drange.hxx.
|
inline |
Definition at line 50 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::expand().
Definition at line 65 of file b3drange.hxx.
clamp value on range
Definition at line 198 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::clamp(), basegfx::Tuple3D< TYPE >::getX(), basegfx::Tuple3D< TYPE >::getY(), and basegfx::Tuple3D< TYPE >::getZ().
|
inline |
Definition at line 183 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::expand(), maRangeX, maRangeY, and maRangeZ.
|
inline |
Definition at line 176 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::expand(), basegfx::Tuple3D< TYPE >::getX(), basegfx::Tuple3D< TYPE >::getY(), and basegfx::Tuple3D< TYPE >::getZ().
Referenced by basegfx::utils::getRange(), and transform().
|
inline |
Definition at line 158 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getCenter().
Referenced by basegfx::utils::applyDefaultTextureCoordinatesSphere().
|
inline |
Definition at line 144 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getRange().
Referenced by basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), and basegfx::utils::createSpherePolyPolygonFromB3DRange().
|
inline |
Definition at line 139 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getRange().
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), and basegfx::utils::createSpherePolyPolygonFromB3DRange().
|
inline |
Definition at line 119 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMaximum().
Referenced by transform().
|
inline |
Definition at line 124 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMaximum().
Referenced by transform().
|
inline |
Definition at line 129 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMaximum().
Referenced by transform().
|
inline |
Definition at line 104 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMinimum().
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), basegfx::utils::createSpherePolyPolygonFromB3DRange(), and transform().
|
inline |
Definition at line 109 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMinimum().
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), basegfx::utils::createSpherePolyPolygonFromB3DRange(), and transform().
|
inline |
Definition at line 114 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getMinimum().
Referenced by basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), basegfx::utils::createSpherePolyPolygonFromB3DRange(), and transform().
|
inline |
Definition at line 149 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getRange().
|
static |
Get a range filled with (0.0, 0.0, 0.0, 1.0, 1.0, 1.0)
Definition at line 48 of file b3drange.cxx.
|
inline |
Definition at line 134 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::getRange().
Referenced by basegfx::utils::applyDefaultTextureCoordinatesParallel(), basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), basegfx::utils::createSphereFillPolyPolygonFromB3DRange(), and basegfx::utils::createSpherePolyPolygonFromB3DRange().
|
inline |
Definition at line 190 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::grow().
|
inline |
Definition at line 74 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::isEmpty().
Referenced by basegfx::utils::createCubeFillPolyPolygonFromB3DRange(), basegfx::utils::createCubePolyPolygonFromB3DRange(), and transform().
|
inline |
Definition at line 97 of file b3drange.hxx.
B3DRange & basegfx::B3DRange::operator*= | ( | const ::basegfx::B3DHomMatrix & | rMat | ) |
Transform Range by given transformation matrix.
This operation transforms the Range by transforming all eight possible extrema points (corners) of the given range and building a new one. This means that the range will grow evtl. when a shear and/or rotation is part of the transformation.
Definition at line 42 of file b3drange.cxx.
References transform().
|
inline |
Definition at line 90 of file b3drange.hxx.
|
inline |
Definition at line 167 of file b3drange.hxx.
References maRangeX, maRangeY, maRangeZ, and basegfx::BasicRange< T, Traits >::overlaps().
|
inline |
Definition at line 83 of file b3drange.hxx.
References basegfx::BasicRange< T, Traits >::reset().
Referenced by transform().
void basegfx::B3DRange::transform | ( | const B3DHomMatrix & | rMatrix | ) |
Definition at line 25 of file b3drange.cxx.
References expand(), getMaxX(), getMaxY(), getMaxZ(), getMinX(), getMinY(), getMinZ(), isEmpty(), basegfx::B3DHomMatrix::isIdentity(), and reset().
Referenced by operator*=().
|
private |
Definition at line 36 of file b3drange.hxx.
Referenced by expand(), operator!=(), operator==(), and overlaps().
|
private |
Definition at line 37 of file b3drange.hxx.
Referenced by expand(), operator!=(), operator==(), and overlaps().
|
private |
Definition at line 38 of file b3drange.hxx.
Referenced by expand(), operator!=(), operator==(), and overlaps().