43#include "SkeletalAnimationPlugin.hh"
51 emit
setSlotDescription(
"attachSkin(int,int)",tr(
"Attaches a mesh to a skeleton as skin. Each are identified by their objectIds"),
52 QString(tr(
"SkeletonObjectId,SkinObjectId")).split(
","),
53 QString(tr(
"id of the skeleton object, id of the skin object")).split(
","));
55 emit
setSlotDescription(
"detachSkin(int,int)",tr(
"Remove a specific skin from the skeleton"),
56 QString(tr(
"SkeletonObjectId,SkinObjectId")).split(
","),
57 QString(tr(
"id of the skeleton object, id of the skin object")).split(
","));
60 QStringList(tr(
"SkeletonObjectId")), QStringList(tr(
"ID of the skeleton object")));
66 emit log(
LOGERR,
"Could not retrieve skeleton");
72 emit log(
LOGERR,
"Could not retrieve skin");
84 emit log(
LOGERR,
"Could not retrieve skeleton");
91 emit log(
LOGERR,
"Could not retrieve skin");
103 emit log(
LOGERR,
"Could not retrieve skeleton");
120 if ( baseObject == 0 )
A handle used to refer to an animation or to a specific frame in an animation.
virtual void setSlotDescription(QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
Set a description for a public slot.
std::vector< int > activeSkeletons_
A pointer to the toolbox widget.
bool clearSkins(int skeletonId)
Returns the number of frames in the currently active animation.
void setDescriptions()
Returns the number of frames in the currently active animation.
void UpdateSkins(BaseObjectData *_pSkeletonObject, AnimationHandle &_hAni)
Changes the mesh's pose to represent the frame given by the animation handle.
bool detachSkin(int skeletonId, int skinId)
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.
void updateSkins()
Returns the number of frames in the currently active animation.
ACG::SceneGraph::SkeletonNodeT< Skeleton > * skeletonNode()
Returns the skeleton scenegraph node.
bool getObject(const int _identifier, BaseObject *&_object)
Get the object which has the given identifier.