Subdiv edge iterator.
This class is the iterator for subdiv edges.
#include <MItSubdEdge.h>
Public Member Functions |
|
| MItSubdEdge (MObject &subdObject, MStatus *ReturnStatus=NULL) | |
| Constructor. |
|
| virtual | ~MItSubdEdge () |
| Destructor. |
|
| MStatus | reset () |
| Reset the iterator to the first edge.
|
|
| MStatus | next () |
| Advance to the next edge in the iteration.
|
|
| bool | isDone (MStatus *ReturnStatus=NULL) |
| Indicates if all of the edges have been
traversed yet. |
|
| bool | isValid (MStatus *ReturnStatus=NULL) const |
| Checks if the iterator is valid. |
|
| int | level (MStatus *ReturnStatus=NULL) const |
| Returns the level of the subdiv object.
|
|
| void | setLevel (int level, MStatus *ReturnStatus=NULL) |
| Sets the level of the subdiv object.
|
|
| MUint64 | index (MStatus *ReturnStatus=NULL) |
| Returns the index of the current edge in the
edge list for this subdiv object. |
|
| bool | isSharp (MStatus *ReturnStatus=NULL) |
| Returns true if the edge is sharp. |
|
| void | setSharpness (bool sharp, MStatus *ReturnStatus=NULL) |
| Marks the edge as sharp. |
|
| bool | isBoundary (MStatus *ReturnStatus=NULL) |
| Checks if the edge is a boundary. |
|
Static Public Member Functions |
|
| static const char * | className () |
| Returns the name of this class. |
|
| MItSubdEdge | ( | MObject & | subdObject, |
| MStatus * | ReturnStatus =
NULL |
||
| ) |
Constructor.
Creates an iterator for all edges of the given subdiv surface.
| [in] | subdObject | The surface to iterate over |
| [out] | ReturnStatus | Status code |
| ~MItSubdEdge | ( | ) | [virtual] |
Destructor.
Frees up storage used by the iterator.
| MStatus reset | ( | ) |
Reset the iterator to the first edge.
| MStatus next | ( | ) |
Advance to the next edge in the iteration.
| bool isDone | ( | MStatus * | ReturnStatus =
NULL |
) |
Indicates if all of the edges have been traversed yet.
| [out] | ReturnStatus | Status code |
| bool isValid | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Checks if the iterator is valid.
| [out] | ReturnStatus | Status code |
| int level | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Returns the level of the subdiv object.
| [out] | ReturnStatus | Status code |
| void setLevel | ( | int | level, |
| MStatus * | ReturnStatus =
NULL |
||
| ) |
Sets the level of the subdiv object.
| [in] | level | Level of the subdiv |
| [out] | ReturnStatus | Status code |
| MUint64 index | ( | MStatus * | ReturnStatus =
NULL |
) |
Returns the index of the current edge in the edge list for this subdiv object.
| [out] | ReturnStatus | Status code |
| bool isSharp | ( | MStatus * | ReturnStatus =
NULL |
) |
Returns true if the edge is sharp.
| [out] | ReturnStatus | Status code |
| void setSharpness | ( | bool | sharp, |
| MStatus * | ReturnStatus =
NULL |
||
| ) |
Marks the edge as sharp.
| [in] | sharp | Boolean to mark the edge as sharp or not |
| [out] | ReturnStatus | Status code |
| bool isBoundary | ( | MStatus * | ReturnStatus =
NULL |
) |
Checks if the edge is a boundary.
| [out] | ReturnStatus | Status code |
| const char * className | ( | ) | [static] |