Public Member Functions | Protected Member Functions

MFnDoubleIndexedComponent Class Reference

This reference page is linked to from the following overview topics: Components.


Search for all occurrences

Detailed Description

Double indexed component function set.

This function set allows you to create, edit, and query double indexed components. Double indexed components store 2 dimensional index values.

#include <MFnDoubleIndexedComponent.h>

Inheritance diagram for MFnDoubleIndexedComponent:
Inheritance graph
[legend]

List of all members.

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)
 Create a double indexed component of the given type.
MStatus addElement (int uIndex, int vIndex)
 Add the specified element to the component.
MStatus addElements (const MIntArray &uIndexArray, const MIntArray &vIndexArray)
 Add the specified elements to the component.
MStatus getElement (int index, int &uIndex, int &vIndex) const
 Get the specified element from the component.
MStatus getElements (MIntArray &uIndexArray, MIntArray &vIndexArray) const
 Get all of the element indices from the component.
MStatus 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.
MStatus getCompleteData (int &maxU, int &maxV) const
 Returns the number of elements for the complete component.
 MFnDoubleIndexedComponent (const MObject &object, MStatus *ReturnStatus=NULL)
 NO SCRIPT SUPPORT.

Protected Member Functions

virtual const char * className () const
 Class name.

Constructor & Destructor Documentation

MFnDoubleIndexedComponent ( MObject object,
MStatus ReturnStatus = NULL 
)

Constructor.

Class constructor that initializes the function set to the given MObject.

Parameters:
[in]objectThe MObject to attach the function set to
[out]ReturnStatusthe return status
Status Codes:
MFnDoubleIndexedComponent ( const MObject object,
MStatus ReturnStatus = NULL 
)

NO SCRIPT SUPPORT.

Class constructor that initializes the function set to the given MObject.

Constructor

Parameters:
[in]objectThe MObject to attach the function set to
[out]ReturnStatusthe return status
Status Codes:

Member Function Documentation

MFn::Type type ( ) const [virtual]

Function set type.

Return the class type : MFn::kDoubleIndexedComponent.

Reimplemented from MFnComponent.

const char * className ( ) const [protected, virtual]

Class name.

Return the class name : "MFnDoubleIndexedComponent".

Reimplemented from MFnComponent.

MObject create ( MFn::Type  compType,
MStatus ReturnStatus = NULL 
)

Create a double indexed component of the given type.

Allowable types are

MFn::kSurfaceCVComponent MFn::kSurfaceEPComponent MFn::kSurfaceKnotComponent MFn::kMeshVtxFaceComponent

Parameters:
[in]compTypethe type of component to create
[out]ReturnStatusstatus code
Returns:
The new component
Status Codes:
MStatus addElement ( int  uIndex,
int  vIndex 
)

Add the specified element to the component.

Parameters:
[in]uIndexthe u index to add
[in]vIndexthe v index to add
Returns:
Status code
Status Codes:
MStatus addElements ( const MIntArray uIndices,
const MIntArray vIndices 
)

Add the specified elements to the component.

Parameters:
[in]uIndicesthe array of u indices to be added
[in]vIndicesthe array of v indices to be added
Returns:
Status code
Status Codes:
MStatus getElement ( int  index,
int &  uIndex,
int &  vIndex 
) const

Get the specified element from the component.

Parameters:
[in]indexthe index of the element to retrieve
[out]uIndexthe u index of the component
[out]vIndexthe v index of the component
Returns:
Status code
Status Codes:
MStatus getElements ( MIntArray uIndices,
MIntArray vIndices 
) const

Get all of the element indices from the component.

Parameters:
[out]uIndicesstorage for the array of u indices
[out]vIndicesstorage for the array of v indices
Returns:
Status code
Status Codes:
MStatus 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)).

Parameters:
[in]maxUthe maximum number of U elements
[in]maxVthe maximum number of V elements
Returns:
Status code
Status Codes:
MStatus getCompleteData ( int &  maxU,
int &  maxV 
) const

Returns the number of elements for the complete component.

A complete component means that all elements are selected.

Parameters:
[out]maxUstorage for the maximum number of U elements
[out]maxVstorage for the maximum number of V elements
Returns:
Status code
Status Codes:

MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent
MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent MFnDoubleIndexedComponent