#include <MFnMeshData.h>
Mesh function set for dependency node data.
MFnMeshData allows the creation and manipulation of Mesh data objects for use in the dependency graph.
If a user written dependency node either accepts or produces Meshes, then this class is used to create data blocks into which Meshes can be constructed before being passed to other dependency graph nodes. The MDataHandle::type method will return kMesh when data of this type is present.
If a node is receiving a Mesh via an input attribute, the asMesh method of MDataHandle can be used to access that input Mesh.
If a node is to create a Mesh and send it via an output attribute, a new MFnMeshData must be instantiated and then the create method called to build the actual data block as an MObject. This MObject should be passed to the MFnMesh::create method as the parentOrOwner parameter so that the Mesh will be constructed inside the data block. The MDataHandle::set routine is then used to pass the data block down the connection.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. More... | |
virtual | ~MFnMeshData () |
Destructor. | |
MFnMeshData () | |
Default constructor. | |
MFnMeshData (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MObject | create (MStatus *ReturnStatus=NULL) |
Create a new MObject, attach it to this instance and initialize it with a data block capable of holding a Mesh. More... | |
MFnMeshData (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
Public Member Functions inherited from MFnGeometryData | |
virtual | ~MFnGeometryData () |
Destructor. | |
MFnGeometryData () | |
Default constructor. | |
MFnGeometryData (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MStatus | setMatrix (const MMatrix &) |
Reset the matrix the the specified matrix and set the identity flag if the new matrix is the identity. More... | |
MStatus | getMatrix (MMatrix &) const |
Get the matrix associated with the geometry data. More... | |
bool | matrixIsIdentity (MStatus *ReturnStatus=NULL) const |
Return true if the matrix is the identity. More... | |
bool | matrixIsNotIdentity (MStatus *ReturnStatus=NULL) const |
Return true if the matrix is different from identity. More... | |
bool | hasObjectGroup (unsigned int id, MStatus *ReturnStatus=NULL) const |
This method returns true if an object group with the given id is contained in the data. More... | |
MStatus | addObjectGroup (unsigned int) |
This method adds an object group with the given id to the object. More... | |
MStatus | removeObjectGroup (unsigned int) |
This method removes an object group with the given id from the object. More... | |
MStatus | changeObjectGroupId (unsigned int, unsigned int) |
This method changes the id of the object group with the given id to the new id. More... | |
unsigned int | objectGroupCount (MStatus *ReturnStatus=NULL) const |
This method returns the number of object groups contained by the object. More... | |
unsigned int | objectGroup (unsigned int index, MStatus *ReturnStatus=NULL) const |
This method returns the id of the i'th object group contained by the object. More... | |
MFn::Type | objectGroupType (unsigned int, MStatus *ReturnStatus=NULL) const |
This method returns the type of the component that the object group with the given id contains. More... | |
MObject | objectGroupComponent (unsigned int, MStatus *ReturnStatus=NULL) const |
This method returns a component which contains the members of the object group with the given id. More... | |
MStatus | setObjectGroupComponent (unsigned int, MObject &) |
This method sets the members of the object group with the given id to be only those in the given component. More... | |
MStatus | addObjectGroupComponent (unsigned int, MObject &) |
This method adds the members of the given component to the object group with the given id. More... | |
MStatus | removeObjectGroupComponent (unsigned int, MObject &) |
This method removes the members of the given component from the object group with the given id. More... | |
MStatus | copyObjectGroups (MObject &inGeom) |
Copies the object groups from the given geometry data object. More... | |
MFnGeometryData (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
Public Member Functions inherited from MFnData | |
virtual | ~MFnData () |
Destructor. | |
MFnData (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MFnData () | |
Default class constructor. | |
MFnData (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
Public Member Functions inherited from MFnBase | |
virtual | ~MFnBase () |
Class Destructor. More... | |
bool | hasObj (MFn::Type) const |
Determines whether or not the Function Set is compatible with the specified Maya Object within the API RTTI system. More... | |
bool | hasObj (const MObject &) const |
Determines whether or not the Function Set is compatible with the specified Maya Object within the API RTTI system. More... | |
MObject | object (MStatus *ReturnStatus=NULL) const |
Returns the MObject that is attached to the Function Set. More... | |
virtual MStatus | setObject (MObject &object) |
Attaches the Function Set to the specified Maya Object. More... | |
virtual MStatus | setObject (const MObject &object) |
NO SCRIPT SUPPORT. More... | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. More... | |
Additional Inherited Members | |
Public Types inherited from MFnData | |
enum | Type { kInvalid, kNumeric, kPlugin, kPluginGeometry, kString, kMatrix, kStringArray, kDoubleArray, kFloatArray, kIntArray, kPointArray, kVectorArray, kMatrixArray, kComponentList, kMesh, kLattice, kNurbsCurve, kNurbsSurface, kSphere, kDynArrayAttrs, kDynSweptGeometry, kSubdSurface, kNObject, kNId, kAny, kLast } |
Types of dependency graph data. More... | |
Static Public Member Functions inherited from MFnBase | |
static const char * | className () |
Returns the name of this class. More... | |
MFnMeshData | ( | MObject & | object, |
MStatus * | ReturnStatus = NULL |
||
) |
MFnMeshData | ( | const MObject & | object, |
MStatus * | ReturnStatus = NULL |
||
) |
|
virtual |
|
protectedvirtual |