MItSubdVertex Class Reference

#include <MItSubdVertex.h>

Class Description

Subdiv vertex iterator.

This class is the iterator for subdiv vertices.

Public Member Functions

 MItSubdVertex (MObject &subdObject, MStatus *ReturnStatus=NULL)
 Constructor. More...
 
virtual ~MItSubdVertex ()
 Destructor. More...
 
bool isDone (MStatus *ReturnStatus=NULL)
 Indicates if all of the vertices have been traversed yet. More...
 
MStatus next ()
 Advance to the next vertex in the iteration. More...
 
MStatus reset ()
 Reset the iterator to the first vertex. More...
 
int level (MStatus *ReturnStatus=NULL) const
 Returns the level of the subdiv object. More...
 
void setLevel (int level, MStatus *ReturnStatus=NULL)
 Sets the level of the subdiv object. More...
 
bool isValid (MStatus *ReturnStatus=NULL) const
 Checks if the iterator is valid. More...
 
MUint64 index (MStatus *ReturnStatus=NULL)
 Returns the index of the current vertex in the vertex list for this subdiv object. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

Constructor & Destructor Documentation

MItSubdVertex ( MObject subdObject,
MStatus ReturnStatus = NULL 
)

Constructor.

Creates an iterator for all vertices of the given subdiv surface.

Parameters
[in]subdObjectThe subd surface to iterate over
[out]ReturnStatusStatus code
Status Codes:
~MItSubdVertex ( )
virtual

Destructor.

Frees up storage used by the iterator.

Member Function Documentation

bool isDone ( MStatus ReturnStatus = NULL)

Indicates if all of the vertices have been traversed yet.

Parameters
[out]ReturnStatusStatus code
Returns
  • true All vertices have been traversed
  • false There are more vertices in the iteration
Status Codes:
MStatus next ( )

Advance to the next vertex in the iteration.

Returns
Status code
Status Codes:
MStatus reset ( )

Reset the iterator to the first vertex.

Returns
Status code
Status Codes:
int level ( MStatus ReturnStatus = NULL) const

Returns the level of the subdiv object.

Parameters
[out]ReturnStatusStatus code
Returns
The level.
Status Codes:
void setLevel ( int  level,
MStatus ReturnStatus = NULL 
)

Sets the level of the subdiv object.

Parameters
[in]levelLevel of the subdiv
[out]ReturnStatusStatus code
Status Codes:
bool isValid ( MStatus ReturnStatus = NULL) const

Checks if the iterator is valid.

Parameters
[out]ReturnStatusStatus code
Returns
Boolean to indicate whether the iterator is valid or not.
Status Codes:
MUint64 index ( MStatus ReturnStatus = NULL)

Returns the index of the current vertex in the vertex list for this subdiv object.

Parameters
[out]ReturnStatusStatus code
Returns
The index in the vertex list for the current vertex
Status Codes:
const char * className ( )
static

Returns the name of this class.

Returns
The name of this class.

The documentation for this class was generated from the following files:
  • MItSubdVertex.h
  • MItSubdVertex.cpp