Controller

class Controller[source]

Bases: Base

The Controller class is the main entry of all the key and mouse events. It is used to manage actions and events in the viewer.

Parameters:
viewercompas_viewer.viewer.Viewer

The viewer object.

configcompas_viewer.configurations.controller_config.ControllerConfig

The controller configuration.

Attributes:
viewercompas_viewer.viewer.Viewer

The viewer object.

configcompas_viewer.configurations.controller_config.ControllerConfig

The controller configuration.

mousecompas_viewer.controller.mouse.Mouse

The mouse object.

Methods

key_press_action

The key press action of the renderer object.

key_release_action

The key release action of the renderer object.

mouse_move_action

The mouse move action of the renderer object.

mouse_press_action

The mouse press action of the renderer object.

mouse_release_action

The mouse release action of the renderer object.

pinch_action

The pinch action of the renderer object.

wheel_action

The wheel action of the renderer object.