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

Class Manager

source code

A class managing the wind turbine simulation instance with the VTK area and the GTK area (or interface).

For the MBDyn interfacing, the VTK area is defined by GtkVtkArea from the windSimSuite.interface.vtk_area module, displaying the turbine in 3D. The GTK area is defined by the TreeView, displaying the turbine with GTK cells on which the user can right click.

However the GTK area is doing more as figures can also be output from the Matplotlib interface. The Manager is also taking care of the notebook, displaying a new page when a new figure is drawn, thanks to the FigureManager from the windSimSuite.interface.matplotlib_manager. The Manager can also hide the VTK area, contained in the notebook if nothing is available for a 3D view.

Instance Methods [hide private]
 
__init__(self, widgets) source code
 
show_menu(self, area, event)
Show the action menu.
source code
 
track_actors(self, vtk_area, event)
Track the VTK actors.
source code
 
set_obj_boolean_for_vtk(self, gtk_check_item, key)
Update the properties of an object for the VTK area.
source code
 
plot_obj(self, gtk_item, key)
Update the properties of an object for the VTK area.
source code
 
load_simulation_with_generators(self, filename)
Load the simulation by a generator object.
source code
 
show_absolute_ref(self)
Show the absolute reference frame
source code
 
hide_absolute_ref(self)
Hide the absolute reference frame
source code
Method Details [hide private]

show_menu(self, area, event)

source code 
Show the action menu. Called when button-press-event, with event=3, is emitted by the GtkVTKSelector area or one of the treeviews. There is still a problem with True/False for the VTK area?

track_actors(self, vtk_area, event)

source code 
Track the VTK actors. Act on 'motion_notify_event' emitted by the GtkVTKSelector

set_obj_boolean_for_vtk(self, gtk_check_item, key)

source code 

Update the properties of an object for the VTK area.

The action can be called by right click on the GTK area (in the Treeview) or from the VTK area.

plot_obj(self, gtk_item, key)

source code 

Update the properties of an object for the VTK area.

The action can be called by right click on the GTK area (in the Treeview) or from the VTK area.

load_simulation_with_generators(self, filename)

source code 
Load the simulation by a generator object. This method does not work as expected, there is still lot of work for the loading process of every object.