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