Public Member Functions | Protected Member Functions

MFnUint64SingleIndexedComponent Class Reference

Search for all occurrences

Detailed Description

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.

#include <MFnUint64SingleIndexedComponent.h>

Inheritance diagram for MFnUint64SingleIndexedComponent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual MFn::Type type () const
 Function set type.
virtual ~MFnUint64SingleIndexedComponent ()
 Destructor.
 MFnUint64SingleIndexedComponent ()
 Default constructor.
 MFnUint64SingleIndexedComponent (MObject &object, MStatus *ReturnStatus=NULL)
 Constructor.
MObject create (MFn::Type compType, MStatus *ReturnStatus=NULL)
 Create a single indexed component of the given type.
MStatus addElement (MUint64 element)
 Add the specified element to the component.
MStatus addElements (const MUint64Array &elements)
 Add the specified elements to the component.
MUint64 element (int index, MStatus *ReturnStatus=NULL) const
 Returns the specified element from the component.
MStatus getElements (MUint64Array &elements) const
 Get all of the element indices from the component.
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.
MStatus getCompleteData (MUint64 &numElements) const
 Returns the number of elements for the complete component.
 MFnUint64SingleIndexedComponent (const MObject &object, MStatus *ReturnStatus=NULL)
 Constructor.

Protected Member Functions

virtual const char * className () const
 Class name.

Constructor & Destructor Documentation

MFnUint64SingleIndexedComponent ( 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:
MFnUint64SingleIndexedComponent ( const 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:

Member Function Documentation

MFn::Type type ( ) const [virtual]

Function set type.

Return the class type : MFn::kUint64SingleIndexedComponent.

Reimplemented from MFnComponent.

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

Class name.

Return the class name : "MFnUint64SingleIndexedComponent".

Reimplemented from MFnComponent.

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

Create a single indexed component of the given type.

Allowable types are

MFn::kSubdivCVComponent MFn::kSubdivEdgeComponent MFn::kSubdivFaceComponent

Parameters:
[in]compTypethe type of component to create
[out]ReturnStatusstatus code
Returns:
The new component
Status Codes:
MStatus addElement ( MUint64  element)

Add the specified element to the component.

Parameters:
[in]elementthe element index to be added
Returns:
Status code
Status Codes:
MStatus addElements ( const MUint64Array elements)

Add the specified elements to the component.

Parameters:
[in]elementsthe array of element indices to be added
Returns:
Status code
Status Codes:
MUint64 element ( int  index,
MStatus ReturnStatus = NULL 
) const

Returns the specified element from the component.

Parameters:
[in]indexthe index of the element to retrieve
[out]ReturnStatusstatus code
Returns:
The index of the specified component
Status Codes:
MStatus getElements ( MUint64Array elements) const

Get all of the element indices from the component.

Parameters:
[in]elementsstorage for the array of indices
Returns:
Status code
Status Codes:
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)).

Parameters:
[in]numElementsthe maximum number of elements in the component
Returns:
Status code
Status Codes:
MStatus getCompleteData ( MUint64 &  numElements) const

Returns the number of elements for the complete component.

A complete component means that all elements are selected.

Parameters:
[out]numElementsstorage for the maximum number of elements
Returns:
Status code
Status Codes:

MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent
MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent MFnUint64SingleIndexedComponent