Developer documentation | Axl-2.5.1

axlFieldParametricCurve.h
Go to the documentation of this file.
1 /* axlFieldParametricCurve.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 #include "axlCoreExport.h"
15 #ifndef AXLFIELDPARAMETRICCURVE_H
16 #define AXLFIELDPARAMETRICCURVE_H
17 
19 
20 class axlFieldParametricCurvePrivate;
21 class axlAbstractData;
22 
24 {
25  Q_OBJECT
26 
27 public:
29  virtual ~axlFieldParametricCurve(void);
30 
31 // void setType(Type type);
32 // void setKind(Kind kind);
33 // void setSupport(Support support);
34 
35  void setFunction(axlAbstractData *data);
37  void setCurve(axlAbstractData *data);
38 
39  double start_u(void);
40 
41  double end_u(void);
42 
43  double numbersample_u(void);
44 
45  int size(void);
46 
47 // Type type(void);
48 // Kind kind(void);
49 // Support support(void);
50 
51  virtual double scalar(double u, double v = 0., double w = 0.);
52  virtual double *vector(double u, double v = 0., double w = 0.);
53  virtual double *tensor(double u, double v = 0., double w = 0.);
54 
55  virtual QString description(void) const;
56  virtual QString identifier(void) const;
57 // virtual QString name(void);
58 // virtual void setName(QString name);
59 
60 
61 public slots:
62  virtual void update(void);
63 
64 
65 private:
66  axlFieldParametricCurvePrivate *d;
67 };
68 
69 AXLCORE_EXPORT dtkAbstractData *createaxlFieldParametricCurve(void);
70 
71 
72 #endif // AXLFIELDPARAMETRICCURVE_H
virtual double scalar(double u, double v=0, double w=0)
Returns the value of the parametric field at the parameters values in input.
virtual void setFunction(axlAbstractData *data)
Returns the description of the field.
virtual double * tensor(double u, double v=0, double w=0)
Returns the value of the spatial field at the coordinates point entered.
virtual void setCurve(axlAbstractData *Curve)
Sets the support Curve of the field.
virtual axlAbstractData * getFunction(void)
Returns the description of the field.
Class axlFieldParametricCurve defines an API for field which owns a BSpline curve.
AXLCORE_EXPORT dtkAbstractData * createaxlFieldParametricCurve(void)
Class axlAbstractFieldParametricCurve defines an API for parametric field.
virtual int size(void)
Returns number of parameters on which the field is evaluated.
virtual QString identifier(void) const
Returns the description of the field.
virtual double end_u(void)
Returns the last v-value parameter.
virtual double start_u(void)
Returns the first u-value parameter.
#define AXLCORE_EXPORT
Class axlAbstractData defines an API for all type of axel data.
virtual double numbersample_u(void)
Returns the number of u-parameters.
virtual QString description(void) const
Returns the description of the field.
virtual double * vector(double u, double v=0, double w=0)
Returns the value of the parametric field evaluated at the parameters in input.