Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions

vl::LineIteratorIndexed< TArray > Class Template Reference

For internal use only. More...

#include <LineIterator.hpp>

Inheritance diagram for vl::LineIteratorIndexed< TArray >:
vl::LineIteratorAbstract vl::Object vl::LineIteratorMulti< TArray >

List of all members.

Public Member Functions

 LineIteratorIndexed ()
 LineIteratorIndexed (const TArray *idx_array, EPrimitiveType prim_type, int base_vert, bool prim_restart_on, unsigned int prim_restart_idx)
bool hasNext () const
virtual int a () const
virtual int b () const
void initialize (int start=0, int end=-1)
bool next ()
void setBaseVertex (int base_vert)
int baseVertex () const

Detailed Description

template<class TArray>
class vl::LineIteratorIndexed< TArray >

For internal use only.

See vl::LineIterator instead.

Definition at line 59 of file LineIterator.hpp.


Constructor & Destructor Documentation

template<class TArray >
vl::LineIteratorIndexed< TArray >::LineIteratorIndexed ( ) [inline]

Definition at line 65 of file LineIterator.hpp.

References NULL, vl::PT_UNKNOWN, and VL_DEBUG_SET_OBJECT_NAME.

template<class TArray >
vl::LineIteratorIndexed< TArray >::LineIteratorIndexed ( const TArray *  idx_array,
EPrimitiveType  prim_type,
int  base_vert,
bool  prim_restart_on,
unsigned int  prim_restart_idx 
) [inline]

Definition at line 80 of file LineIterator.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

template<class TArray >
bool vl::LineIteratorIndexed< TArray >::hasNext ( ) const [inline, virtual]

Implements vl::LineIteratorAbstract.

Reimplemented in vl::LineIteratorMulti< TArray >.

Definition at line 95 of file LineIterator.hpp.

template<class TArray >
virtual int vl::LineIteratorIndexed< TArray >::a ( ) const [inline, virtual]

Implements vl::LineIteratorAbstract.

Definition at line 97 of file LineIterator.hpp.

template<class TArray >
virtual int vl::LineIteratorIndexed< TArray >::b ( ) const [inline, virtual]

Implements vl::LineIteratorAbstract.

Definition at line 98 of file LineIterator.hpp.

template<class TArray >
void vl::LineIteratorIndexed< TArray >::initialize ( int  start = 0,
int  end = -1 
) [inline]

Definition at line 100 of file LineIterator.hpp.

References vl::PT_LINE_STRIP, vl::PT_LINES, and VL_CHECK.

template<class TArray >
bool vl::LineIteratorIndexed< TArray >::next ( ) [inline, virtual]

if (mEven) {

} else { mA = mArray->at(mCurrentIndex + 0); mB = mArray->at(mCurrentIndex + 2); }

Implements vl::LineIteratorAbstract.

Reimplemented in vl::LineIteratorMulti< TArray >.

Definition at line 140 of file LineIterator.hpp.

References vl::PT_LINE_LOOP, vl::PT_LINE_STRIP, vl::PT_LINES, and VL_TRAP.

template<class TArray >
void vl::LineIteratorIndexed< TArray >::setBaseVertex ( int  base_vert) [inline]

Definition at line 218 of file LineIterator.hpp.

template<class TArray >
int vl::LineIteratorIndexed< TArray >::baseVertex ( ) const [inline]

Definition at line 219 of file LineIterator.hpp.


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

Visualization Library 2011.09.1160 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 2 2013 13:41:30.
Permission is granted to use this page to write and publish articles regarding Visualization Library.