# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions | Protected Attributes

# vl::IndexIteratorElements< TArray > Class Template Reference

Index iterator operating over DrawElements, DrawRangeElements and MultiDrawElements. More...

`#include <IndexIterator.hpp>`

Inheritance diagram for vl::IndexIteratorElements< TArray >:

List of all members.

## Public Member Functions

virtual const char * | className ()
| Returns the name of the class.
| IndexIteratorElements ()
void | initialize (TArray *idx_array, const std::vector< GLint > *p_base_vertices, const std::vector< GLsizei > *p_vert_counts, int base_vert, bool prim_restart_on, unsigned int prim_restart_idx)
virtual bool | isEnd () const
virtual bool | next ()

## Protected Attributes

ref< TArray > | mArray
int | mBaseVert
int | mCurPos
bool | mPrimRestartEnabled
unsigned int | mPrimRestartIdx
const std::vector< GLint > * | mpBaseVertices
const std::vector< GLsizei > * | mpVertCounts
int | mBaseCount
int | mBaseIdx

## Detailed Description

### template<class TArray>
class vl::IndexIteratorElements< TArray >

Index iterator operating over DrawElements, DrawRangeElements and MultiDrawElements.

Definition at line 125 of file IndexIterator.hpp.

## Constructor & Destructor Documentation

template<class TArray >

vl::IndexIteratorElements< TArray >::IndexIteratorElements | ( | ) | `[inline]`

Definition at line 130 of file IndexIterator.hpp.

References vl::IndexIteratorElements< TArray >::initialize(), and VL_DEBUG_SET_OBJECT_NAME.

## Member Function Documentation

template<class TArray >

virtual const char* vl::IndexIteratorElements< TArray >::className | ( | ) | `[inline, virtual]`

Returns the name of the class.

Reimplemented from vl::IndexIteratorAbstract.

Definition at line 128 of file IndexIterator.hpp.

template<class TArray >

void vl::IndexIteratorElements< TArray >::initialize | ( | TArray * | idx_array,
|  | const std::vector< GLint > * | p_base_vertices,
|  | const std::vector< GLsizei > * | p_vert_counts,
|  | int | base_vert,
|  | bool | prim_restart_on,
|  | unsigned int | prim_restart_idx
| ) |  | `[inline]`

Definition at line 136 of file IndexIterator.hpp.

References vl::IndexIteratorElements< TArray >::mArray, vl::IndexIteratorElements< TArray >::mBaseCount, vl::IndexIteratorElements< TArray >::mBaseIdx, vl::IndexIteratorElements< TArray >::mBaseVert, vl::IndexIteratorElements< TArray >::mCurPos, vl::IndexIteratorAbstract::mIndex, vl::IndexIteratorElements< TArray >::mpBaseVertices, vl::IndexIteratorElements< TArray >::mPrimRestartEnabled, vl::IndexIteratorElements< TArray >::mPrimRestartIdx, vl::IndexIteratorElements< TArray >::mpVertCounts, and VL_CHECK.

Referenced by vl::IndexIteratorElements< TArray >::IndexIteratorElements().

template<class TArray >

virtual bool vl::IndexIteratorElements< TArray >::isEnd | ( | ) | const`[inline, virtual]`

Implements vl::IndexIteratorAbstract.

Definition at line 165 of file IndexIterator.hpp.

References vl::IndexIteratorElements< TArray >::mArray, and vl::IndexIteratorElements< TArray >::mCurPos.

template<class TArray >

virtual bool vl::IndexIteratorElements< TArray >::next | ( | ) | `[inline, virtual]`

Implements vl::IndexIteratorAbstract.

Definition at line 170 of file IndexIterator.hpp.

References vl::IndexIteratorElements< TArray >::mArray, vl::IndexIteratorElements< TArray >::mBaseCount, vl::IndexIteratorElements< TArray >::mBaseIdx, vl::IndexIteratorElements< TArray >::mBaseVert, vl::IndexIteratorElements< TArray >::mCurPos, vl::IndexIteratorAbstract::mIndex, vl::IndexIteratorElements< TArray >::mpBaseVertices, vl::IndexIteratorElements< TArray >::mPrimRestartEnabled, vl::IndexIteratorElements< TArray >::mPrimRestartIdx, vl::IndexIteratorElements< TArray >::mpVertCounts, and VL_CHECK.

## Member Data Documentation

template<class TArray >

ref<TArray> vl::IndexIteratorElements< TArray >::mArray`[protected]`

Definition at line 201 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), vl::IndexIteratorElements< TArray >::isEnd(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

int vl::IndexIteratorElements< TArray >::mBaseVert`[protected]`

Definition at line 202 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

int vl::IndexIteratorElements< TArray >::mCurPos`[protected]`

Definition at line 203 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), vl::IndexIteratorElements< TArray >::isEnd(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

bool vl::IndexIteratorElements< TArray >::mPrimRestartEnabled`[protected]`

Definition at line 204 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

unsigned int vl::IndexIteratorElements< TArray >::mPrimRestartIdx`[protected]`

Definition at line 205 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

const std::vector<GLint>* vl::IndexIteratorElements< TArray >::mpBaseVertices`[protected]`

Definition at line 206 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

const std::vector<GLsizei>* vl::IndexIteratorElements< TArray >::mpVertCounts`[protected]`

Definition at line 207 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

int vl::IndexIteratorElements< TArray >::mBaseCount`[protected]`

Definition at line 208 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

template<class TArray >

int vl::IndexIteratorElements< TArray >::mBaseIdx`[protected]`

Definition at line 209 of file IndexIterator.hpp.

Referenced by vl::IndexIteratorElements< TArray >::initialize(), and vl::IndexIteratorElements< TArray >::next().

The documentation for this class was generated from the following file:

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlGraphics/IndexIterator.hpp

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:42.
Permission is granted to use this page to write and publish articles regarding Visualization Library.