View

class View[source]

Bases: PySide2.QtWidgets.QOpenGLWidget

Base OpenGL view widget.

Parameters
app: :class:`compas_view2.app.App`

The parent application of the view.

view_config: dict

The view configuration.

Methods

clear

Clear the view.

init

initializeGL

Initialize the OpenGL canvas.

keyPressEvent

Callback for the key press event.

keyReleaseEvent

Callback for the key release event.

mouseMoveEvent

Callback for the mouse move event.

mousePressEvent

Callback for the mouse press event.

mouseReleaseEvent

Callback for the release press event.

paint

paintGL

Paint the OpenGL canvas.

paint_instances

paint_plane

resize

resizeGL

Resize the OpenGL canvas.

wheelEvent

Callback for the mouse wheel event.