Visualization Library

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

vl::LineIterator Class Reference

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

#include <LineIterator.hpp>

List of all members.

Public Member Functions

 LineIterator (LineIteratorAbstract *it)
bool next ()
 Requires the next triangle.
bool operator++ ()
bool hasNext ()
 Returns false if the iterator has reached the end of the triangle list.
int a () const
 First index of the line.
int b () const
 Second index of the line.

Protected Attributes

ref< LineIteratorAbstractmIterator

Detailed Description

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

See also:
DrawCall::triangles()

Definition at line 422 of file LineIterator.hpp.


Constructor & Destructor Documentation

vl::LineIterator::LineIterator ( LineIteratorAbstract it) [inline]

Definition at line 425 of file LineIterator.hpp.


Member Function Documentation

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

Requires the next triangle.

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

Definition at line 428 of file LineIterator.hpp.

References mIterator.

Referenced by operator++().

bool vl::LineIterator::operator++ ( ) [inline]

Definition at line 430 of file LineIterator.hpp.

References next().

bool vl::LineIterator::hasNext ( ) [inline]

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

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

Definition at line 433 of file LineIterator.hpp.

References mIterator.

Referenced by vl::RayIntersector::intersectGeometry().

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

First index of the line.

Definition at line 436 of file LineIterator.hpp.

References mIterator.

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

Second index of the line.

Definition at line 439 of file LineIterator.hpp.

References mIterator.


Member Data Documentation

Definition at line 442 of file LineIterator.hpp.

Referenced by a(), b(), hasNext(), and next().


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.