Cortex  10.0.0-a4
Public Types | Public Member Functions | List of all members
IECore::PolygonIterator Class Reference

#include <PolygonIterator.h>

Public Types

typedef std::vector< int >::const_iterator NumVerticesIterator
 An iterator for the vector returned by MeshPrimitive::vertexIds()->readable()
 
typedef std::vector< int >::const_iterator VertexIndexIterator
 

Public Member Functions

 PolygonIterator ()
 Uninitialised.
 
 PolygonIterator (NumVerticesIterator numVerticesIterator, VertexIndexIterator vertexIndexIterator, int faceVaryingOffset)
 
PolygonIteratoroperator++ ()
 
PolygonIterator operator++ (int)
 
bool operator== (const PolygonIterator &rhs) const
 
bool operator!= (const PolygonIterator &rhs) const
 
PolygonIteratoroperator= (const PolygonIterator &rhs)
 
template<typename ValueIterator >
PolygonVertexIterator< ValueIterator > vertexBegin (ValueIterator valuesBegin) const
 
template<typename ValueIterator >
PolygonVertexIterator< ValueIterator > vertexEnd (ValueIterator valuesBegin) const
 Returns the matching end of range iterator for vertexBegin.
 
template<typename ValueIterator >
ValueIterator faceVaryingBegin (ValueIterator valuesBegin) const
 
template<typename ValueIterator >
ValueIterator faceVaryingEnd (ValueIterator valuesBegin) const
 Returns the matching end of range iterator for faceVaryingBegin.
 

Detailed Description

An iterator type suitable for iterating over the faces of a MeshPrimitive. Generally these wouldn't be created directly, instead being created by calls to MeshPrimitive::faceBegin() and MeshPrimitive::faceEnd().

Member Function Documentation

template<typename ValueIterator >
ValueIterator IECore::PolygonIterator::faceVaryingBegin ( ValueIterator  valuesBegin) const

Returns an iterator to the beginning of the range of facevarying interpolated values for this polygon. Typically you should pass PrimitiveVariable::data::readable()::begin() for the primitive variable you're interested in.

template<typename ValueIterator >
PolygonVertexIterator<ValueIterator> IECore::PolygonIterator::vertexBegin ( ValueIterator  valuesBegin) const

Returns an iterator to the beginning of the range of vertex interpolated values for this polygon. Typically you should pass PrimitiveVariable::data::readable()::begin() for the primitive variable you're interested in.


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