#include <box.h>
Public Member Functions |
|
Constructors
|
|
Box () | |
Default Constructor. |
|
Box (const Box &box) | |
Copy constructor with cloning
facility. |
|
Box (const Vector3 &point, const Vector3 &right_vector=Vector3(0, 1, 0), const Vector3 &height_vector=Vector3(-1, 0, 0), float depth=1) | |
Destructors
|
|
virtual | ~Box () |
Destructor. |
|
virtual void | clear () |
Explicit default initialization.
|
|
Assignment methods
|
|
void | set (const Box &box) |
Assignment. |
|
const Box & | operator= (const Box &box) |
Assignment operator. |
|
debuggers and diagnostics
|
|
virtual bool | isValid () const |
Internal state and consistency
self-validation. |
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Internal value dump. |
|
virtual void | getVertices (vector< Vector3 > &vertices) const |
An instance of this class represents an instance of the geometric representation of a threedimensional box. The class Box is derived from the classes GeometricObject and Box3. See these classes for further information concerning interface and additional methods.
BALL::VIEW::Box::Box | ( | ) |
virtual void BALL::VIEW::Box::clear | ( | ) | [virtual] |
Explicit default initialization.
Calls GeometricObject::clear Calls Box3::clear
Reimplemented from BALL::VIEW::GeometricObject.
virtual void BALL::VIEW::Box::dump | ( | std::ostream & | s =
std::cout , |
|
Size | depth =
0 |
|||
) | const [virtual] |
Internal value dump.
Dump the current value of this Box to the output ostream s with dumping depth depth. Calls GeometricObject::dump. Calls Box3::dump.
s | output stream where to output the value of this Box | |
depth | the dumping depth |
Reimplemented from BALL::VIEW::GeometricObject.
virtual bool BALL::VIEW::Box::isValid | ( | ) | const [virtual] |
Internal state and consistency self-validation.
Initiate self-validation of the internal state and data
structure consistencies of this Box.
If the internal state of this Box
is correct (self-validated) and consistent
true
is returned, false
otherwise. Calls GeometricObject::isValid.
Calls Box3::isValid.
Reimplemented from BALL::VIEW::GeometricObject.