#include <GroupObject.h>
Inheritance diagram for GroupObject:
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 () |
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: 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. |
|
Destuctor. Definition at line 9 of file GroupObject.cpp. |
|
Adds a child to the group of objects.
Definition at line 57 of file GroupObject.cpp. |
|
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. |
|
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. |
|
Implementation of the Draw routine. Draws All the children.
Reimplemented from GraphicalObject. Definition at line 14 of file GroupObject.cpp. |
|
Prints information about the object to the console. Reimplemented from GraphicalObject. Definition at line 96 of file GroupObject.cpp. |