Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Box Class Reference
[Geometric Objects]

Box class. More...

#include <box.h>

Inheritance diagram for VIEW::Box:

VIEW::GeometricObject TBox3< float > List of all members.

Public Member Functions

Constructors
 Box () throw ()
 Default Constructor.
 Box (const Box &box) throw ()
 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) throw ()
Destructors
virtual ~Box () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const Box &box) throw ()
 Assignment.
const Boxoperator= (const Box &box) throw ()
 Assignment operator.
debuggers and diagnostics
virtual bool isValid () const throw ()
 Internal state and consistency self-validation.
virtual void dump (std::ostream &s=std::cout, Size depth=0) const throw ()
 Internal value dump.
virtual void getVertices (vector< Vector3 > &vertices) const

Detailed Description

Box class.

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.


Constructor & Destructor Documentation

VIEW::Box::Box  )  throw ()
 

Default Constructor.

Construct new Box. The properties of this Box are set to:

  • color - to the color black
  • width, depth, height - to zero
  • rigth_vector to 0, 1, 0
    Returns:
    Box new constructed Box

VIEW::Box::Box const Box box  )  throw ()
 

Copy constructor with cloning facility.

virtual VIEW::Box::~Box  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void VIEW::Box::clear  )  throw () [virtual]
 

Explicit default initialization.

Calls GeometricObject::clear Calls Box3::clear

Reimplemented from VIEW::GeometricObject.

virtual void VIEW::Box::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [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.

Parameters:
s output stream where to output the value of this Box
depth the dumping depth
See also:
GeometricObject::dump

Box::dump

Reimplemented from VIEW::GeometricObject.

virtual bool VIEW::Box::isValid  )  const throw () [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.

See also:
GeometricObject::isValid

Box3::isValid

Reimplemented from VIEW::GeometricObject.

const Box& VIEW::Box::operator= const Box box  )  throw ()
 

Assignment operator.

void VIEW::Box::set const Box box  )  throw ()
 

Assignment.