20 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
21 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
22 #include <dtkCoreSupport/dtkGlobal.h>
25 class axlFieldSpatialCoordinatesCreatorPrivate
41 d->spatialField = NULL;
66 else if (channel == 1)
71 qDebug() <<
"channel has only three values possible : 0 to 2";
84 QString newName = d->input->changeFieldName(d->spatialField->objectName());
85 d->spatialField->setObjectName(newName);
86 d->input->addField(d->spatialField);
92 d->spatialField->setParameter(d->a,0);
93 d->spatialField->setParameter(d->b,1);
94 d->spatialField->setParameter(d->c,2);
95 d->spatialField->update();
99 QList<axlAbstractData *>list;
110 return "axlFieldSpatialCoordinatesCreator created fields for input dataset that evaluate ax+by+cz with (a,b,c) the direction chosen";
115 return "axlFieldSpatialCoordinateGenerator";
void setParameter(double value, int channel)
Class axlFieldSpatialCoordinates defines an API for spatial field. The value are computed as follow :...
virtual ~axlFieldSpatialCoordinatesCreator(void)
void dataSetFieldsChanged(QList< axlAbstractData * > dataSet, QString fieldName)
axlFieldSpatialCoordinatesCreator(void)
dtkAbstractProcess * createaxlFieldSpatialCoordinatesCreator(void)
Class axlAbstractData defines an API for all type of axel data.
void setInput(dtkAbstractData *data, int channel)
virtual QString identifier(void) const
virtual QString description(void) const