FormArtist

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

Bases: NetworkArtist

An artist that draws a form diagram.

Parameters:

form_diagram (FormDiagram) – The form diagram to plot.

Methods

draw

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

draw_edges

Draw the edges of a form diagram.

draw_loads

Draw the loads acting on the nodes of a force diagram.

draw_nodes

Draw the nodes of a form diagram.

draw_reactions

Draw the reaction forces at the supports of a form 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.