#include <SM_DefaultContactManager.h>
Public Member Functions | |
SM_DefaultContactManager () | |
~SM_DefaultContactManager () | |
bool | isBounded () const |
MStatus | compute (const MPlug &plug, MDataBlock &data) |
method called each time an attribute needs to be evaluated | |
MStatus | connectionMade (const MPlug &plug, const MPlug &otherPlug, bool asSrc) |
method called when the attribute "plug" is connected to "other plug" | |
MStatus | connectionBroken (const MPlug &plug, const MPlug &otherPlug, bool asSrc) |
method called when the attribute "plug" is no more connected to "other plug" | |
MStatus | setDependentsDirty (const MPlug &plugBeingDirtied, MPlugArray &affectedPlugs) |
creates the dependencies between attributes | |
void | draw (M3dView &view, const MDagPath &path, M3dView::DisplayStyle style, M3dView::DisplayStatus) |
to display the object on 3d opengl scene | |
MStatus | setSofaOutSending (MDataBlock &data) |
build the data storing the pointer to the sofaObject representing the node | |
MStatus | buildSofaObject (const MPlug &plug) |
MStatus | updateAttributes (MDataBlock &data) |
update the sofa object parameters from the maya node attributes | |
MStatus | getSofaImported (const MPlug &plug) |
MStatus | importAttributes (MDataBlock &data) |
set the maya attributes values from the object ones | |
Static Public Member Functions | |
static void * | creator () |
return a new instance of the node | |
static MStatus | initialize () |
build the attributes of the node | |
Static Public Attributes | |
static const MTypeId | typeId |
the id of the node | |
Protected Attributes | |
DefaultContactManager * | sofaObject |
Sofa Data. | |
bool | justConnected |
bool to know if a connection had just been made | |
bool | imported |
bool to know if the object was imported | |
Static Protected Attributes | |
static MObject | attSofaInComing |
the input Object | |
static MObject | attSofaOutSending |
data storing the sofa object to send it to other nodes | |
static MObject | attUpdated |
the sofaObject has been updated | |
static MObject | attSofaImport |
was the mech obj imported from .scn |
SM_DefaultContactManager::SM_DefaultContactManager | ( | ) |
SM_DefaultContactManager::~SM_DefaultContactManager | ( | ) | [inline] |
bool SM_DefaultContactManager::isBounded | ( | ) | const [inline] |
MPxLocatorNode inheritance look at maya documentation for more details on these methods
MStatus SM_DefaultContactManager::compute | ( | const MPlug & | plug, | |
MDataBlock & | data | |||
) |
method called each time an attribute needs to be evaluated
void * SM_DefaultContactManager::creator | ( | ) | [static] |
return a new instance of the node
MStatus SM_DefaultContactManager::initialize | ( | ) | [static] |
build the attributes of the node
MStatus SM_DefaultContactManager::connectionMade | ( | const MPlug & | plug, | |
const MPlug & | otherPlug, | |||
bool | asSrc | |||
) |
method called when the attribute "plug" is connected to "other plug"
MStatus SM_DefaultContactManager::connectionBroken | ( | const MPlug & | plug, | |
const MPlug & | otherPlug, | |||
bool | asSrc | |||
) |
method called when the attribute "plug" is no more connected to "other plug"
MStatus SM_DefaultContactManager::setDependentsDirty | ( | const MPlug & | plugBeingDirtied, | |
MPlugArray & | affectedPlugs | |||
) |
creates the dependencies between attributes
void SM_DefaultContactManager::draw | ( | M3dView & | view, | |
const MDagPath & | path, | |||
M3dView::DisplayStyle | style, | |||
M3dView::DisplayStatus | ||||
) |
to display the object on 3d opengl scene
MStatus SM_DefaultContactManager::setSofaOutSending | ( | MDataBlock & | data | ) |
build the data storing the pointer to the sofaObject representing the node
MStatus SM_DefaultContactManager::buildSofaObject | ( | const MPlug & | plug | ) |
build the sofaObject representing the node
plug | : the input mesh connected |
MStatus SM_DefaultContactManager::updateAttributes | ( | MDataBlock & | data | ) |
update the sofa object parameters from the maya node attributes
MStatus SM_DefaultContactManager::getSofaImported | ( | const MPlug & | plug | ) |
build the sofa object from a sofa scene file
plug | : the sofaObject imported (getting from importer node) |
MStatus SM_DefaultContactManager::importAttributes | ( | MDataBlock & | data | ) |
set the maya attributes values from the object ones
const MTypeId SM_DefaultContactManager::typeId [static] |
the id of the node
MObject SM_DefaultContactManager::attSofaInComing [static, protected] |
the input Object
maya attributes
MObject SM_DefaultContactManager::attSofaOutSending [static, protected] |
data storing the sofa object to send it to other nodes
MObject SM_DefaultContactManager::attUpdated [static, protected] |
the sofaObject has been updated
MObject SM_DefaultContactManager::attSofaImport [static, protected] |
was the mech obj imported from .scn
DefaultContactManager* SM_DefaultContactManager::sofaObject [protected] |
Sofa Data.
bool SM_DefaultContactManager::justConnected [protected] |
bool to know if a connection had just been made
bool SM_DefaultContactManager::imported [protected] |
bool to know if the object was imported