#include <MFnPartition.h>
MFnPartition is the function set that is used for manipulating partitions of objects.
A partition is a list of dependency nodes and dag nodes. Partitions are useful for keeping track of lists of objects for many purposes such as selection or applying common rendering parameters. Partitions in Maya are also dependency nodes, so it is possible for one partition to contain others.
Public Member Functions | |
virtual MFn::Type | type () const |
Function set type. | |
virtual | ~MFnPartition () |
Destructor. | |
MFnPartition () | |
Default constructor. | |
MFnPartition (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
MObject | create (bool isRenderPartition=false, MStatus *ReturnStatus=NULL) |
bool | isRenderPartition (MStatus *ReturnStatus=NULL) const |
MStatus | addMember (const MObject &set) |
MStatus | removeMember (const MObject &set) |
MFnPartition (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. | |
Protected Member Functions | |
virtual const char * | className () const |
Class name. |
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 |
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 MFnPartition::type | ( | ) | const [virtual] |
const char * MFnPartition::className | ( | ) | const [protected, virtual] |
Creates a new partition dependency node and puts it in the dependency graph.
[in] | isRenderPartition | determines whether this partition is a render partition |
[out] | ReturnStatus | return status |
bool MFnPartition::isRenderPartition | ( | MStatus * | ReturnStatus = NULL |
) | const |
Returns true if this partition is a render partition.
[out] | ReturnStatus | return status |
Add a set to this partition. To be added to a partition, a set must be mutually exclusive with all of the other sets in the partition. If there are any conflicting elements, then the add will fail.
[in] | set | new set to be added to this partiton. |
Remove a set from this partition.
[in] | set | old set to be removed from this partiton. |
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |