CircleArtist

class compas_plotters.artists.CircleArtist(*args, **kwargs)[source]

Bases: PlotterArtist, PrimitiveArtist

Artist for COMPAS circles.

Parameters
  • circle (compas.geometry.Circle) – A COMPAS circle.

  • linewidth (float, optional) – Width of the circle boundary.

  • linestyle ({‘solid’, ‘dotted’, ‘dashed’, ‘dashdot’}, optional) – Style of the circle boundary.

  • facecolor (tuple[float ,float, float], optional) – Color of the interior of the circle.

  • edgecolor (tuple[float, float, float], optional) – Color of the boundary of the circle.

  • fill (bool, optional) – If True, draw the interior of the circle.

  • alpha (float, optional) – Transparency of the circle.

  • zorder (int, optional) – Stacking order of the circle on the canvas.

  • **kwargs (dict, optional) – Additional keyword arguments. See compas_plotters.artists.PlotterArtist and compas.artists.PrimitiveArtist for more info.

Attributes

circle (compas.geometry.Circle) – The circle associated with the artist.

Methods

draw

Draw the circle on the plotter canvas.

redraw

Update the circle using the current geometry and visualization settings.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear all objects from the view.

draw_collection

Drawing method for drawing an entire collection of objects.

register

Register an artist type to a data type.

update_data

Update the data limits of the plotting axes using the visualization data.

viewbox

Compute the bounds of the current view.