Visualization Library

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

vl::TriangleIterator Class Reference

Iterator used to extract the indices of every single triangle of a DrawCall regardless of the primitive type. More...

#include <TriangleIterator.hpp>

List of all members.

Public Member Functions

 TriangleIterator (TriangleIteratorAbstract *it)
bool next ()
 Requires the next triangle.
bool isEnd ()
 Returns true if the iterator reached the end of the triangle list.
int a () const
 First index of the triangle.
int b () const
 First index of the triangle.
int c () const
 First index of the triangle.

Protected Attributes

ref< TriangleIteratorAbstractmIterator

Detailed Description

Iterator used to extract the indices of every single triangle of a DrawCall regardless of the primitive type.

See also:
DrawCall::triangles()

Constructor & Destructor Documentation

vl::TriangleIterator::TriangleIterator ( TriangleIteratorAbstract it ) [inline]

Member Function Documentation

bool vl::TriangleIterator::next (  ) [inline]

Requires the next triangle.

Returns false the iterator reached the end of the triangle list.

bool vl::TriangleIterator::isEnd (  ) [inline]

Returns true if the iterator reached the end of the triangle list.

In this case a(), b() and c() return -1.

int vl::TriangleIterator::a (  ) const [inline]

First index of the triangle.

int vl::TriangleIterator::b (  ) const [inline]

First index of the triangle.

int vl::TriangleIterator::c (  ) const [inline]

First index of the triangle.


Member Data Documentation


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

Visualization Library v2010.11.1123 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Thu Nov 18 2010 02:08:16.
Permission is granted to use this page to write and publish articles regarding Visualization Library.