Visualization Library 2.0.0

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
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>

Public Member Functions

 TriangleIterator (TriangleIteratorAbstract *it)
 
bool next ()
 Requires the next triangle. More...
 
bool operator++ ()
 
bool hasNext ()
 Returns false if the iterator has reached the end of the triangle list. More...
 
int a () const
 First index of the triangle. More...
 
int b () const
 First index of the triangle. More...
 
int c () const
 First index of the triangle. More...
 

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()

Definition at line 603 of file TriangleIterator.hpp.

Constructor & Destructor Documentation

◆ TriangleIterator()

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

Definition at line 606 of file TriangleIterator.hpp.

Member Function Documentation

◆ a()

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

First index of the triangle.

Definition at line 617 of file TriangleIterator.hpp.

◆ b()

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

First index of the triangle.

Definition at line 620 of file TriangleIterator.hpp.

◆ c()

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

First index of the triangle.

Definition at line 623 of file TriangleIterator.hpp.

◆ hasNext()

bool vl::TriangleIterator::hasNext ( )
inline

◆ next()

bool vl::TriangleIterator::next ( )
inline

Requires the next triangle.

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

Definition at line 609 of file TriangleIterator.hpp.

◆ operator++()

bool vl::TriangleIterator::operator++ ( )
inline

Definition at line 611 of file TriangleIterator.hpp.

References vl::TriangleIteratorAbstract::next().

Member Data Documentation

◆ mIterator

ref<TriangleIteratorAbstract> vl::TriangleIterator::mIterator
protected

Definition at line 626 of file TriangleIterator.hpp.


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