Controller

class Controller[source]

Bases: object

Action controller for the default config file.

Parameters
app: :class:`compas_view2.app.App`

The parent application.

Methods

about

Display the about message.

add_geometry_object

add_mesh_from_file

Add a mesh from the data in an file.

add_network_from_obj

Add a network from the data in an OBJ file.

clear_scene

Clear all objects from the current scene.

disable_auto_update

Disable auto update of all the ryven nodes.

dummy

Dummy action for UI element stubs.

edit_selected_object

enable_auto_update

Enable auto update of all the ryven nodes.

glsl_version

Display the version of the shader language.

grid_show

history

Display the undo history of the scene.

interactive

Decorator for transforming functions into "data add" or "object edit" actions.

key_check

Giving the key name that is one of the supported keys, return if the key is pressed.

key_press_action

key_release_action

keys_pressed_check

Check if all the keys are pressed.

keys_released_check

Check if all the keys are released.

load_scene

Load a scene from a file.

mouse_check

Giving the button name that is one of the supported buttons, return if the button is pressed.

mouse_key_check

Giving the mouse key as a dictionary that is in the list of supported keys, return if it is happening (bool).

mouse_move_action

mouse_press_action

mouse_release_action

opengl_version

Display the OpenGL version.

redo

Redo the last scene modification.

redraw_scene

Redraw the current scene.

run_all

Execute all the ryven nodes in the order of data flow.

save_scene

Save the current scene to a file.

show_flow

Display the ryven flow window.

undo

Undo the last scene modification.

view_capture

Capture a screenshot.

view_front

Swtich to a front view.

view_ghosted

Switch the view to ghosted.

view_lighted

Switch the view to lighted.

view_perspective

Swtich to a perspective view.

view_right

Swtich to a right view.

view_shaded

Switch the view to shaded.

view_top

Swtich to a top view.

view_wireframe

Switch the view to wireframe.

wheel_action

zoom_selected