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_box()

Add a box at the origin.

add_line_from_selected_points()

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.

add_point()

Add a point at specific XYZ coordinates.

add_point_on_grid()

add_sphere()

Add a sphere at the origin.

add_torus()

Add a torus at the origin.

clear_scene()

Clear all objects from the current scene.

edit_selected_object()

glsl_version()

Display the version of the shader language.

history()

Display the undo history of the scene.

interactive()

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.

save_scene()

Save the current scene to a file.

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.