AnimationToolbar (hwx.gui)¶
An AnimationToolbar Widget.
AnimationToolbar is a widget used to display the controls for the animation.
- Inherits:
Properties¶
Public Methods¶
addChildren (self) addWidget (self, widget) onAnimRangeEnabled (self, enabled) onAnimationRangeChange (self, start_frame, end_frame) onFrameChange (self, frame, spontaneous) onPause (self) onResume (self) onStart (self) onStop (self) resetRange (self)
Property Details¶
-
animatingState
()¶
The state of the animation.
Starts/Stops the animation.
-
frame
()
The current frame.
-
timeSteps
()¶
The values for the animation time.
Method Details¶
-
addChildren
(self)¶
Adds extra widgets.
You need to call the addWidget method.
-
addWidget
(self, widget)¶
Adds a widget to the AnimationToolbar.
param widget: | The widget to be added to the layout. |
---|---|
type widget: | Widget |
returns: | The added widget. |
rtype: | Widget |
-
onAnimRangeEnabled
(self, enabled)¶
Callback method when the animation range is enabled or disabled.
param enabled: | Animation range is enabled/disabled. |
---|---|
type enabled: | bool |
-
onAnimationRangeChange
(self, start_frame, end_frame)¶
Callback method when animation range has been changed.
param start_frame: | |
---|---|
Starting frame number of the range. | |
type start_frame: | |
int | |
param end_frame: | |
Ending frame number of the range. | |
type end_frame: | int |
-
onFrameChange
(self, frame, spontaneous)¶
Callback method when animation frame changes.
param frame: | Frame number changed. |
---|---|
type frame: | int |
param spontaneous: | |
Specifies if the frame change is spontaneous. | |
type spontaneous: | |
bool |
-
onPause
(self)¶
Callback method when the animation pauses.
-
onResume
(self)¶
Callback method when the animation resumes.
-
onStart
(self)¶
Callback method when the animation starts.
-
onStop
(self)¶
Callback method when the animation stops.
-
resetRange
(self)¶
Resets the animation range.