SM_BarycentricMapping Class Reference

#include <SM_BarycentricMapping.h>

List of all members.

Public Member Functions

 SM_BarycentricMapping ()
 ~SM_BarycentricMapping ()
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

BarycentricMapping< MechanicalMapping<
MechanicalState< Vec3dTypes >,
MechanicalState< Vec3dTypes > > > * 
sofaObject
 the sofa object
MechanicalObject< Vec3dTypes > * mech1
MechanicalObject< Vec3dTypes > * mech2
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 attSofaInComing1
 first input MechanicalObject ("from" mapping)
static MObject attSofaInComing2
 second input MechanicalObject ("to" mapping)
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


Constructor & Destructor Documentation

SM_BarycentricMapping::SM_BarycentricMapping (  ) 

SM_BarycentricMapping::~SM_BarycentricMapping (  ) 


Member Function Documentation

bool SM_BarycentricMapping::isBounded (  )  const [inline]

MPxLocatorNode inheritance look at maya documentation for more details on these methods

MStatus SM_BarycentricMapping::compute ( const MPlug &  plug,
MDataBlock &  data 
)

method called each time an attribute needs to be evaluated

void * SM_BarycentricMapping::creator (  )  [static]

return a new instance of the node

MStatus SM_BarycentricMapping::initialize (  )  [static]

build the attributes of the node

MStatus SM_BarycentricMapping::connectionMade ( const MPlug &  plug,
const MPlug &  otherPlug,
bool  asSrc 
)

method called when the attribute "plug" is connected to "other plug"

MStatus SM_BarycentricMapping::connectionBroken ( const MPlug &  plug,
const MPlug &  otherPlug,
bool  asSrc 
)

method called when the attribute "plug" is no more connected to "other plug"

MStatus SM_BarycentricMapping::setDependentsDirty ( const MPlug &  plugBeingDirtied,
MPlugArray &  affectedPlugs 
)

creates the dependencies between attributes

void SM_BarycentricMapping::draw ( M3dView &  view,
const MDagPath &  path,
M3dView::DisplayStyle  style,
M3dView::DisplayStatus   
) [inline]

to display the object on 3d opengl scene

MStatus SM_BarycentricMapping::setSofaOutSending ( MDataBlock &  data  ) 

build the data storing the pointer to the sofaObject representing the node

MStatus SM_BarycentricMapping::buildSofaObject ( const MPlug &  plug  ) 

build the sofaObject representing the node

Parameters:
plug : the input mesh connected

MStatus SM_BarycentricMapping::updateAttributes ( MDataBlock &  data  ) 

update the sofa object parameters from the maya node attributes

MStatus SM_BarycentricMapping::getSofaImported ( const MPlug &  plug  ) 

build the sofa object from a sofa scene file

Parameters:
plug : the sofaObject imported (getting from importer node)

MStatus SM_BarycentricMapping::importAttributes ( MDataBlock &  data  ) 

set the maya attributes values from the object ones


Member Data Documentation

const MTypeId SM_BarycentricMapping::typeId [static]

the id of the node

MObject SM_BarycentricMapping::attSofaInComing1 [static, protected]

first input MechanicalObject ("from" mapping)

maya attributes

MObject SM_BarycentricMapping::attSofaInComing2 [static, protected]

second input MechanicalObject ("to" mapping)

MObject SM_BarycentricMapping::attSofaOutSending [static, protected]

data storing the sofa object to send it to other nodes

MObject SM_BarycentricMapping::attUpdated [static, protected]

the sofaObject has been updated

MObject SM_BarycentricMapping::attSofaImport [static, protected]

was the mech obj imported from .scn

BarycentricMapping< MechanicalMapping<MechanicalState<Vec3dTypes>, MechanicalState<Vec3dTypes> > >* SM_BarycentricMapping::sofaObject [protected]

the sofa object

Sofa Data

MechanicalObject<Vec3dTypes>* SM_BarycentricMapping::mech1 [protected]

MechanicalObject<Vec3dTypes>* SM_BarycentricMapping::mech2 [protected]

bool SM_BarycentricMapping::justConnected [protected]

bool to know if a connection had just been made

bool SM_BarycentricMapping::imported [protected]

bool to know if the object was imported


The documentation for this class was generated from the following files:
Generated on Thu Apr 12 17:46:22 2007 for SofaMaya by  doxygen 1.5.1-p1