UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
UBspl3Curve2d Class Reference

#include <u_bspl3_curve2d.hpp>

Inheritance diagram for UBspl3Curve2d:
UCurve1d< U2dPoint >

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
 

Detailed Description

2D base spline curve. {x=x(p), y=y(p)}, p=[0..1].

Constructor & Destructor Documentation

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 UBspl3Curve2d::~UBspl3Curve2d ( )
virtual

Destructor.

Member Function Documentation

virtual void UBspl3Curve2d::addNode ( const U2dPoint node,
int  id 
)
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 void UBspl3Curve2d::approximate ( const U3dBspl3AbstractMatrix bm,
const U2dPoints &  nodes 
)
virtual

General approximation method

virtual double UBspl3Curve2d::operator() ( double  x) const
virtual

Get curve value for provided argument

Implements UCurve1d< U2dPoint >.

virtual bool UBspl3Curve2d::ready ( ) const
inlinevirtual

True if spline constructed and object is ready to approximate

Implements UCurve1d< U2dPoint >.

virtual bool UBspl3Curve2d::removeNode ( size_t  id)
virtual

Remove node with provided id. Return false on error.

Implements UCurve1d< U2dPoint >.

Member Data Documentation

bool UBspl3Curve2d::m_ready
protected

< Is object ready Argument curve (x)

UBspl3Curve1d UBspl3Curve2d::m_x_curve
protected

Function value curve (y)


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