TopologyArtist

class compas_cem.plotters.TopologyArtist(item, **kwargs)[source]

Bases: NetworkArtist

An artist that draws a topology diagram.

Parameters:

topology_diagram (compas_cem.diagrams.TopologyDiagram) – The topology diagram to plot.

Methods

draw

Draw the nodes, the edges, the loads and the labels of a topology diagram.

draw_edges

Draw the edges of a topology diagram.

draw_loads

Draw the node loads as crosses inscribed in a circle.

draw_nodes

Draw the nodes of a topology diagram.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear the nodes and the edges of the network.

clear_edges

Clear the current edges from the canvas.

clear_nodes

Clear the current nodes from the canvas.

draw_collection

Drawing method for drawing an entire collection of objects.

draw_edgelabels

Draw a selection of edge labels.

draw_nodelabels

Draw a selection of node labels.

redraw

Redraw the view.

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.