Artist
- class compas.artists.Artist(item, **kwargs)[source]
Bases:
object
Base class for all artists.
- Class Attributes
AVAILABLE_CONTEXTS (list[str]) – The available visualization contexts.
CONTEXT (str | None) – The current visualization context is one of
AVAILABLE_CONTEXTS
.ITEM_ARTIST (dict[str, dict[Type[
Data
], Type[Artist
]]]) – Dictionary mapping data types to the corresponding artists types per visualization context.
Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
The main drawing method.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.