50 #include "SkeletalAnimationPlugin.hh"
52 void SkeletalAnimationPlugin::setDescriptions(){
54 emit
setSlotDescription(
"attachSkin(int,int)",tr(
"Attaches a mesh to a skeleton as skin. Each are identified by their objectIds"),
55 QString(tr(
"SkeletonObjectId,SkinObjectId")).split(
","),
56 QString(tr(
"id of the skeleton object, id of the skin object")).split(
","));
58 emit
setSlotDescription(
"detachSkin(int,int)",tr(
"Remove a specific skin from the skeleton"),
59 QString(tr(
"SkeletonObjectId,SkinObjectId")).split(
","),
60 QString(tr(
"id of the skeleton object, id of the skin object")).split(
","));
63 QStringList(tr(
"SkeletonObjectId")), QStringList(tr(
"ID of the skeleton object")));
69 emit log(
LOGERR,
"Could not retrieve skeleton");
75 emit log(
LOGERR,
"Could not retrieve skin");
87 emit log(
LOGERR,
"Could not retrieve skeleton");
93 emit log(
LOGERR,
"Could not retrieve skin");
105 emit log(
LOGERR,
"Could not retrieve skeleton");
116 for (
unsigned int i=0; i < activeSkeletons_.size(); i++){
122 if ( baseObject == 0 )
void updateSkins()
Returns the number of frames in the currently active animation.
bool attachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
bool getObject(int _identifier, BSplineCurveObject *&_object)
void UpdateSkins(BaseObjectData *_pSkeletonObject, AnimationHandle &_hAni)
Changes the mesh's pose to represent the frame given by the animation handle.
virtual void setSlotDescription(QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
Set a description for a public slot.
bool detachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
A handle used to refer to an animation or to a specific frame in an animation.
ACG::SceneGraph::SkeletonNodeT< Skeleton > * skeletonNode()
Returns the skeleton scenegraph node.
bool clearSkins(int skeletonId)
Returns the number of frames in the currently active animation.