UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
UCurve1d< NodeT > Class Template Referenceabstract

#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
 

Detailed Description

template<typename NodeT>
class UCurve1d< NodeT >

Interface for abstract 1D curve (y=f(x)) with type of nodes defined as a parameter.

Member Function Documentation

template<typename NodeT>
virtual void UCurve1d< NodeT >::addNode ( const NodeT &  node,
int  id 
)
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.

template<typename NodeT>
virtual double UCurve1d< NodeT >::operator() ( double  x) const
pure virtual

Calculate curve value f(x) for provided argument x.

Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.

template<typename NodeT>
virtual bool UCurve1d< NodeT >::ready ( ) const
pure virtual

Does object ready for curve values calculation.

Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.

template<typename NodeT>
virtual bool UCurve1d< NodeT >::removeNode ( size_t  id)
pure virtual

Remove node with provided id. Return false on error.

Implemented in UBspl3Curve2d, and SmoothCubicSpline1d.


The documentation for this class was generated from the following file: