compas.scene
This package defines sceneobjects for visualising COMPAS items (geometry & datastructures). Every item type is paired with a corresponding scene object type that is capable of visualizing the data of the object. The scene objects are implemented as pluggables, and automatically switch between plugins depending on the contexct in which they are used.
Classes
Base class for scene objects for geometry objects. |
|
Base class for all mesh scene objects. |
|
Scene object for drawing graph data structures. |
|
A scene is a container for hierarchical scene objects which are to be visualised in a given context. |
|
Base class for all scene objects. |
|
Exception that is raised when no scene object is registered for a given data type. |
|
Scene object for drawing volmesh data structures. |
Functions
Register a scene object type to a data type. |
Pluggables
Pluggables are functions that don’t have an actual implementation, but receive an implementation from a plugin.
Pluggable to clear the current context of the scene or a list of objects through guids. |
|
Pluggable to perform operations before drawing the scene. |
|
Pluggable to perform operations after drawing the scene. This function is automatically called at the end of compas.scene.Scene.draw(). Parameters ---------- drawn_objects : list A list of objects that were drawn. |
|
Registers scene objects available in the current context. |