23 class axlBarycenterProcessPrivate{
56 return d->lambda->value();
67 if(dynamic_cast<axlLine *>(newData)){
84 if (d->output==NULL) {
87 d->output = d->input->getBarycenterPoint(d->lambda->value());
91 d->output = d->input->getBarycenterPoint(d->lambda->value());
100 axlPoint* tmp= d->input->getBarycenterPoint(d->lambda->value());
101 d->output->setCoordinates( tmp->
x(), tmp->
y(), tmp->
z()) ;
119 return "give the barycenter point of the points defining the line";
124 return "axlBarycenterProcess";
Class axlPoint defines 3D points.
Class axlLine defines 3D lines.
~axlBarycenterProcess(void)
Class axlDouble defines a double.
axlAbstractData * getInput(int channel) const
void setParameter(double data, int channel=0)
QString description(void) const
void setInput(dtkAbstractData *newData, int channel=0)
dtkAbstractData * output(void)
double getCoeffValue(void) const
dtkAbstractProcess * createaxlBarycenterProcess(void)
QString identifier(void) const
Class axlAbstractData defines an API for all type of axel data.
axlBarycenterProcess(QObject *parent=0)
virtual int update(void)
Returns the barycenter point of the line.