grapa.internal.container_curves.CurveContainer
- class grapa.internal.container_curves.CurveContainer(host_graph)
Bases:
objectA container for Curve objects in Graph. It behaves similarly as a list. Separate class to allow added behaviors, e.g. ctrl-z/ctrl-y, undo/redo
- __init__(host_graph) None
Methods
__init__(host_graph)append(curve)Append to the container a Curve, a list of Curves, or Curves in a Graph.
clear()Empty the container, remove all its content.
insert(c, curve)Insert at position c a Curve, a list of Curves, or the Curves in a Graph.
pop(c)Pop and return the curve at position c.
reverse()Reverse the order of curves in the container.
- append(curve: Curve | list | tuple | Graph)
Append to the container a Curve, a list of Curves, or Curves in a Graph. May raise TypeError, or any error of list.append().
- clear()
Empty the container, remove all its content.
- insert(c: int, curve)
Insert at position c a Curve, a list of Curves, or the Curves in a Graph. May raise TypeError, or any error of list.insert().
- pop(c: int)
Pop and return the curve at position c.
- reverse()
Reverse the order of curves in the container.