NetworkArtist
- class compas_rhino.artists.NetworkArtist(*args, **kwargs)[source]
Bases:
RhinoArtist
,NetworkArtist
Artist for drawing network data structures.
- Parameters
network (
compas.datastructures.Network
) – A COMPAS network.layer (str, optional) – The parent layer of the network.
nodes (list[int], optional) – A list of node identifiers. Default is None, in which case all nodes are drawn.
edges (list[tuple[int, int]], optional) – A list of edge identifiers. The default is None, in which case all edges are drawn.
nodecolor (tuple[int, int, int] or dict[int, tuple[int, int, int]], optional) – The color of the nodes.
edgecolor (tuple[int, int, int] or dict[tuple[int, int], tuple[int, int, int]], optional) – The color of the edges.
show_nodes (bool, optional) – If True, draw the nodes of the network.
show_edges (bool, optional) – If True, draw the edges of the network.
**kwargs (dict, optional) – Additional keyword arguments. For more info, see
RhinoArtist
andNetworkArtist
.
Methods
Delete all objects drawn by this artist.
Delete all edge labels drawn by this artist.
Delete all edges drawn by this artist.
Delete all node labels drawn by this artist.
Delete all nodes drawn by this artist.
Draw the network using the chosen visualisation settings.
Draw labels for a selection of edges.
Draw a selection of edges.
Draw labels for a selection nodes.
Draw a selection of nodes.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear the layer of the artist.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.