20 #include <dtkCoreSupport/dtkGlobal.h>
22 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
23 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
25 class axlFieldSpatialCoordinatesPrivate
79 return (d->a*x +d->b*y +d->c*z);
96 qDebug()<<
"3 channels possible : 0 to 2";
109 else if (channel == 2)
112 qDebug() <<
"channel has only three possible values : 0 to 2.";
127 qstr.append(
"axlFieldSpatialCoordinates : ");
128 qstr.append(
"Type : Float");
129 qstr.append(
";Kind : Scalar");
130 qstr.append(
";Support : Point");
142 return "axlFieldSpatialCoordinates";
axlFieldSpatialCoordinates()
virtual void update(void)
Class axlFieldSpatialCoordinates defines an API for spatial field. The value are computed as follow :...
QString identifier(void) const
Returns the identifier of the field which is "axlFieldSpatialCoordinates".
dtkAbstractData * createaxlFieldSpatialCoordinates(void)
Class axlAbstractFieldSpatial defines an API for spatial field.
double parameter(int channel)
Returns the channel-th parameter value.
virtual void setType(Type type)
Sets the type of the field which can be either int, float or double.
virtual ~axlFieldSpatialCoordinates(void)
Destroys a spatial field.
QString description(void) const
Returns the description of the field.
void setParameter(double parameter, int channel)
Sets the coordinates direction.
virtual void setSupport(Support support)
virtual void setKind(Kind kind)
Sets the kind of the field which can be either scalar, vector or tensor.
double scalar(double x, double y=0, double z=0)
Returns the value of the spatial field at the coordinates point entered.