50 #include "ObjectTypes/Skeleton/BlendingMethod.hh" 70 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-SkeletalAnimation")
78 void log(
Logtype _type, QString _message);
79 void log(QString _message);
80 void addEmptyObject(
DataType _type,
int& _id);
81 void updatedObject(
int _id,
const UpdateType& _type);
83 void pluginExists(QString _pluginName,
bool &_exists);
84 void functionExists(QString _pluginName, QString _functionName,
bool &_exists);
87 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
127 void slotAnimationNameChanged();
130 void setDescriptions();
143 void slotAddAnimation();
144 void slotDeleteAnimation();
181 std::vector< int > activeSkeletons_;
void slotFrameChanged(int)
Called by the framework when a different frame was selected.
void slotMethodChanged(int _index)
Called as the skin deformation method changed.
void changeFPS(int _fps)
Change the frames per second (FPS)
void addedEmptyObject(int _id)
Update ui when the object is added.
void setComboBoxPosition(unsigned int _animationIndex)
Sets the animations combo box to the right entry.
void objectDeleted(int _id)
Update ui when the object is deleted.
AnimationToolboxWidget * pToolbox_
A pointer to the toolbox widget.
void pauseAnimation()
Called by the ui and stops the current animation.
void slotSkipFramesChanged(int _state)
Called as the skip frames check box changes state.
Logtype
Log types for Message Window.
int getNumberOfFrames()
Returns the number of frames in the currently active animation.
int animationOffset_
This frame was selected as the animation was started.
QString description()
returns a plugin description
Interface for all Plugins which do logging to the logging window of the framework.
void exit()
Plugin gets closed.
void slotObjectUpdated(int _id, const UpdateType &_type)
Check activePose if a skeleton was updated.
void UpdateUI()
Called when the active object changes and the interface needs to be updated.
void animate()
Iterates the animation.
AnimationHandle currentAnimationHandle()
Returns a handle describing the current frame in the active animation.
void playAnimation()
Called by the ui and starts an automatic animation.
void slotObjectSelectionChanged(int _id)
Update ui when the object selection changes.
void fileOpened(int _id)
Update ui when the object is loaded.
SkeletalAnimationPlugin()
Constructor.
void checkObjectSelection(const int _objectId)
Check source/target selection of objects.
Interface to call functions across plugins.
void initializePlugin()
initialize the plugin
Blending::Method method_
The current blending method for the skin.
bool clearSkins(int skeletonId)
Returns the number of frames in the currently active animation.
bool bGuiUpdating_
Used to drop a few messages while the gui is being updated.
QString name()
returns the plugin name
void setFrame(int _iFrame)
Displays the given frame from the current animation and updates the view.
void slotAttachSkin()
Called by Qt as the user is trying to connect a mesh to a skeleton.
void pluginsInitialized()
final initializations
QElapsedTimer animationTime_
Time since the animation was started, used to meet the given fps.
void prevFrame()
Called by the ui and goes to previous frame of the current 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.
void stopAnimation()
Called by the ui and stops the current animation.
void slotAnimationIndexChanged(int)
Called by the framework when the animation index changed.
bool attachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
int getFrame()
Gets the current frame number.
void slotClearSkins()
Called by Qt as the user is trying to unbind a mesh from as a skeleton.
void nextFrame()
Called by the ui and goes to next frame of the current animation.
The skeletal animation plugin is used to interact with the skeleton.
void slotAllCleared()
clear all occurred
Interface class from which all plugins have to be created.
A handle used to refer to an animation or to a specific frame in an animation.
void updateSkins()
Returns the number of frames in the currently active animation.
QTimer animationTimer_
Timer used to control animations.
Interface for all plugins which want to Load or Save files and create Objects.