Subdiv face iterator.
This class is the iterator for subdiv faces. It will iterate over all of the surface's faces.
#include <MItSubdFace.h>
Public Member Functions |
|
MItSubdFace (MObject &subdObject, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
virtual | ~MItSubdFace () |
Destructor. |
|
MStatus | reset () |
Reset the iterator to the first face.
|
|
MStatus | next () |
Advance to the next face in the iteration.
|
|
bool | isDone (MStatus *ReturnStatus=NULL) |
Indicates if all of the faces have been
traversed yet. |
|
bool | isValid (MStatus *ReturnStatus=NULL) const |
Checks if the iterator is valid. |
|
unsigned int | level (MStatus *ReturnStatus=NULL) const |
Returns the level of the subdiv object.
|
|
void | setLevel (unsigned int level, MStatus *ReturnStatus=NULL) |
Sets the level of the subdiv object.
|
|
MUint64 | index (MStatus *ReturnStatus=NULL) |
Returns the index of the current face for
this subdiv object. |
|
Static Public Member Functions |
|
static const char * | className () |
Returns the name of this class. |
MItSubdFace | ( | MObject & | subdObject, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Creates an iterator for all faces of the given subdiv surface.
[in] | subdObject | The subdiv surface |
[out] | ReturnStatus | Status code |
~MItSubdFace | ( | ) | [virtual] |
Destructor.
Frees up storage used by the iterator.
MStatus reset | ( | ) |
Reset the iterator to the first face.
MStatus next | ( | ) |
Advance to the next face in the iteration.
bool isDone | ( | MStatus * | ReturnStatus =
NULL |
) |
Indicates if all of the faces have been traversed yet.
[out] | ReturnStatus | Status code |
bool isValid | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Checks if the iterator is valid.
[out] | ReturnStatus | Status code |
unsigned int level | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the level of the subdiv object.
[out] | ReturnStatus | Status code |
void setLevel | ( | unsigned int | level, |
MStatus * | ReturnStatus =
NULL |
||
) |
Sets the level of the subdiv object.
[in] | level | New level. |
[out] | ReturnStatus | Status code |
MUint64 index | ( | MStatus * | ReturnStatus =
NULL |
) |
Returns the index of the current face for this subdiv object.
[out] | ReturnStatus | Status code |
const char * className | ( | ) | [static] |