4 #include <dtkCoreSupport/dtkGlobal.h>
6 class axlCompositeCurvePrivate
9 QList<axlAbstractCurve *> data;
10 QPair<axlPoint *, axlPoint *> ends;
42 return d->data.value(
id);
49 return d->data.size();
55 d->data.append(data_curves);
62 for(
int i = 0; i<data_curve.size(); i++)
73 d->data.insert(id_want_inserted,curve);
96 d->data.append(curve);
104 d->ends.first =
new axlPoint(startPoint);
105 d->ends.second =
new axlPoint(endPoint);
112 d->ends.first = startPoint;
113 d->ends.second = endPoint;
119 return d->ends.first;
123 return d->ends.second;
128 d->data.removeLast();
134 d->data.removeAt(id_want_remove);
139 QString s =
"axlCompositeCurve";
142 for(
int i = 0; i <d->data.size(); i++)
144 s.append(d->data.at(i)->description() +
"\n");
149 s.append(d->ends.first->description() +
"\n");
150 s.append(d->ends.second->description());
157 return "axlCompositeCurve";
162 d->tag = other.d->tag;
166 d->data.append(other.d->data);
170 d->ends = other.d->ends;
dtkAbstractData * createaxlCompositeCurve(void)
Class axlPoint defines 3D points.
void remove_curve_at_id(int id_want_remove)
axlPoint * get_start_point()
axlCompositeCurve & operator=(const axlCompositeCurve &other)
int count_curve(void) const
void append_point(const axlPoint &startPoint, const axlPoint &endPoint)
axlAbstractCurve * get_pt_curve_at_id(int id) const
void insert_curve(axlAbstractCurve *curve, int id_want_inserted)
void insert_list_curves(const QList< axlAbstractCurve > &data_curves)
axlPoint * get_end_point()
Generic interface for parametric curve.
void append_curve(const axlAbstractCurve &curve)
axlCompositeCurve(QObject *parent=0)
virtual QString description(void) const
virtual QString identifier(void) const