Controller
- class Controller[source]
Bases:
object
Action controller for the default config file.
- Parameters
- app: :class:`compas_view2.app.App`
The parent application.
Methods
Display the about message.
Add a mesh from the data in an file.
Add a network from the data in an OBJ file.
Clear all objects from the current scene.
Disable auto update of all the ryven nodes.
Dummy action for UI element stubs.
Enable auto update of all the ryven nodes.
Display the version of the shader language.
Display the undo history of the scene.
Decorator for transforming functions into "data add" or "object edit" actions.
Giving the key name that is one of the supported keys, return if the key is pressed.
Check if all the keys are pressed.
Check if all the keys are released.
Load a scene from a file.
Giving the button name that is one of the supported buttons, return if the button is pressed.
Giving the mouse key as a dictionary that is in the list of supported keys, return if it is happening (bool).
Display the OpenGL version.
Redo the last scene modification.
Redraw the current scene.
Execute all the ryven nodes in the order of data flow.
Save the current scene to a file.
Display the ryven flow window.
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.
Swtich to a top view.
Switch the view to wireframe.