#include <SM_GNode.h>
Public Member Functions | |
SM_GNode () | |
~SM_GNode () | |
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 | |
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 | |
GNode * | getSofaObject () |
accessor to the Sofa GNode | |
void | setSofaObject (GNode *node) |
affector to the Sofa GNode | |
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 | |
GNode * | sofaObject |
Sofa Data. | |
bool | incomingConnection |
bool | justConnected |
bool to know if a connection had just been made | |
bool | imported |
bool to know if the object was imported | |
MTime | initialTime |
the maya initial time | |
Static Protected Attributes | |
static MObject | attSofaInComing |
the input Objects (array) | |
static MObject | attInTime |
the maya time | |
static MObject | attSimulationDone |
boolean to say that sofa simulation is updated | |
static MObject | attNeedUpdate |
does the scene need to be updated | |
static MObject | attInComingUpdated |
has an input object been updated | |
static MObject | attSofaImport |
was the mech obj imported from .scn | |
static MObject | attGravity |
static MObject | attDt |
static MObject | attShowForceFields |
static MObject | attShowCollisionModels |
static MObject | attShowMappings |
static MObject | attShowVisualModels |
static MObject | attShowInteractions |
static MObject | attShowConstraints |
static MObject | attHideEntryMeshes |
static MObject | attSofaOutSending |
the data to transmit the sofa object to another node |
SM_GNode::SM_GNode | ( | ) |
SM_GNode::~SM_GNode | ( | ) |
bool SM_GNode::isBounded | ( | ) | const [inline] |
MPxNode inheritance look at maya documentation for more details on these methods
MStatus SM_GNode::compute | ( | const MPlug & | plug, | |
MDataBlock & | data | |||
) |
method called each time an attribute needs to be evaluated
void * SM_GNode::creator | ( | ) | [static] |
return a new instance of the node
MStatus SM_GNode::initialize | ( | ) | [static] |
build the attributes of the node
MStatus SM_GNode::connectionMade | ( | const MPlug & | plug, | |
const MPlug & | otherPlug, | |||
bool | asSrc | |||
) |
method called when the attribute "plug" is connected to "other plug"
MStatus SM_GNode::connectionBroken | ( | const MPlug & | plug, | |
const MPlug & | otherPlug, | |||
bool | asSrc | |||
) |
method called when the attribute "plug" is no more connected to "other plug"
MStatus SM_GNode::setDependentsDirty | ( | const MPlug & | plugBeingDirtied, | |
MPlugArray & | affectedPlugs | |||
) |
creates the dependencies between attributes
MStatus SM_GNode::setSofaOutSending | ( | MDataBlock & | data | ) |
build the data storing the pointer to the sofaObject representing the node
MStatus SM_GNode::buildSofaObject | ( | const MPlug & | plug | ) |
build the sofaObject representing the node
plug | : the input mesh connected |
MStatus SM_GNode::updateAttributes | ( | MDataBlock & | data | ) |
update the sofa object parameters from the maya node attributes
GNode* SM_GNode::getSofaObject | ( | ) | [inline] |
accessor to the Sofa GNode
void SM_GNode::setSofaObject | ( | GNode * | node | ) | [inline] |
affector to the Sofa GNode
MStatus SM_GNode::getSofaImported | ( | const MPlug & | plug | ) |
build the sofa object from a sofa scene file
plug | : the sofaObject imported (getting from importer node) |
MStatus SM_GNode::importAttributes | ( | MDataBlock & | data | ) |
set the maya attributes values from the object ones
const MTypeId SM_GNode::typeId [static] |
the id of the node
MObject SM_GNode::attSofaInComing [static, protected] |
the input Objects (array)
maya attributes
MObject SM_GNode::attInTime [static, protected] |
the maya time
MObject SM_GNode::attSimulationDone [static, protected] |
boolean to say that sofa simulation is updated
MObject SM_GNode::attNeedUpdate [static, protected] |
does the scene need to be updated
MObject SM_GNode::attInComingUpdated [static, protected] |
has an input object been updated
MObject SM_GNode::attSofaImport [static, protected] |
was the mech obj imported from .scn
MObject SM_GNode::attGravity [static, protected] |
to edit the sofa datafields in maya
MObject SM_GNode::attDt [static, protected] |
MObject SM_GNode::attShowForceFields [static, protected] |
to control the sofa dipslay
MObject SM_GNode::attShowCollisionModels [static, protected] |
MObject SM_GNode::attShowMappings [static, protected] |
MObject SM_GNode::attShowVisualModels [static, protected] |
MObject SM_GNode::attShowInteractions [static, protected] |
MObject SM_GNode::attShowConstraints [static, protected] |
MObject SM_GNode::attHideEntryMeshes [static, protected] |
are the input meshes hidden
MObject SM_GNode::attSofaOutSending [static, protected] |
the data to transmit the sofa object to another node
GNode* SM_GNode::sofaObject [protected] |
Sofa Data.
bool SM_GNode::incomingConnection [protected] |
bool SM_GNode::justConnected [protected] |
bool to know if a connection had just been made
bool SM_GNode::imported [protected] |
bool to know if the object was imported
MTime SM_GNode::initialTime [protected] |
the maya initial time