#include <PatchRandomAccessEnumerator.h>
Public Member Functions | |
| PatchRandomAccessEnumerator (PatchSequenceEnumerator *) | |
| Create indexed enumerator from non-indexed enumerator. | |
| int | count () |
| Return total count of patches accessible trough enumerator. | |
| Triangle & | operator[] (unsigned index) |
| Access patch using its index. | |
Static Public Member Functions | |
| static PatchRandomAccessEnumerator * | create (Entity *forEntity) |
| Create enumerator for all patches from desired Entity. | |
| static PatchRandomAccessEnumerator * | create (EntitySet *forEntitySet) |
| Create enumerator for all patches from desired EntitySet. | |
Adapter for PatchSequenceEnumerator, which does not support indexed (random) access.
Definition at line 24 of file PatchRandomAccessEnumerator.h.
| PatchRandomAccessEnumerator::PatchRandomAccessEnumerator | ( | PatchSequenceEnumerator * | ) |
Create indexed enumerator from non-indexed enumerator.
| static PatchRandomAccessEnumerator* PatchRandomAccessEnumerator::create | ( | Entity * | forEntity | ) | [static] |
| static PatchRandomAccessEnumerator* PatchRandomAccessEnumerator::create | ( | EntitySet * | forEntitySet | ) | [static] |
| int PatchRandomAccessEnumerator::count | ( | ) |
Return total count of patches accessible trough enumerator.
| Triangle& PatchRandomAccessEnumerator::operator[] | ( | unsigned | index | ) |
Access patch using its index.
| index | Index of desired patch. This index has to be in range <0, count()-1>. |
1.5.2