DAVE.gui.main¶
Module Contents¶
- class DAVE.gui.main.SolverDialog(parent=None)¶
Bases:
PySide2.QtWidgets.QDialog,DAVE.gui.forms.dlg_solver.Ui_Dialog
- class DAVE.gui.main.Gui(scene=None, splash=None, app=None, geometry_scale=-1, cog_scale=-1)¶
- _animation_start_time¶
Time at start of the simulation in seconds (system-time)
- _animation_length = 0¶
The length of the animation in seconds
- _animation_loop = False¶
Animation is a loop
- _animation_final_dofs¶
DOFS at termination of the animation
- _animation_keyframe_interpolation_object¶
Object that can be called with a time and yields the dofs at that time. t should be [0…_animation_length]
- _animation_paused = False¶
Animation paused
- _animation_available = False¶
Animation available
- selected_nodes = []¶
A list of selected nodes (if any)
- scene¶
Reference to a scene
- visual¶
Reference to a viewport
- guiWidgets¶
Dictionary of all created guiWidgets (dock-widgets)
- copy_screenshot_code(self)¶
- escPressed(self)¶
- savepoint_restore(self)¶
- activate_workspace(self, name)¶
- import_browser(self)¶
- animation_running(self)¶
Returns true is an animation is running
- timerEvent(self, a, b)¶
- animation_speed_change(self)¶
- animation_activate_time(self, t)¶
- animation_terminate(self, keep_current_dofs=False)¶
- animation_start(self, t, dofs, is_loop, final_dofs=None, do_not_reset_time=False, show_animation_bar=True)¶
Start an new animation
- Parameters:
t – List of times at keyframes
dofs – List of dofs at keyframes
is_loop – Should animation be played in a loop (bool)
final_dofs – [optional] DOFS to be set when animation is finished or terminated. Defaults to last keyframe
do_not_reset_time – do not reset the time when starting the animation, this means the loop continues where it was.
- animation_pause(self)¶
Pauses a running animation
- animation_continue(self)¶
- animation_pause_or_continue_click(self)¶
Pauses or continues the animation
- animation_change_time(self)¶
- onClose(self)¶
- show_exception(self, e)¶
- run_code(self, code, event)¶
Runs the provided code
If succesful, add code to history If not, set code as current code
- stop_solving(self)¶
- solve_statics(self)¶
- animate_change(self, old_dof, new_dof, n_steps)¶
Animates from old_dof to new_dofs in n_steps
- to_blender(self)¶
- toggle_show_global(self)¶
- toggle_show_visuals(self)¶
- camera_set_direction(self, vector)¶
- camera_reset(self)¶
- undo_solve_statics(self)¶
- clear(self)¶
- open(self)¶
- tidy_history(self)¶
- give_clean_history(self)¶
- feedback_copy(self)¶
- history_copy(self)¶
- clear_code(self)¶
- generate_scene_code(self)¶
- run_code_in_teCode(self)¶
- rightClickViewport(self, point)¶
- openContextMenyAt(self, node_name, globLoc)¶
- new_axis(self)¶
- new_body(self)¶
- new_poi(self)¶
- new_cable(self)¶
- new_force(self)¶
- new_sheave(self)¶
- new_linear_connector(self)¶
- new_connector2d(self)¶
- new_beam(self)¶
- new_linear_hydrostatics(self)¶
- new_visual(self)¶
- new_buoyancy_mesh(self)¶
- new_contactmesh(self)¶
- new_contactball(self)¶
- new_waveinteraction(self)¶
- new_something(self, what)¶
- view3d_select_element(self, vtkactor)¶
- visual_update_selection(self)¶
- guiEmitEvent(self, event, sender=None)¶
- guiSelectNode(self, node_name)¶
- show_guiWidget(self, name, widgetClass)¶
- refresh_3dview(self)¶