22 #include <dtkCoreSupport/dtkGlobal.h>
24 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
25 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
30 class axlFieldParametricNormalVectorPrivate
78 qDebug() <<
"Getting vector value on non vector field.";
102 return "axlFieldParametricNormalVector";
114 qstr.append(
"axlFieldParametricNormalVector : \n");
115 qstr.append(
"Type : Double ");
116 qstr.append(
";Kind : Vector ");
117 qstr.append(
";Support : Point");
130 if(dynamic_cast<axlAbstractSurfaceBSpline*>(data))
141 return d->input->startParam_u();
151 return d->input->startParam_v();
161 return d->input->endParam_u();
171 return d->input->endParam_v();
182 return d->input->numSamples_u();
190 return d->input->numSamples_v();
200 return d->input->numSamples_u()*d->input->numSamples_v();
Class axlPoint defines 3D points.
int size(void)
Returns the number of values evaluated for this BSpline field on each samples of the input BSpline...
double start_v(void)
Returns the first parameter value of the field.
double * coordinates(void) const
Returns coordinates of this point.
double numbersample_v(void)
Returns the number of parameters.
axlMesh * mesh(void)
Return the mesh of that object is computed.
double end_v(void)
Returns the last parameter value of the field.
void setSurface(axlAbstractData *data)
Sets the BSpline on which the BSpline field is applied.
virtual void update(void)
void vertex(const int &ind, double vertex[3])
set vertex values of vertices with index ind.
dtkAbstractData * createaxlFieldParametricNormalVector(void)
double end_u(void)
Returns the last parameter value of the field.
virtual void setType(Type type)
Sets the type of the field which can be either int, float or double.
Class axlFieldParametricNormalVector defines an API for field which owns a BSpline Surface as a funct...
double * vector(double u, double v, double w=0.)
Returns the value of the spatial field at the coordinates point entered.
virtual void setSupport(Support support)
double start_u(void)
Returns the first parameter value of the field.
Class axlAbstractFieldParametricSurface defines an API for parametric field.
static axlPoint crossProduct(const axlPoint &lhs, const axlPoint &rhs)
Returns the cross product between lhs (coords) and rhs (coords).
virtual void setKind(Kind kind)
Sets the kind of the field which can be either scalar, vector or tensor.
QString identifier(void) const
Returns the identifier of the field "axlFieldParametricNormalVector".
axlFieldParametricNormalVector()
double numbersample_u(void)
Returns the number of parameters.
virtual ~axlFieldParametricNormalVector(void)
Destroys a Bspline field.
Class axlAbstractData defines an API for all type of axel data.
QString description(void) const
Returns the description of the field.
Class axlMesh defines a piecewise-linear 3D object.