Controller

class compas_view2.app.Controller(app)[source]

Bases: object

Action controller for the default config file.

Parameters:

app (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.

history

Display the undo history of the scene.

interactive

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

load_scene

Load a scene from a file.

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.