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

#include <b3drange.hxx>

Collaboration diagram for basegfx::B3DRange:
[legend]

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)
 
B3DRangeoperator*= (const ::basegfx::B3DHomMatrix &rMat)
 Transform Range by given transformation matrix. More...
 

Static Public Member Functions

static const B3DRangegetUnitB3DRange ()
 Get a range filled with (0.0, 0.0, 0.0, 1.0, 1.0, 1.0) More...
 

Private Types

typedef ::basegfx::BasicRange< double, DoubleTraitsMyBasicRange
 

Private Attributes

MyBasicRange maRangeX
 
MyBasicRange maRangeY
 
MyBasicRange maRangeZ
 

Detailed Description

Definition at line 32 of file b3drange.hxx.

Member Typedef Documentation

◆ MyBasicRange

Definition at line 34 of file b3drange.hxx.

Constructor & Destructor Documentation

◆ B3DRange() [1/4]

basegfx::B3DRange::B3DRange ( )
inline

Definition at line 41 of file b3drange.hxx.

◆ B3DRange() [2/4]

basegfx::B3DRange::B3DRange ( const B3DTuple rTuple)
inlineexplicit

Definition at line 43 of file b3drange.hxx.

◆ B3DRange() [3/4]

basegfx::B3DRange::B3DRange ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)
inline

Definition at line 50 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::expand().

◆ B3DRange() [4/4]

basegfx::B3DRange::B3DRange ( const B3DTuple rTuple1,
const B3DTuple rTuple2 
)
inline

Definition at line 65 of file b3drange.hxx.

Member Function Documentation

◆ clamp()

B3DTuple basegfx::B3DRange::clamp ( const B3DTuple rTuple) const
inline

◆ expand() [1/2]

void basegfx::B3DRange::expand ( const B3DRange rRange)
inline

Definition at line 183 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::expand(), maRangeX, maRangeY, and maRangeZ.

◆ expand() [2/2]

void basegfx::B3DRange::expand ( const B3DTuple rTuple)
inline

◆ getCenter()

B3DPoint basegfx::B3DRange::getCenter ( ) const
inline

◆ getDepth()

double basegfx::B3DRange::getDepth ( ) const
inline

◆ getHeight()

double basegfx::B3DRange::getHeight ( ) const
inline

◆ getMaxX()

double basegfx::B3DRange::getMaxX ( ) const
inline

Definition at line 119 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::getMaximum().

Referenced by transform().

◆ getMaxY()

double basegfx::B3DRange::getMaxY ( ) const
inline

Definition at line 124 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::getMaximum().

Referenced by transform().

◆ getMaxZ()

double basegfx::B3DRange::getMaxZ ( ) const
inline

Definition at line 129 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::getMaximum().

Referenced by transform().

◆ getMinX()

double basegfx::B3DRange::getMinX ( ) const
inline

◆ getMinY()

double basegfx::B3DRange::getMinY ( ) const
inline

◆ getMinZ()

double basegfx::B3DRange::getMinZ ( ) const
inline

◆ getRange()

B3DVector basegfx::B3DRange::getRange ( ) const
inline

Definition at line 149 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::getRange().

◆ getUnitB3DRange()

const B3DRange & basegfx::B3DRange::getUnitB3DRange ( )
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.

◆ getWidth()

double basegfx::B3DRange::getWidth ( ) const
inline

◆ grow()

void basegfx::B3DRange::grow ( double  fValue)
inline

Definition at line 190 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::grow().

◆ isEmpty()

bool basegfx::B3DRange::isEmpty ( ) const
inline

◆ operator!=()

bool basegfx::B3DRange::operator!= ( const B3DRange rRange) const
inline

Definition at line 97 of file b3drange.hxx.

References maRangeX, maRangeY, and maRangeZ.

◆ operator*=()

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().

◆ operator==()

bool basegfx::B3DRange::operator== ( const B3DRange rRange) const
inline

Definition at line 90 of file b3drange.hxx.

References maRangeX, maRangeY, and maRangeZ.

◆ overlaps()

bool basegfx::B3DRange::overlaps ( const B3DRange rRange) const
inline

◆ reset()

void basegfx::B3DRange::reset ( )
inline

Definition at line 83 of file b3drange.hxx.

References basegfx::BasicRange< T, Traits >::reset().

Referenced by transform().

◆ transform()

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

Member Data Documentation

◆ maRangeX

MyBasicRange basegfx::B3DRange::maRangeX
private

Definition at line 36 of file b3drange.hxx.

Referenced by expand(), operator!=(), operator==(), and overlaps().

◆ maRangeY

MyBasicRange basegfx::B3DRange::maRangeY
private

Definition at line 37 of file b3drange.hxx.

Referenced by expand(), operator!=(), operator==(), and overlaps().

◆ maRangeZ

MyBasicRange basegfx::B3DRange::maRangeZ
private

Definition at line 38 of file b3drange.hxx.

Referenced by expand(), operator!=(), operator==(), and overlaps().


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