EntitySet Class Reference

Container of Entity objects. More...

#include <EntitySet.h>

List of all members.

Public Member Functions

void add (Entity *entity)
 Add copy of entity to container.
void divide (float size)
PatchSequenceEnumeratorcreatePatchSequenceEnumerator ()
 Create enumerator for all patches maintained indirectly by EntitySet.
size_t count ()
 Return current count of entities stored in container.
Entityoperator[] (unsigned index)
 Access entity using its index.
TriangleSetExtcomputeVertexColors ()
 Compute per-vertex colors using simple interpolation.

Returns:
Return instance of TriangleSetExt allocated on the heap.


Detailed Description

Container of Entity objects.

Definition at line 28 of file EntitySet.h.


Member Function Documentation

void EntitySet::add ( Entity entity  ) 

Add copy of entity to container.

Note:
There is no need to keep Entity object in memory outside this class.
Parameters:
entity Pointer to entity to copy to container.

void EntitySet::divide ( float  size  ) 

Perform patch division.

Parameters:
size Size of the largest acceptable patch.

PatchSequenceEnumerator* EntitySet::createPatchSequenceEnumerator (  ) 

Create enumerator for all patches maintained indirectly by EntitySet.

Returns:
Return instance of PatchSequenceEnumerator allocated on the heap.

Referenced by operator<<().

size_t EntitySet::count (  ) 

Return current count of entities stored in container.

Returns:
Return current count of entities stored in container.

Entity& EntitySet::operator[] ( unsigned  index  ) 

Access entity using its index.

Parameters:
index Index of entity - must be in range <0, count()-1>.
Returns:
Return reference to desired entity.

TriangleSetExt* EntitySet::computeVertexColors (  ) 

Compute per-vertex colors using simple interpolation.

Returns:
Return instance of TriangleSetExt allocated on the heap.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 19:33:12 2007 for Radiosity Renderer and Visualizer by  doxygen 1.5.2