Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Iterator used to extract the indices of every single triangle of a DrawCall regardless of the primitive type. More...
#include <TriangleIterator.hpp>
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< TriangleIteratorAbstract > | mIterator |
Iterator used to extract the indices of every single triangle of a DrawCall regardless of the primitive type.
Definition at line 559 of file TriangleIterator.hpp.
| vl::TriangleIterator::TriangleIterator | ( | TriangleIteratorAbstract * | it ) | [inline] |
Definition at line 562 of file TriangleIterator.hpp.
| bool vl::TriangleIterator::next | ( | ) | [inline] |
Requires the next triangle.
Returns false the iterator reached the end of the triangle list.
Definition at line 565 of file TriangleIterator.hpp.
References mIterator.
| 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.
Definition at line 568 of file TriangleIterator.hpp.
References mIterator.
Referenced by vl::Geometry::computeTangentSpace(), vl::EdgeExtractor::extractEdges(), vl::RayIntersector::intersectGeometry(), and vl::PolygonSimplifier::simplify().
| int vl::TriangleIterator::a | ( | ) | const [inline] |
First index of the triangle.
Definition at line 571 of file TriangleIterator.hpp.
References mIterator.
| int vl::TriangleIterator::b | ( | ) | const [inline] |
First index of the triangle.
Definition at line 574 of file TriangleIterator.hpp.
References mIterator.
| int vl::TriangleIterator::c | ( | ) | const [inline] |
First index of the triangle.
Definition at line 577 of file TriangleIterator.hpp.
References mIterator.
ref<TriangleIteratorAbstract> vl::TriangleIterator::mIterator [protected] |