UNIVERS
15.3
UNIVERS base processing software API
|
#include <u_curve1d.hpp>
Public Member Functions | |
virtual double | operator() (double x) const =0 |
virtual bool | ready () const =0 |
virtual void | addNode (const NodeT &node, int id)=0 |
virtual bool | removeNode (size_t id)=0 |
Interface for abstract 1D curve (y=f(x)) with type of nodes defined as a parameter.
|
pure virtual |
Add new point to the curve at index = id. If id < 0 or out of range then add new last point.
Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.
|
pure virtual |
Calculate curve value f(x) for provided argument x.
Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.
|
pure virtual |
Does object ready for curve values calculation.
Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.
|
pure virtual |
Remove node with provided id. Return false on error.
Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.