20 #ifndef AXLABSTRACTCURVEBSPLINE_H
21 #define AXLABSTRACTCURVEBSPLINE_H
26 #include "axlCoreExport.h"
28 class axlAbstractCurveBSplinePrivate;
36 typedef QMap<double, axlPoint>
Sample;
42 virtual int countControlPoints(
void)
const;
43 virtual int knotVectorSize(
void)
const;
44 virtual int order(
void)
const;
45 virtual int numCoefs()
const;
47 virtual bool rational(
void)
const;
52 virtual void setCurve(
int pointsCount,
int order,
int dimension,
double *knots,
double *points,
bool rational);
55 virtual double closestParameter(
const axlPoint& pt);
57 virtual Sample sampling(
int n);
59 virtual void insertKnot(
double k);
60 virtual void removeKnot(
double k);
62 virtual axlPoint getCoef(
int n)
const ;
63 virtual bool setCoef(
int n,
double *controlPoint);
64 virtual double getKnot(
int n)
const;
66 virtual QString printCoeffs(
bool print)
const;
67 virtual QString printKnotsVector(
bool print)
const;
70 virtual double getWeight(
int n)
const;
73 virtual void updateRcoeff();
76 virtual QString description(
void)
const;
78 virtual bool connectionsAreDefined(
void);
79 virtual QList<int> getControlPointConnection(
int i);
80 virtual void defineControlPointConnection(
int i,
int j);
81 virtual void resetControlPointConnections(
void);
91 void samplingChanged();
92 void indexSelected(
int);
95 axlAbstractCurveBSplinePrivate *d;
Class axlPoint defines 3D points.
virtual double startParam(void)
virtual int convertQVariantToData(const QVariantList &data)
Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was suc...
Generic interface for parametric curve.
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
virtual void selectIndex(int i)
QMap< double, axlPoint > Sample
virtual double endParam(void)