GroupObject Class Reference

A group of GraphicalObjects. More...

#include <GroupObject.h>

Inheritance diagram for GroupObject:

GraphicalObject List of all members.

Public Member Functions

 GroupObject ()
 ~GroupObject ()
void Draw (int time, Camera *camera, Camera *monitor, bool show_bounding_volume, int culling_mode, bool level_of_detail)
void AddChild (GraphicalObject *child)
void PrintToConsole ()

Protected Member Functions

void ComputeBoundingRadius ()
void ComputeBoundingBox ()

Detailed Description

A group of GraphicalObjects.

A GroupObject is, as the name suggests, just a group of objects. A group object has no own appearance, it just groups a set of objects together and provides them a common coordinate system.

Definition at line 19 of file GroupObject.h.


Constructor & Destructor Documentation

GroupObject::GroupObject  ) 
 

Constructor: Brings the group object into a consistent state. No RawObject may be associated with a group object.

Definition at line 4 of file GroupObject.cpp.

GroupObject::~GroupObject  ) 
 

Destuctor.

Definition at line 9 of file GroupObject.cpp.


Member Function Documentation

void GroupObject::AddChild GraphicalObject child  ) 
 

Adds a child to the group of objects.

Parameters:
child Child to be added to this group.

Definition at line 57 of file GroupObject.cpp.

void GroupObject::ComputeBoundingBox  )  [protected, virtual]
 

Implementation of the bounding box computation. Since the group itself does not occupy any space, the bounding box is equal to zero. To take the boxes of the children into account, 'UpdateBoundingBox ()' has to be called.

Reimplemented from GraphicalObject.

Definition at line 86 of file GroupObject.cpp.

void GroupObject::ComputeBoundingRadius  )  [protected, virtual]
 

Implementation of the bounding sphere computation. Since the group itself does not occupy any space, the bounding radius is equal to zero. To take the volumina of the children into account, 'UpdateBoundingRadius ()' has to be called.

Reimplemented from GraphicalObject.

Definition at line 81 of file GroupObject.cpp.

void GroupObject::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 All the children.

Parameters:
time Time at which the group object shall be drawn.
camera Camera which captures the group 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 14 of file GroupObject.cpp.

void GroupObject::PrintToConsole  )  [virtual]
 

Prints information about the object to the console.

Reimplemented from GraphicalObject.

Definition at line 96 of file GroupObject.cpp.


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