20 #include <dtkCoreSupport/dtkGlobal.h>
22 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
23 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
25 class axlFieldSpatialPointDistancePrivate
80 }
else if(channel == 1){
104 return std::abs((x-d->point->x()) * (x-d->point->x()) + (y-d->point->y()) * (y-d->point->y()) + (z-d->point->z()) * (z-d->point->z()));
116 qstr.append(
"axlFieldSpatialPointDistance");
117 qstr.append(
"Type : Float");
118 qstr.append(
";Kind : Scalar");
119 qstr.append(
";Support : Point");
132 return "axlFieldSpatialPointDistance";
Class axlPoint defines 3D points.
axlFieldSpatialPointDistance()
virtual void update(void)
QString identifier(void) const
Returns the identifier of the field "axlFieldSpatialPointDistance".
dtkAbstractData * createAxlFieldSpatialPointDistance(void)
double scalar(double x, double y=0, double z=0)
Returns the value of the spatial field at the coordinates point entered.
virtual ~axlFieldSpatialPointDistance(void)
Destroys a spatial field.
axlPoint * getPoint(void)
Returns the reference point.
Class axlAbstractFieldSpatial defines an API for spatial field.
Class axlFieldSpatialPointDistance defines an API for spatial field.
virtual void setType(Type type)
Sets the type of the field which can be either int, float or double.
virtual void setSupport(Support support)
QString description(void) const
Returns the description of the field.
void setParameter(double data, int channel)
Sets the reference point.
virtual void setKind(Kind kind)
Sets the kind of the field which can be either scalar, vector or tensor.