#include <box3.h>
Public Member Functions | |
Constructors and Destructors | |
| TBox3 () throw () | |
| Default constructor. | |
| TBox3 (const TBox3 &box) throw () | |
| Copy constructor. | |
| 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 T &depth=1) throw () | |
| Detailed constructor. | |
| virtual | ~TBox3 () throw () |
| Destructor. | |
| virtual void | clear () throw () |
| Clear method. | |
Assignment | |
| void | set (const TBox3 &box) throw () |
| Assign from another instance of TBox3. | |
| const TBox3 & | operator= (const TBox3 &box) throw () |
| Assignment operator. | |
| void | swap (TBox3 &box) throw () |
| Swap the contents of two instances. | |
Accessors | |
| void | setWidth (T width) throw () |
| Set width. | |
| T | getWidth () const throw () |
| Get width. | |
| void | setHeight (T height) throw () |
| Set height. | |
| T | getHeight () const throw () |
| Get height. | |
| void | setDepth (T depth) throw () |
| Set depth. | |
| T | getDepth () const throw () |
| Get depth. | |
| const TVector3< T > & | getPoint () const throw () |
| Get the point. | |
| void | setPoint (const TVector3< T > &point) throw () |
| Set the point. | |
| const TVector3< T > & | getRightVector () const throw () |
| Get the right vector. | |
| void | setRightVector (const TVector3< T > &v) throw () |
| Set the right vector. | |
| const TVector3< T > & | getHeightVector () const throw () |
| Get the height vector. | |
| void | setHeightVector (const TVector3< T > &v) throw () |
| Set the height vector. | |
| T | getSurface () const throw () |
| Calculate the surface area. | |
| T | getVolume () const throw () |
| Calculate the volume. | |
| TVector3< T > | getDiagonalVector () const throw () |
Predicates | |
| bool | operator== (const TBox3 &box) const throw () |
| Equality operator. | |
| bool | operator!= (const TBox3 &box) const throw () |
| Inequality operator. | |
Debugging and Diagnostics | |
| bool | isValid () const throw () |
| Test whether instance is valid. | |
| void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
| Internal state dump. | |
Protected Attributes | |
| TVector3< T > | point_ |
| TVector3< T > | right_vector_ |
| TVector3< T > | height_vector_ |
| T | width_ |
| T | height_ |
| T | depth_ |
This class describes a three-dimensional box. A box is given by the coordinates of the lower left front corner, width, height, depth and the right vector.\
|
|||||||||
|
Default constructor.
|
|
||||||||||
|
Copy constructor.
|
|
||||||||||||||||||||||||
|
Detailed constructor.
|
|
|||||||||
|
Destructor.
|
|
|||||||||
|
Clear method. The values are set to 0. Reimplemented in VIEW::Box. |
|
||||||||||||||||
|
Internal state dump. Dump the current internal state of {*this} to the output ostream s with dumping depth depth .
Reimplemented in VIEW::Box. |
|
|||||||||
|
Calculate the surface area.
|
|
|||||||||
|
Calculate the volume.
|
|
|||||||||
|
Test whether instance is valid. Always returns true.
Reimplemented in VIEW::Box. |
|
||||||||||
|
Inequality operator.
|
|
||||||||||
|
Assignment operator. Assign the box components from another instance of TBox3.
|
|
||||||||||
|
Equality operator.
|
|
||||||||||
|
Assign from another instance of TBox3.
|
|
||||||||||
|
Swap the contents of two instances.
|