Developer documentation | Axl-2.5.1

axlFieldParametricSurface.h
Go to the documentation of this file.
1 /* axlFieldParametricSurface.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 AXLFIELDPARAMETRICSURFACE_H
16 #define AXLFIELDPARAMETRICSURFACE_H
17 
19 
20 class axlFieldParametricSurfacePrivate;
21 class axlAbstractData;
22 
24 {
25  Q_OBJECT
26 
27 public:
29  virtual ~axlFieldParametricSurface(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 setSurface(axlAbstractData *data);
38 
39  double start_u(void);
40  double start_v(void);
41 
42  double end_u(void);
43  double end_v(void);
44 
45  double numbersample_u(void);
46  double numbersample_v(void);
47 
48  int size(void);
49 
50  // Type type(void);
51  // Kind kind(void);
52  // Support support(void);
53 
54  virtual double scalar(double u, double v, double w = 0);
55  virtual double *vector(double u, double v, double w = 0);
56  virtual double *tensor(double u, double v, double w = 0);
57 
58  virtual QString description(void) const;
59  virtual QString identifier(void) const;
60  // virtual QString name(void);
61  // virtual void setName(QString name);
62 
63 
64 public slots:
65  virtual void update(void);
66 
67 
68 private:
69  axlFieldParametricSurfacePrivate *d;
70 };
71 
72 AXLCORE_EXPORT dtkAbstractData *createaxlFieldParametricSurface(void);
73 
74 
75 #endif // AXLFIELDPARAMETRICSURFACE_H
AXLCORE_EXPORT dtkAbstractData * createaxlFieldParametricSurface(void)
Class axlFieldParametricSurface defines an API for field which owns a BSpline Surface as a function a...
virtual axlAbstractData * getFunction(void)
Returns the description of the field.
virtual double start_u(void)
Returns the first u-value parameter.
virtual int size(void)
Returns number of parameters on which the field is evaluated.
virtual double scalar(double u, double v, double w=0)
Returns the value of the parametric field at the parameters values in input.
virtual double start_v(void)
Returns the first v-value parameter.
virtual double numbersample_v(void)
Returns the number of v-parameters.
virtual void setFunction(axlAbstractData *data)
Returns the description of the field.
virtual double numbersample_u(void)
Returns the number of u-parameters.
virtual double * tensor(double u, double v, double w=0)
Returns the value of the spatial field at the coordinates point entered.
virtual double end_u(void)
Returns the last v-value parameter.
virtual double * vector(double u, double v, double w=0)
Returns the value of the parametric field evaluated at the parameters in input.
virtual double end_v(void)
Returns the last v-value parameter.
#define AXLCORE_EXPORT
virtual QString identifier(void) const
Returns the description of the field.
virtual QString description(void) const
Returns the description of the field.
Class axlAbstractFieldParametricSurface defines an API for parametric field.
virtual void setSurface(axlAbstractData *surface)
Sets the support surface of the field.
Class axlAbstractData defines an API for all type of axel data.