#include <MFnSingleIndexedComponent.h>


This function set allows you to create, edit, and query single indexed components. Single indexed components store 1 dimensional index values.
Public Member Functions | |
| virtual MFn::Type | type () const |
| Function set type. | |
| virtual | ~MFnSingleIndexedComponent () |
| Destructor. | |
| MFnSingleIndexedComponent () | |
| Default constructor. | |
| MFnSingleIndexedComponent (MObject &object, MStatus *ReturnStatus=NULL) | |
| Constructor. | |
| MObject | create (MFn::Type compType, MStatus *ReturnStatus=NULL) |
| MStatus | addElement (int element) |
| MStatus | addElements (MIntArray &elements) |
| int | element (int index, MStatus *ReturnStatus=NULL) const |
| MStatus | getElements (MIntArray &elements) const |
| MStatus | setCompleteData (int numElements) |
| MStatus | getCompleteData (int &numElements) const |
| MFnSingleIndexedComponent (const MObject &object, MStatus *ReturnStatus=NULL) | |
| Constructor. | |
Protected Member Functions | |
| virtual const char * | className () const |
| Class name. | |
| MFnSingleIndexedComponent::MFnSingleIndexedComponent | ( | 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 |
| MFnSingleIndexedComponent::MFnSingleIndexedComponent | ( | 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 |
| MFn::Type MFnSingleIndexedComponent::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kSingleIndexedComponent
Reimplemented from MFnComponent.
| const char * MFnSingleIndexedComponent::className | ( | ) | const [protected, virtual] |
Create a single indexed component of the given type. Allowable types are
MFn::kCurveCVComponent MFn::kCurveEPComponent MFn::kCurveKnotComponent MFn::kMeshEdgeComponent MFn::kMeshPolygonComponent MFn::kMeshVertComponent MFn::kMeshMapComponent
| [in] | compType | the type of component to create |
| [out] | ReturnStatus | status code |
| MStatus MFnSingleIndexedComponent::addElement | ( | int | element | ) |
Add the specified element to the component.
| [in] | element | the element index to be added |
Add the specified elements to the component.
| [in] | elements | the array of element indices to be added |
| int MFnSingleIndexedComponent::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 |
Get all of the element indices from the component.
| [out] | elements | storage for the array of indices |
| MStatus MFnSingleIndexedComponent::setCompleteData | ( | int | 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 MFnSingleIndexedComponent::getCompleteData | ( | int & | 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 |
| Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. |
Generated with
|