#include <MPolyMessage.h>
This class is used to register callbacks for poly component id modification messages.
There is 1 add callback method which will add callbacks for the following messages:
Public Types | |
enum | { kVertexIndex = 0, kEdgeIndex = 1, kFaceIndex = 2, kLastErrorIndex = 3 } |
Static Public Member Functions | |
static MCallbackId | addPolyComponentIdChangedCallback (MObject &node, bool wantIdModifications[], unsigned int count, MMessage::MComponentFunction func, void *clientData=NULL, MStatus *ReturnStatus=NULL) |
static MCallbackId | addPolyTopologyChangedCallback (MObject &node, MMessage::MNodeFunction func, void *clientData=NULL, MStatus *ReturnStatus=NULL) |
static unsigned int | deletedId (void) |
anonymous enum |
MCallbackId MPolyMessage::addPolyComponentIdChangedCallback | ( | MObject & | node, | |
bool | wantIdModifications[], | |||
unsigned int | count, | |||
MMessage::MComponentFunction | func, | |||
void * | clientData = NULL , |
|||
MStatus * | ReturnStatus = NULL | |||
) | [static] |
This method registers a callback that should be called whenever a poly component id is modified.
Currently, there are some cases where the component ids for a polygonal mesh can be modified without generating a callback or without generating a correct mapping. These cases are outlined below.
[in] | node | the node callback function should listen to |
[in] | wantIdModifications | array of booleans specifying what arrays should be provided to the callback function when it is invoked. The entries in this array are kVertexIndex, kEdgeIndex, kFaceIndex for receiving vertex, edge, and face data in the callback respectively. |
[in] | count | the size of the array wantIdModifications |
[in] | func | the callback function |
[in] | clientData | User defined data passed to the callback function |
[out] | ReturnStatus | status code |
MCallbackId MPolyMessage::addPolyTopologyChangedCallback | ( | MObject & | node, | |
MMessage::MNodeFunction | func, | |||
void * | clientData = NULL , |
|||
MStatus * | ReturnStatus = NULL | |||
) | [static] |
This method registers a callback that will be called whenever the topology of a meshShape changes.
[in] | node | the node the callback function should listen to |
[in] | func | the callback function |
[in] | clientData | User defined data passed to the callback function |
[out] | ReturnStatus | status code |
unsigned int MPolyMessage::deletedId | ( | void | ) | [static] |
This method returns a constant which is to be used to determine if a component id has been deleted. Compare component ids returned by the callback with the value return by this method. If they are the same then, the component id has been deleted.
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |