Package windSimSuite :: Package interface :: Module manager :: Class AnimationToolbar
[hide private]

Class AnimationToolbar

source code

The widget managing the simulation animation.

This object is responsible to always give the current_frame_id of the animation, it keeps as a result a simulation reference given by the manager. To express itselfs, the AnimationToolbar needs also the VTK window interactor, to refresh the view, and the status bar, to tell what is happening.

Instance Methods [hide private]
 
__init__(self, win_interactor, status_bar, widgets) source code
 
remove_spin_button_focus(self, *args)
Remove the focus from the spin button
source code
 
set_simulation(self, simu)
Set a Simulation instance
source code
 
_adjustement_reset(self)
Freeze the adjustement, when the simulation can not be explored along time
source code
 
_adjustement_setup(self)
Setup the adjustement when a new simulation is loaded or when the frame step is changed.
source code
 
_get_page_increment(self, frame_step)
Supposed to set the page increment for faster navigation, TODO
source code
 
_adjust_simulation(self, adjustement)
Get back the current frame id and update the simulation
source code
 
button_callback(self, widget, button_key)
A callback when one of the button toolbar is pressed
source code
 
play_animation(self)
Play the animation with a generator and by sending a request to the GTK server
source code
 
stop_animation(self)
Stop the animation and destroy the current process is any
source code
 
set_first_frame(self)
Set the first simulation frame
source code
 
set_last_frame(self)
Set the last simulation frame
source code
 
set_simulation_at_current_frame(self)
Set the simulation at the current_frame_id
source code
 
_get_frames_ids(self)
Return the list of frames to see
source code
 
animate_with_generators(self)
Animate the simulation as a generator object
source code