LineArtist
- class compas_plotters.artists.LineArtist(item, **kwargs)[source]
Bases:
PlotterArtist
,PrimitiveArtist
Artist for COMPAS lines.
- Parameters
line (
Line
) – A COMPAS line.draw_points (bool, optional) – If True, draw the start and end point of the line.
draw_as_segment (bool, optional) – If True, draw only the segment between start and end, instead of the infinite line.
linewidth (float, optional) – Width of the line.
linestyle ({‘solid’, ‘dotted’, ‘dashed’, ‘dashdot’}, optional) – Style of the line.
color (tuple[float, float, float], optional) – Color of the line.
zorder (int, optional) – Stacking order of the line on the canvas.
**kwargs (dict, optional) – Additional keyword arguments. See
PlotterArtist
andPrimitiveArtist
for more info.
- Attributes
line (
Line
) – The line associated with the artist.
Methods
Compute the clipping points of the line for the current view box.
Draw the line associated with the artist.
Update the line 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.