TerminalObject Class Reference

A graphical object that has no children. More...

#include <TerminalObject.h>

Inheritance diagram for TerminalObject:

GraphicalObject List of all members.

Public Member Functions

 TerminalObject (RawObject *raw_obj)
 ~TerminalObject ()
void Draw (int time, Camera *camera, Camera *monitor, bool show_bounding_volume, int culling_mode, bool level_of_detail)
void PrintToConsole ()

Protected Member Functions

void ComputeBoundingRadius ()
void ComputeBoundingBox ()

Private Member Functions

 TerminalObject ()

Detailed Description

A graphical object that has no children.

A TerminalObject is very similar to a leaf node in a scene graph. The TerminalObject has to be associated with a RawObject during construction. This object will then be drawn whenever the TerminalObject shall be visualized. And as the name suggests, a TerminalObject will never have any child objects.

Definition at line 21 of file TerminalObject.h.


Constructor & Destructor Documentation

TerminalObject::TerminalObject RawObject raw_obj  ) 
 

Constructor: Brings the object into a consistent state and associates a RawObject with it.

Parameters:
raw_obj The object associated with this terminal object.

Definition at line 3 of file TerminalObject.cpp.

TerminalObject::~TerminalObject  ) 
 

Destructor.

Definition at line 8 of file TerminalObject.cpp.

TerminalObject::TerminalObject  )  [private]
 

Hide the default constructor.


Member Function Documentation

void TerminalObject::ComputeBoundingBox  )  [protected, virtual]
 

Implementation of the bounding box routine. The bounding box is determined by the RawObject that is associated with this terminal object.

Reimplemented from GraphicalObject.

Definition at line 48 of file TerminalObject.cpp.

void TerminalObject::ComputeBoundingRadius  )  [protected, virtual]
 

Implementation of the bounding sphere routine. The bounding sphere is determined by the RawObject that is associated with this terminal object.

Reimplemented from GraphicalObject.

Definition at line 43 of file TerminalObject.cpp.

void TerminalObject::Draw int  time,
Camera camera,
Camera monitor,
bool  show_bounding_volume,
int  culling_mode,
bool  level_of_detail
[virtual]
 

Implementation of the Draw routine. Draws the RawObject that is associated with this terminal object.

Parameters:
time Time at which the object shall be drawn.
camera Camera which captures the object.
monitor Camera which monitors the whole scene, is equal to NULL if we are not in monitoring mode.
show_bounding_volume States if the bounding volume used for the view frustum culling shall be drawn.
culling_mode Determines the mode used for the view frustum culling (C_NONE, C_BOUNDING_BOX, C_SPHERE or C_MIXED).
level_of_detail States wheather level of detail is enabled or not.

Reimplemented from GraphicalObject.

Definition at line 13 of file TerminalObject.cpp.

void TerminalObject::PrintToConsole  )  [virtual]
 

Prints information about the object to the console.

Reimplemented from GraphicalObject.

Definition at line 53 of file TerminalObject.cpp.


Generated on Sun Jul 2 13:20:41 2006 for Demo by  doxygen 1.4.6-NO