BALL
1.4.79
|
#include <BALL/MATHS/box3.h>
Public Member Functions | |
Constructors and Destructors | |
TBox3 () | |
TBox3 (const TBox3 &box) | |
TBox3 (const TVector3< T > &point, const TVector3< T > &right_vector, const TVector3< T > &height_vector, const T &depth=1) | |
TBox3 (const TVector3< T > &point, const TVector3< T > &right_vector=TVector3< T >((T) 0,(T) 1,(T) 0), const TVector3< T > &height_vector=TVector3< T >((T) 1,(T) 0,(T) 0), const TVector3< T > &depth_vector=TVector3< T >((T) 0,(T) 0,(T) 1)) | |
virtual | ~TBox3 () |
virtual void | clear () |
Assignment | |
void | set (const TBox3 &box) |
const TBox3 & | operator= (const TBox3 &box) |
void | swap (TBox3 &box) |
Accessors | |
void | setWidth (T width) |
Set width. More... | |
T | getWidth () const |
Get width. More... | |
void | setHeight (T height) |
Set height. More... | |
T | getHeight () const |
Get height. More... | |
void | setDepth (T depth) |
Set depth. More... | |
T | getDepth () const |
Get depth. More... | |
const TVector3< T > & | getPoint () const |
Get the point. More... | |
void | setPoint (const TVector3< T > &point) |
Set the point. More... | |
const TVector3< T > & | getRightVector () const |
Get the right vector. More... | |
void | setRightVector (const TVector3< T > &v) |
Set the right vector. More... | |
const TVector3< T > & | getHeightVector () const |
Get the height vector. More... | |
void | setHeightVector (const TVector3< T > &v) |
Set the height vector. More... | |
const TVector3< T > & | getDepthVector () const |
Get the depth vector. More... | |
void | setDepthVector (const TVector3< T > &v) |
Set the depth vector. More... | |
T | getSurface () const |
T | getVolume () const |
TVector3< T > | getDiagonalVector () const |
Predicates | |
bool | operator== (const TBox3 &box) const |
bool | operator!= (const TBox3 &box) const |
Debugging and Diagnostics | |
bool | isValid () const |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
Protected Attributes | |
TVector3< T > | point_ |
TVector3< T > | right_vector_ |
TVector3< T > | height_vector_ |
TVector3< T > | depth_vector_ |
T | width_ |
T | height_ |
T | depth_ |
Generic three-dimensional Box. This class describes a three-dimensional box. A box is given by the coordinates of the lower left front corner, a right vector, a height vector and a depth vector.\
BALL::TBox3< T >::TBox3 | ( | ) |
BALL::TBox3< T >::TBox3 | ( | const TBox3< T > & | box | ) |
BALL::TBox3< T >::TBox3 | ( | const TVector3< T > & | point, |
const TVector3< T > & | right_vector, | ||
const TVector3< T > & | height_vector, | ||
const T & | depth = 1 |
||
) |
|
inlinevirtual |
|
virtual |
Clear method. The values are set to 0.
Reimplemented in BALL::VIEW::Box.
void BALL::TBox3< T >::dump | ( | std::ostream & | s = std::cout , |
Size | depth = 0 |
||
) | const |
|
inline |
|
inline |
TVector3< T > BALL::TBox3< T >::getDiagonalVector | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
BALL_INLINE T BALL::TBox3< T >::getSurface | ( | ) | const |
BALL_INLINE T BALL::TBox3< T >::getVolume | ( | ) | const |
|
inline |
BALL_INLINE bool BALL::TBox3< T >::isValid | ( | ) | const |
BALL_INLINE bool BALL::TBox3< T >::operator!= | ( | const TBox3< T > & | box | ) | const |
BALL_INLINE const TBox3< T > & BALL::TBox3< T >::operator= | ( | const TBox3< T > & | box | ) |
bool BALL::TBox3< T >::operator== | ( | const TBox3< T > & | box | ) | const |
void BALL::TBox3< T >::set | ( | const TBox3< T > & | box | ) |
BALL_INLINE void BALL::TBox3< T >::setDepth | ( | T | depth | ) |
BALL_INLINE void BALL::TBox3< T >::setDepthVector | ( | const TVector3< T > & | v | ) |
BALL_INLINE void BALL::TBox3< T >::setHeight | ( | T | height | ) |
BALL_INLINE void BALL::TBox3< T >::setHeightVector | ( | const TVector3< T > & | v | ) |
|
inline |
BALL_INLINE void BALL::TBox3< T >::setRightVector | ( | const TVector3< T > & | v | ) |
BALL_INLINE void BALL::TBox3< T >::setWidth | ( | T | width | ) |
void BALL::TBox3< T >::swap | ( | TBox3< T > & | box | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |