VectorArtist
- class compas_plotters.artists.VectorArtist(item, **kwargs)[source]
Bases:
PlotterArtist
,PrimitiveArtist
Artist for COMPAS vectors.
- Parameters
vector (
Vector
) – A COMPAS vector.point (
Point
, optional) – A COMPAS point as base point for the vector. Default is the origin of the world coordinate system.draw_point (bool, optional) – If True, draw the point of application of the vector.
color (tuple[float, float, float], optional) – Color of the vector.
zorder (int, optional) – Stacking order of the vector on the canvas.
**kwargs (dict, optional) – Additional keyword arguments. See
PlotterArtist
andPrimitiveArtist
for more info.
- Attributes
vector (
Vector
) – The vector associated with the artist.
Methods
Draw the vector.
Update the vector using the current geometry and visualization settings.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
Drawing method for drawing an entire collection of objects.
Register an artist type to a data type.
Update the data limits of the plotting axes using the visualization data.
Compute the bounds of the current view.