#include <MFnUint64SingleIndexedComponent.h>
Single MUint64 indexed component function set.
This function set allows you to create, edit, and query single MUint64 indexed components. Single indexed components store 1 dimensional index values, where each value is an MUint64.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. More... | |
virtual | ~MFnUint64SingleIndexedComponent () |
Destructor. | |
MFnUint64SingleIndexedComponent () | |
Default constructor. | |
MFnUint64SingleIndexedComponent (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MObject | create (MFn::Type compType, MStatus *ReturnStatus=NULL) |
Create a single indexed component of the given type. More... | |
MStatus | addElement (MUint64 element) |
Add the specified element to the component. More... | |
MStatus | addElements (const MUint64Array &elements) |
Add the specified elements to the component. More... | |
MUint64 | element (int index, MStatus *ReturnStatus=NULL) const |
Returns the specified element from the component. More... | |
MStatus | getElements (MUint64Array &elements) const |
Get all of the element indices from the component. More... | |
MStatus | setCompleteData (MUint64 numElements) |
Marks the component as complete (meaning all items are selected) and uses the argument to identify the total number of elements selected. More... | |
MStatus | getCompleteData (MUint64 &numElements) const |
Returns the number of elements for the complete component. More... | |
MFnUint64SingleIndexedComponent (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
Public Member Functions inherited from MFnComponent | |
virtual | ~MFnComponent () |
Destructor. | |
MFnComponent (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MFnComponent () | |
Default class constructor. | |
int | elementCount (MStatus *ReturnStatus=NULL) const |
Returns the number of elements that this component contains. More... | |
MFn::Type | componentType (MStatus *ReturnStatus=NULL) const |
Returns the MFn type of the component. More... | |
bool | isEmpty (MStatus *ReturnStatus=NULL) const |
Determines if this component is empty, i.e. More... | |
bool | isEqual (MObject &, MStatus *ReturnStatus=NULL) const |
Compares this component with the given component. More... | |
bool | isComplete (MStatus *ReturnStatus=NULL) const |
Returns the complete state of the component. More... | |
MStatus | setComplete (bool) |
Sets the complete state of the component. More... | |
bool | hasWeights () const |
Query this component for the existance of attached weight data. More... | |
MWeight | weight (int index, MStatus *ReturnStatus=NULL) const |
Return the weight data for a given element within this component. More... | |
MStatus | setWeight (int index, const MWeight &weight) |
Set the weight data for a given element within this component. More... | |
MStatus | setWeights (const MWeight &weight) |
Set the weight data for all elements within this component. More... | |
MFnComponent (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. More... | |
MFn::Type | type (MStatus *ReturnStatus=NULL) |
Obsolete & no script support. 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 | |
Static Public Member Functions inherited from MFnBase | |
static const char * | className () |
Returns the name of this class. More... | |
MFnUint64SingleIndexedComponent | ( | MObject & | object, |
MStatus * | ReturnStatus = NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFnUint64SingleIndexedComponent | ( | const MObject & | object, |
MStatus * | ReturnStatus = NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
|
virtual |
Function set type.
Return the class type : MFn::kUint64SingleIndexedComponent.
Reimplemented from MFnComponent.
|
protectedvirtual |
Class name.
Return the class name : "MFnUint64SingleIndexedComponent".
Reimplemented from MFnComponent.
Create a single indexed component of the given type.
Allowable types are
MFn::kSubdivCVComponent MFn::kSubdivEdgeComponent MFn::kSubdivFaceComponent
[in] | compType | the type of component to create |
[out] | ReturnStatus | status code |
MStatus addElement | ( | MUint64 | element | ) |
Add the specified element to the component.
[in] | element | the element index to be added |
MStatus addElements | ( | const MUint64Array & | elements | ) |
Add the specified elements to the component.
[in] | elements | the array of element indices to be added |
MUint64 element | ( | int | index, |
MStatus * | ReturnStatus = NULL |
||
) | const |
Returns the specified element from the component.
[in] | index | the index of the element to retrieve |
[out] | ReturnStatus | status code |
MStatus getElements | ( | MUint64Array & | elements | ) | const |
Get all of the element indices from the component.
[in] | elements | storage for the array of indices |
MStatus setCompleteData | ( | MUint64 | numElements | ) |
Marks the component as complete (meaning all items are selected) and uses the argument to identify the total number of elements selected.
If the component should contain N element indices, then the range would be [0,N-1].
Also sets the complete state of the component to 'true' (i.e. setComplete(true)).
[in] | numElements | the maximum number of elements in the component |
MStatus getCompleteData | ( | MUint64 & | numElements | ) | const |
Returns the number of elements for the complete component.
A complete component means that all elements are selected.
[out] | numElements | storage for the maximum number of elements |