52 #include <OpenFlipper/BasePlugin/TextureInterface.hh>
57 #include <ACG/QtWidgets/QtExaminerViewer.hh>
61 #include "AnimationToolbox.hh"
63 #include "ObjectTypes/Skeleton/PoseT.hh"
64 #include "ObjectTypes/Skeleton/BaseSkin.hh"
81 #if QT_VERSION >= 0x050000
82 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-SkeletalAnimation")
93 void log(
Logtype _type, QString _message);
94 void log(QString _message);
95 void addEmptyObject(
DataType _type,
int& _id);
96 void updatedObject(
int _id,
const UpdateType& _type);
98 void pluginExists(QString _pluginName,
bool &_exists);
99 void functionExists(QString _pluginName, QString _functionName,
bool &_exists);
102 void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
142 void slotAnimationNameChanged();
145 void setDescriptions();
158 void slotAddAnimation();
159 void slotDeleteAnimation();
196 std::vector< int > activeSkeletons_;
Method
Possible deformation methods.
void stopAnimation()
Called by the ui and stops the current animation.
Interface class from which all plugins have to be created.
BaseSkin::Method method_
The current blending method for the skin.
void pauseAnimation()
Called by the ui and stops the current animation.
void updateSkins()
Returns the number of frames in the currently active animation.
QString description()
returns a plugin description
void initializePlugin()
initialize the plugin
QString name()
returns the plugin name
Logtype
Log types for Message Window.
void objectDeleted(int _id)
Update ui when the object is deleted.
void pluginsInitialized()
final initializations
void slotFrameChanged(int)
Called by the framework when a different frame was selected.
void slotMethodChanged(int _index)
Called as the skin deformation method changed.
bool attachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
void slotObjectUpdated(int _id, const UpdateType &_type)
Check activePose if a skeleton was updated.
void exit()
Plugin gets closed.
void UpdateSkins(BaseObjectData *_pSkeletonObject, AnimationHandle &_hAni)
Changes the mesh's pose to represent the frame given by the animation handle.
void fileOpened(int _id)
Update ui when the object is loaded.
A general pose, used to store the frames of the 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 nextFrame()
Called by the ui and goes to next frame of the current animation.
void checkObjectSelection(const int _objectId)
Check source/target selection of objects.
Interface to call functions across plugins.
int animationOffset_
This frame was selected as the animation was started.
void slotAllCleared()
clear all occurred
void addedEmptyObject(int _id)
Update ui when the object is added.
PoseT< Skeleton::Point > Pose
Pose typedef.
void prevFrame()
Called by the ui and goes to previous frame of the current animation.
void slotSkipFramesChanged(int _state)
Called as the skip frames check box changes state.
void setComboBoxPosition(unsigned int _animationIndex)
Sets the animations combo box to the right entry.
QTime animationTime_
Time since the animation was started, used to meet the given fps.
Interface for all plugins which want to Load or Save files and create Objects.
int getFrame()
Gets the current frame number.
The skeletal animation plugin is used to interact with the skeleton.
SkeletalAnimationPlugin()
Constructor.
bool detachSkin(int skeletonId, int skinId)
Returns the number of frames in the currently active animation.
void slotAnimationIndexChanged(int)
Called by the framework when the animation index changed.
void setFrame(int _iFrame)
Displays the given frame from the current animation and updates the view.
A handle used to refer to an animation or to a specific frame in an animation.
AnimationHandle currentAnimationHandle()
Returns a handle describing the current frame in the active animation.
void changeFPS(int _fps)
Change the frames per second (FPS)
void UpdateUI()
Called when the active object changes and the interface needs to be updated.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
bool bGuiUpdating_
Used to drop a few messages while the gui is being updated.
void slotAttachSkin()
Called by Qt as the user is trying to connect a mesh to a skeleton.
void slotClearSkins()
Called by Qt as the user is trying to unbind a mesh from as a skeleton.
bool clearSkins(int skeletonId)
Returns the number of frames in the currently active animation.
int getNumberOfFrames()
Returns the number of frames in the currently active animation.
void animate()
Iterates the animation.
QTimer animationTimer_
Timer used to control animations.
void playAnimation()
Called by the ui and starts an automatic animation.
AnimationToolboxWidget * pToolbox_
A pointer to the toolbox widget.