#include <MFnDoubleIndexedComponent.h>
This function set allows you to create, edit, and query double indexed components. Double indexed components store 2 dimensional index values.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnDoubleIndexedComponent () |
Destructor. | |
MFnDoubleIndexedComponent () | |
Default constructor. | |
MFnDoubleIndexedComponent (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MObject | create (MFn::Type compType, MStatus *ReturnStatus=NULL) |
MStatus | addElement (int uIndex, int vIndex) |
MStatus | addElements (const MIntArray &uIndexArray, const MIntArray &vIndexArray) |
MStatus | getElement (int index, int &uIndex, int &vIndex) const |
MStatus | getElements (MIntArray &uIndexArray, MIntArray &vIndexArray) const |
MStatus | setCompleteData (int maxU, int maxV) |
MStatus | getCompleteData (int &maxU, int &maxV) const |
MFnDoubleIndexedComponent (const MObject &object, MStatus *ReturnStatus=NULL) | |
NO SCRIPT SUPPORT. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
MFnDoubleIndexedComponent::MFnDoubleIndexedComponent | ( | 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 |
MFnDoubleIndexedComponent::MFnDoubleIndexedComponent | ( | const MObject & | object, | |
MStatus * | ReturnStatus = NULL | |||
) |
NO SCRIPT SUPPORT.
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 MFnDoubleIndexedComponent::type | ( | ) | const [virtual] |
Function set type.
Return the class type : MFn::kDoubleIndexedComponent
Reimplemented from MFnComponent.
const char * MFnDoubleIndexedComponent::className | ( | ) | const [protected, virtual] |
Create a double indexed component of the given type. Allowable types are
MFn::kSurfaceCVComponent MFn::kSurfaceEPComponent MFn::kSurfaceKnotComponent MFn::kMeshVtxFaceComponent
[in] | compType | the type of component to create |
[out] | ReturnStatus | status code |
MStatus MFnDoubleIndexedComponent::addElement | ( | int | uIndex, | |
int | vIndex | |||
) |
Add the specified element to the component.
[in] | uIndex | the u index to add |
[in] | vIndex | the v index to add |
MStatus MFnDoubleIndexedComponent::addElements | ( | const MIntArray & | uIndices, | |
const MIntArray & | vIndices | |||
) |
Add the specified elements to the component.
[in] | uIndices | the array of u indices to be added |
[in] | vIndices | the array of v indices to be added |
MStatus MFnDoubleIndexedComponent::getElement | ( | int | index, | |
int & | uIndex, | |||
int & | vIndex | |||
) | const |
Get the specified element from the component.
[in] | index | the index of the element to retrieve |
[out] | uIndex | the u index of the component |
[out] | vIndex | the v index of the component |
Get all of the element indices from the component.
[out] | uIndices | storage for the array of u indices |
[out] | vIndices | storage for the array of v indices |
MStatus MFnDoubleIndexedComponent::setCompleteData | ( | int | maxU, | |
int | maxV | |||
) |
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] | maxU | the maximum number of U elements |
[in] | maxV | the maximum number of V elements |
MStatus MFnDoubleIndexedComponent::getCompleteData | ( | int & | maxU, | |
int & | maxV | |||
) | const |
Returns the number of elements for the complete component. A complete component means that all elements are selected.
[out] | maxU | storage for the maximum number of U elements |
[out] | maxV | storage for the maximum number of V elements |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |