Main Page | Class Hierarchy | Class List | File List | Class Members

ObjectContainer Class Reference

#include <objectcontainer.h>

Inheritance diagram for ObjectContainer:

Object3D SurfacePatch3D TransparentTransformatable Transformatable List of all members.

Public Member Functions

 ObjectContainer ()
virtual ~ObjectContainer ()
void close ()
void prepareToRender ()

Protected Types

typedef std::vector< SurfacePatch3D * > spvector

Protected Member Functions

 ObjectContainer (const Object3D &o, ObjectList *l)
 ObjectContainer (const ObjectContainer &c)
virtual void calculateBoundingBox ()
virtual ObjectContainergetEmptyContainer ()=0

Protected Attributes

ObjectListobjects
spvector * collector_list
bool isclosed
bool isprepared

Static Protected Attributes

const unsigned int MAX_MEMBERS_COUNT = 31
const unsigned int MIN_MEMBERS_COUNT = 7
long ObjectContainer_count = 0
long ObjectContainer_list_size [MAX_MEMBERS_COUNT]

Detailed Description

Provides a container for multiple objects and different set operations between them.
Author:
Micha Riser


Constructor & Destructor Documentation

ObjectContainer::ObjectContainer  ) 
 

Constructs new empty ObjectContainer object.

ObjectContainer::~ObjectContainer  )  [virtual]
 

Destructor.

ObjectContainer::ObjectContainer const ObjectContainer c  )  [protected]
 

Copy constructor.


Member Function Documentation

void ObjectContainer::calculateBoundingBox  )  [protected, virtual]
 

Calculates and creates a bounding box for the ObjectContainer if it is finit.

void ObjectContainer::close  ) 
 

Finish ObjectContainer object list creation. After calling this method no more members can be added to this ObjectContainer.

virtual ObjectContainer* ObjectContainer::getEmptyContainer  )  [protected, pure virtual]
 

Returns empty, untransformed container of same type

void ObjectContainer::prepareToRender  )  [virtual]
 

Prepare object for render process. Some optimisations can be done only before the rendering starts. This is the method that is to be called just before doing so. The object has to be tolerant against multiple calls of this method.

Reimplemented from SurfacePatch3D.


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:07 2005 for raytracer.kdevelop by doxygen 1.3.8