BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members
BALL::VIEW::Box Class Reference

#include <BALL/VIEW/PRIMITIVES/box.h>

Inheritance diagram for BALL::VIEW::Box:
BALL::VIEW::GeometricObject BALL::TBox3< T >

Public Member Functions

Constructors
 Box ()
 
 Box (const Box &box)
 
 Box (const Vector3 &point, const Vector3 &right_vector, const Vector3 &height_vector, float depth)
 
 Box (const Vector3 &point, const Vector3 &right_vector=Vector3(0, 1, 0), const Vector3 &height_vector=Vector3(1, 0, 0), const Vector3 &depth_vector=Vector3(0, 0, 1))
 
Destructors
virtual ~Box ()
 
virtual void clear ()
 
Assignment methods
void set (const Box &box)
 
const Boxoperator= (const Box &box)
 
debuggers and diagnostics
virtual bool isValid () const
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
virtual void getVertices (vector< Vector3 > &vertices) const
 
- Public Member Functions inherited from BALL::VIEW::GeometricObject
 GeometricObject ()
 
 GeometricObject (const GeometricObject &object)
 
virtual ~GeometricObject ()
 
void set (const GeometricObject &object)
 
GeometricObjectoperator= (const GeometricObject &object)
 
void swap (GeometricObject &object)
 
void setComposite (const Composite *composite)
 
const CompositegetComposite () const
 
void setColor (const ColorRGBA &color)
 
void setColor (const ColorUnit &red, const ColorUnit &green, const ColorUnit &blue, const ColorUnit &alpha=(float) 1)
 
const ColorRGBAgetColor () const
 
ColorRGBAgetColor ()
 
void getColor (ColorUnit &red, ColorUnit &green, ColorUnit &blue, ColorUnit &alpha) const
 
void getColors (HashSet< String > &colors)
 Insert the colors of this object into the hashset. More...
 
bool operator== (const GeometricObject &object) const
 Needed for MSVC. More...
 
bool operator< (const GeometricObject &object) const
 Needed for MSVC. More...
 
- Public Member Functions inherited from BALL::TBox3< T >
 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 ()
 
void set (const TBox3 &box)
 
const TBox3operator= (const TBox3 &box)
 
void swap (TBox3 &box)
 
void setWidth (T width)
 Set width. More...
 
getWidth () const
 Get width. More...
 
void setHeight (T height)
 Set height. More...
 
getHeight () const
 Get height. More...
 
void setDepth (T depth)
 Set depth. More...
 
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...
 
getSurface () const
 
getVolume () const
 
TVector3< T > getDiagonalVector () const
 
bool operator== (const TBox3 &box) const
 
bool operator!= (const TBox3 &box) const
 
bool isValid () const
 
void dump (std::ostream &s=std::cout, Size depth=0) const
 

Additional Inherited Members

- Protected Attributes inherited from BALL::TBox3< T >
TVector3< T > point_
 
TVector3< T > right_vector_
 
TVector3< T > height_vector_
 
TVector3< T > depth_vector_
 
width_
 
height_
 
depth_
 

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.

Definition at line 30 of file box.h.

Constructor & Destructor Documentation

BALL::VIEW::Box::Box ( )

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

  • color - to the color black
  • width, depth, height - to one
  • right_vector to 0, 1, 0
  • heigth_vector to 1, 0, 0
  • depth_vector to 0, 0, 1
    Returns
    Box new constructed Box
BALL::VIEW::Box::Box ( const Box box)

Copy constructor with cloning facility.

BALL::VIEW::Box::Box ( const Vector3 point,
const Vector3 right_vector,
const Vector3 height_vector,
float  depth 
)
BALL::VIEW::Box::Box ( const Vector3 point,
const Vector3 right_vector = Vector3(0, 1, 0),
const Vector3 height_vector = Vector3(1, 0, 0),
const Vector3 depth_vector = Vector3(0, 0, 1) 
)
virtual BALL::VIEW::Box::~Box ( )
virtual

Destructor.

Member Function Documentation

virtual void BALL::VIEW::Box::clear ( )
virtual

Explicit default initialization. Calls GeometricObject::clear Calls Box3::clear

Reimplemented from BALL::TBox3< T >.

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.

Parameters
soutput stream where to output the value of this Box
depththe dumping depth
See Also
GeometricObject::dump
Box::dump

Reimplemented from BALL::VIEW::GeometricObject.

virtual void BALL::VIEW::Box::getVertices ( vector< Vector3 > &  vertices) const
virtual

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.

See Also
GeometricObject::isValid
Box3::isValid

Reimplemented from BALL::VIEW::GeometricObject.

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

Assignment operator.

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

Assignment.