Attributes
- nodes
Stores the nodes used by the function. Note that this is not a proper trait and modifying this will not change the underlying VTK object.
nodes = List
Method summary
- add_point(self, x, val)
- initialize(self)
- remove_all_points(self)
- remove_point(self, x)
Methods
- add_point(self, x, val)
V.add_point(float, float) -> int V.add_point(float, float, float, float) -> int
Add/Remove points to/from the function. If a duplicate point is added then the function value is changed at that location. Return the index of the point (0 based), or -1 on error.
- initialize(self)
V.initialize()
Clears out the current function. A newly created PiecewiseFunction is alreay initialized, so there is no need to call this method which in turn simply calls remove_all_points()
- remove_all_points(self)
Remove all the points.
- remove_point(self, x)
V.remove_point(float) -> int
Add/Remove points to/from the function. If a duplicate point is added then the function value is changed at that location. Return the index of the point (0 based), or -1 on error.