PatchRandomAccessEnumerator Class Reference

Indexed access to patches stored in generic hierarchical structure. More...

#include <PatchRandomAccessEnumerator.h>

List of all members.

Public Member Functions

 PatchRandomAccessEnumerator (PatchSequenceEnumerator *)
 Create indexed enumerator from non-indexed enumerator.
int count ()
 Return total count of patches accessible trough enumerator.
Triangleoperator[] (unsigned index)
 Access patch using its index.

Static Public Member Functions

static PatchRandomAccessEnumeratorcreate (Entity *forEntity)
 Create enumerator for all patches from desired Entity.
static PatchRandomAccessEnumeratorcreate (EntitySet *forEntitySet)
 Create enumerator for all patches from desired EntitySet.


Detailed Description

Indexed access to patches stored in generic hierarchical structure.

Adapter for PatchSequenceEnumerator, which does not support indexed (random) access.

Note:
This enumerator hold large ammount of data. It should be shared between objects as possible.

Definition at line 24 of file PatchRandomAccessEnumerator.h.


Constructor & Destructor Documentation

PatchRandomAccessEnumerator::PatchRandomAccessEnumerator ( PatchSequenceEnumerator  ) 

Create indexed enumerator from non-indexed enumerator.


Member Function Documentation

static PatchRandomAccessEnumerator* PatchRandomAccessEnumerator::create ( Entity forEntity  )  [static]

Create enumerator for all patches from desired Entity.

Parameters:
forEntity Entity to create enumerator for.
Returns:
Return enumerator object allocated on the heap.

static PatchRandomAccessEnumerator* PatchRandomAccessEnumerator::create ( EntitySet forEntitySet  )  [static]

Create enumerator for all patches from desired EntitySet.

Parameters:
forEntitySet EntitySet to create enumerator for.
Returns:
Return enumerator object allocated on the heap.

int PatchRandomAccessEnumerator::count (  ) 

Return total count of patches accessible trough enumerator.

Returns:
Return total count of patches accessible trough enumerator.

Triangle& PatchRandomAccessEnumerator::operator[] ( unsigned  index  ) 

Access patch using its index.

Parameters:
index Index of desired patch. This index has to be in range <0, count()-1>.


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