Controller
-
class
compas_view2.app.Controller(app)[source] Bases:
objectAction 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 a mesh from the data in an file.
Add a network from the data in an OBJ file.
Add a point at specific XYZ coordinates.
Add a sphere at the origin.
Add a torus at the origin.
Clear all objects from the current scene.
Display the version of the shader language.
history()Display the undo history of the scene.
Load a scene from a file.
Display the OpenGL version.
redo()Redo the last scene modification.
Redraw the current scene.
Save the current scene to a file.
undo()Undo the last scene modification.
Capture a screenshot.
Swtich to a front view.
Switch the view to ghosted.
Switch the view to lighted.
Swtich to a perspective view.
Swtich to a right view.
Switch the view to shaded.
view_top()Swtich to a top view.
Switch the view to wireframe.