![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <u_bspl3_curve2d.hpp>
Public Member Functions | |
| UBspl3Curve2d () | |
| UBspl3Curve2d (const U3dBspl3AbstractMatrix &bm) | |
| UBspl3Curve2d (const U3dBspl3AbstractMatrix &bm, const U2dPoints &nodes) | |
| virtual | ~UBspl3Curve2d () |
| virtual double | operator() (double x) const |
| virtual void | approximate (const U3dBspl3AbstractMatrix &bm, const U2dPoints &nodes) |
| virtual bool | ready () const |
| virtual void | addNode (const U2dPoint &node, int id) |
| virtual bool | removeNode (size_t id) |
Protected Attributes | |
| bool | m_ready |
| UBspl3Curve1d | m_x_curve |
| UBspl3Curve1d | m_y_curve |
2D base spline curve. {x=x(p), y=y(p)}, p=[0..1].
| UBspl3Curve2d::UBspl3Curve2d | ( | ) |
Empty curve.
| UBspl3Curve2d::UBspl3Curve2d | ( | const U3dBspl3AbstractMatrix & | bm | ) |
Empty curve with defined type.
| UBspl3Curve2d::UBspl3Curve2d | ( | const U3dBspl3AbstractMatrix & | bm, |
| const U2dPoints & | nodes | ||
| ) |
Construct curve width provided nodes.
|
virtual |
Destructor.
|
virtual |
Add new point to the curve at index = id. If id < 0 or out of range then add new last point.
Implements UCurve1d< U2dPoint >.
|
virtual |
General approximation method
|
virtual |
Get curve value for provided argument
Implements UCurve1d< U2dPoint >.
|
inlinevirtual |
True if spline constructed and object is ready to approximate
Implements UCurve1d< U2dPoint >.
|
virtual |
Remove node with provided id. Return false on error.
Implements UCurve1d< U2dPoint >.
|
protected |
< Is object ready Argument curve (x)
|
protected |
Function value curve (y)
1.8.5