#include <AnimationFrameSubsetWidget.h>
Public Member Functions | |
| AnimationFrameSubsetWidget (QWidget *pParent) | |
| virtual | ~AnimationFrameSubsetWidget () |
| void | setFrames (AnimationController *pController) |
| void | setFrames (Animation *pAnimation) |
| void | setFrames (const std::vector< AnimationFrame > &frames, FrameType type) |
| double | getStartFrame () const |
| void | setStartFrame (double start) |
| double | getStopFrame () const |
| void | setStopFrame (double stop) |
| FrameType | getFrameType () const |
The frame subset widget will allow users to set a subset between two frames in an animation. This widget will support both frame-based and time-based animations. The widget will be made up of two controls, each with its own slider and custom spin box. One control will represent the start frame while the other will handle the stop frame.
Definition at line 32 of file AnimationFrameSubsetWidget.h.
| AnimationFrameSubsetWidget::AnimationFrameSubsetWidget | ( | QWidget * | pParent | ) |
Creates a frame subset widget.
| pParent | The parent widget. |
| virtual AnimationFrameSubsetWidget::~AnimationFrameSubsetWidget | ( | ) | [virtual] |
Destroys the frame subset widget and all child frame subset items.
| void AnimationFrameSubsetWidget::setFrames | ( | AnimationController * | pController | ) |
This method will set up the sliders and the spin boxes using the data in the animation controller that is given.
| pController | The animation controller containing the animation frames. |
| void AnimationFrameSubsetWidget::setFrames | ( | Animation * | pAnimation | ) |
This method will set up the sliders and the spin boxes using the data in the animation that is given.
| pAnimation | The animation used with the widget. |
| void AnimationFrameSubsetWidget::setFrames | ( | const std::vector< AnimationFrame > & | frames, | |
| FrameType | type | |||
| ) |
This method will set up the sliders and the spin boxes using the vector of animation frames that is given.
| frames | The vector containing the animation frames. | |
| type | The animation type. |
| double AnimationFrameSubsetWidget::getStartFrame | ( | ) | const |
Returns the start frame control value.
| void AnimationFrameSubsetWidget::setStartFrame | ( | double | start | ) |
Sets the value for the start frame control.
| start | The start frame in an animation. |
| double AnimationFrameSubsetWidget::getStopFrame | ( | ) | const |
Returns the stop frame control value.
| void AnimationFrameSubsetWidget::setStopFrame | ( | double | stop | ) |
Sets the value for the stop frame control.
| stop | The stop frame in an animation. |
| FrameType AnimationFrameSubsetWidget::getFrameType | ( | ) | const |
Returns the type of animation.