#include <SM_ImportCmd.h>
Public Member Functions | |
SM_ImportCmd () | |
virtual | ~SM_ImportCmd () |
virtual MStatus | doIt (const MArgList &) |
virtual bool | isUndoable () const |
Static Public Member Functions | |
static void * | creator () |
Private Member Functions | |
void | buildInitialMesh (MechanicalObject< Vec3Types > *mechanic, MObject &parent) |
void | buildInitialTransform (MechanicalObject< RigidTypes > *mechRigid, MObject &trans) |
SM_ImportCmd::SM_ImportCmd | ( | ) | [inline] |
virtual SM_ImportCmd::~SM_ImportCmd | ( | ) | [inline, virtual] |
MStatus SM_ImportCmd::doIt | ( | const MArgList & | ) | [virtual] |
method called when the command is runned
virtual bool SM_ImportCmd::isUndoable | ( | ) | const [inline, virtual] |
the command is not undoable
static void* SM_ImportCmd::creator | ( | ) | [inline, static] |
void SM_ImportCmd::buildInitialMesh | ( | MechanicalObject< Vec3Types > * | mechanic, | |
MObject & | parent | |||
) | [private] |
the the input mesh from sofa scene imported
mechanic | : the mechanical object from which to build the mesh | |
parent | : the parent Maya transformation for the mesh |
void SM_ImportCmd::buildInitialTransform | ( | MechanicalObject< RigidTypes > * | mechRigid, | |
MObject & | trans | |||
) | [private] |
build the input transformation from a MechanicalObject Rigid
mechRigid | : the MechanicalObject Rigid from which to build the transformation | |
trans | : the resulting transformation |