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 pluginsInitialized()
final initializations
void addedEmptyObject(int _id)
Update ui when the object is added.
void playAnimation()
Called by the ui and starts an automatic animation.
Interface to call functions across plugins.
The skeletal animation plugin is used to interact with the skeleton.
Logtype
Log types for Message Window.
void slotClearSkins()
Called by Qt as the user is trying to unbind a mesh from as a skeleton.
void objectDeleted(int _id)
Update ui when the object is deleted.
Interface for all plugins which want to Load or Save files and create Objects.
SkeletalAnimationPlugin()
Constructor.
void UpdateUI()
Called when the active object changes and the interface needs to be updated.
int animationOffset_
This frame was selected as the animation was started.
void nextFrame()
Called by the ui and goes to next 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.
void slotMethodChanged(int _index)
Called as the skin deformation method changed.
void checkObjectSelection(const int _objectId)
Check source/target selection of objects.
QString description()
returns a plugin description
Blending::Method method_
The current blending method for the skin.
void stopAnimation()
Called by the ui and stops the current animation.
Interface for all Plugins which do logging to the logging window of the framework.
void slotObjectSelectionChanged(int _id)
Update ui when the object selection changes.
void initializePlugin()
initialize the plugin
QTimer animationTimer_
Timer used to control animations.
int getNumberOfFrames()
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.
void updateSkins()
Returns the number of frames in the currently active animation.
void slotAllCleared()
clear all occurred
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
AnimationHandle currentAnimationHandle()
Returns a handle describing the current frame in the active animation.
void slotObjectUpdated(int _id, const UpdateType &_type)
Check activePose if a skeleton was updated.
void pauseAnimation()
Called by the ui and stops the current animation.
AnimationToolboxWidget * pToolbox_
A pointer to the toolbox widget.
Interface class from which all plugins have to be created.
bool attachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
void prevFrame()
Called by the ui and goes to previous frame of the current animation.
bool clearSkins(int skeletonId)
Returns the number of frames in the currently active animation.
void fileOpened(int _id)
Update ui when the object is loaded.
void slotAnimationIndexChanged(int)
Called by the framework when the animation index changed.
bool bGuiUpdating_
Used to drop a few messages while the gui is being updated.
void animate()
Iterates the animation.
bool detachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
void setFrame(int _iFrame)
Displays the given frame from the current animation and updates the view.
void exit()
Plugin gets closed.
void slotSkipFramesChanged(int _state)
Called as the skip frames check box changes state.
void changeFPS(int _fps)
Change the frames per second (FPS)
QTime animationTime_
Time since the animation was started, used to meet the given fps.
void setComboBoxPosition(unsigned int _animationIndex)
Sets the animations combo box to the right entry.
QString name()
returns the plugin name
void slotAttachSkin()
Called by Qt as the user is trying to connect a mesh to a skeleton.
void slotFrameChanged(int)
Called by the framework when a different frame was selected.
int getFrame()
Gets the current frame number.