MPxObjectSet Class Reference
[OpenMaya - API module for common classesProxy classes]

#include <MPxObjectSet.h>

Inheritance diagram for MPxObjectSet:

Inheritance graph
[legend]
Collaboration diagram for MPxObjectSet:

Collaboration graph
[legend]

List of all members.


Detailed Description

Parent class of all user defined object sets.

MPxObjectSet is the parent class of all user defined sets.

Public Member Functions

 MPxObjectSet ()
virtual ~MPxObjectSet ()
virtual MPxNode::Type type () const
virtual bool canBeDeleted (bool isSrcNode)

Static Public Attributes

static MObject dagSetMembers
static MObject DNSetMembers
 References to dependNode attributes which defines set membership.
static MObject memberWireframeColor
static MObject annotation
 A text string to annotate the set.
static MObject isLayer
 This attribute is obsolete and should no longer be used.
static MObject verticesOnlySet
static MObject edgesOnlySet
static MObject facetsOnlySet
static MObject editPointsOnlySet
static MObject renderableOnlySet
static MObject partition
 References to the partition nodes this set is a member of.
static MObject groupNodes
static MObject usedByNodes
 References to nodes that operate upon this set, such as deformers.


Constructor & Destructor Documentation

MPxObjectSet::MPxObjectSet (  ) 

Class constructor.

Any calls the MPxObjectSet methods must be done in the postConstructor method and not here.

MPxObjectSet::~MPxObjectSet (  )  [virtual]

Class destructor.


Member Function Documentation

MPxNode::Type MPxObjectSet::type (  )  const [virtual]

Returns the type of node that this is. This is used to differentiate user defined nodes that are derived off different MPx base classes.

It is not necessary to override this method.

Returns:
Type of the node (MPxNode::kObjectSet)

Reimplemented from MPxNode.

bool MPxObjectSet::canBeDeleted ( bool  isSrcNode  )  [virtual]

A method that is called whenever a neighboring node is deleted, to check if this node should be deleted alongside or as a result of the neighboring node. This method will not be called in the case where construction history is being deleted.

By default, the object set will be deleted when all of the following criteria are met:

  • The object set is not locked
  • The object set is deletable
  • No connections to usedByNodes exist.
  • No connections to dagSM and to DNSM, i.e., no members in the set.
  • No connection to groupNodes and to DNSM and no full dagObject members

It is not necessary to override this method.

Parameters:
[in] isSrcNode True if this node is the source node of the connection to the neighboring node.
Returns:
  • true Delete this node
  • false Do not delete this node


Member Data Documentation

Connections to this attribute specify the dagNodes or parts (components) of the same that are members of this set.

The index of a user defined color in which the dag object component members should appear. A value of -1 disables use of the color. Values outside the range [-1,7] may give unpredictable results.

Is set membership restricted to objects with vertices? This attribute should not be explicitly changed by the user.

Is set membership restricted to objects with edges? This attribute should not be explicitly changed by the user.

Is set membership restricted to objects with facets? This attribute should not be explicitly changed by the user.

Is set membership restricted to objects with edit points? This attribute should not be explicitly changed by the user.

Is set membership restricted to renderable objects only? This attribute should not be explicitly changed by the user.

When parts (components) of dagNodes are in the set, connections are made to this attribute to hold references to groupId nodes, with the id uniquely identifying the group in the dagNode.


Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6