#include <MItDependencyNodes.h>
Use the dependency node iterator to traverse all the nodes in Maya's Dependency Graph.
With filtering enabled, the iterator checks to see if the node is compatible with the type specified by the filter. See MFn::Type for a list of all valid types.
Since MObjects may be compatible with more than one type (nodes are organised in a hierarchy) the MObject::hasFn() method can be used to further check for compatible types.
Any compatible Function Set can be attached to the retrieved object to query or or edit it. Often you will want to use the dependency node function set (MFnDependencyNode), which is compatible with all dependency nodes, to perform queries on each node as the iterator Traverses the Dependency Graph.
Public Member Functions | |
MItDependencyNodes (MFn::Type filter=MFn::kInvalid, MStatus *ReturnStatus=NULL) | |
MItDependencyNodes (MIteratorType &infoObject, MStatus *ReturnStatus=NULL) | |
virtual | ~MItDependencyNodes () |
MStatus | reset (MFn::Type filter=MFn::kInvalid) |
MStatus | reset (MIteratorType &infoObject) |
MObject | thisNode (MStatus *ReturnStatus=NULL) const |
MStatus | next () |
bool | isDone (MStatus *ReturnStatus=NULL) const |
MObject | item (MStatus *ReturnStatus=NULL) const |
This method is obsolete. |
MItDependencyNodes::MItDependencyNodes | ( | MFn::Type | filter = MFn::kInvalid , |
|
MStatus * | ReturnStatus = NULL | |||
) |
Class Constructor
Initializes the iterator and establishes the filter.
[in] | filter | Function set type (MFn::Type) |
[out] | ReturnStatus | Status Code (see below) |
MItDependencyNodes::MItDependencyNodes | ( | MIteratorType & | infoObject, | |
MStatus * | ReturnStatus = NULL | |||
) |
Class Constructor
Initializes the iterator and the filter list.
[in] | infoObject | List of function set type (MFn::Type) |
[out] | ReturnStatus | Status Code (see below) |
MItDependencyNodes::~MItDependencyNodes | ( | ) | [virtual] |
Class Destructor
Resets the iterator and reinitializes the filter.
[in] | filter | Function set type (MFn::Type) |
MStatus MItDependencyNodes::reset | ( | MIteratorType & | infoObject | ) |
Resets the iterator and reinitializes the filter list. The filter list is specified through MIteratorType object.
[in] | infoObject | MIterator object, which has filter list information. |
Retrieves the dependency node to which the iterator points.
[out] | ReturnStatus | Status Code (see below). |
MStatus MItDependencyNodes::next | ( | ) |
Moves to the next node matching the filter. If the filter is set to kInvalid, this method advances to the next DG node without doing any filtering.
bool MItDependencyNodes::isDone | ( | MStatus * | ReturnStatus = NULL |
) | const |
Indicates end of the iteration.
[out] | ReturnStatus | Status Code (see below) |
This method is obsolete.
[out] | ReturnStatus | Status Code (see below). |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |