Developer documentation | Axl-2.5.1

axlAbstractFieldParametricCurve.cpp
Go to the documentation of this file.
1 /* axlAbstractFieldParametricCurve.cpp ---
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 <sstream>
15 
17 #include "axlAbstractProcess.h"
18 
19 #include <dtkCoreSupport/dtkGlobal.h>
20 
21 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
22 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
23 
24 class axlAbstractFieldParametricCurvePrivate
25 {
26 public:
27 };
28 
29 // /////////////////////////////////////////////////////////////////
30 // axlAbstractFieldParametricCurve implementation
31 // /////////////////////////////////////////////////////////////////
32 
34 
38 {
39 }
40 
41 
42 
44 
48 {
49  delete d;
50 
51  d = NULL;
52 }
53 
54 
56 
60 
61  DTK_DEFAULT_IMPLEMENTATION;
62 }
63 
65 
69  DTK_DEFAULT_IMPLEMENTATION;
70  return 0;
71 }
72 
74 
77 double axlAbstractFieldParametricCurve::scalar(double u, double v, double w)
78 {
79  if(!(this->kind() == Scalar)) {
80  qDebug() << "Getting scalar value on non scalar field.";
81  return 0;
82  }
83  return 0;
84 }
85 
87 
90 double *axlAbstractFieldParametricCurve::vector(double u, double v, double w)
91 {
92  if(!(this->kind() == Vector)) {
93  qDebug() << "Getting vector value on non vector field.";
94  return NULL;
95  }
96  return NULL;
97 }
98 
100 
103 double *axlAbstractFieldParametricCurve::tensor(double u, double v, double w)
104 {
105  if(!(this->kind() == Tensor)) {
106  qDebug() << "Getting tensor value on non tensor field.";
107  return NULL;
108  }
109 
110  return NULL;
111 }
112 
113 
115 
119 
120  DTK_DEFAULT_IMPLEMENTATION;
121  return 0;
122 }
123 
124 
126 
130 
131  DTK_DEFAULT_IMPLEMENTATION;
132  return 0;
133 }
134 
135 
136 
138 
142 
143  DTK_DEFAULT_IMPLEMENTATION;
144  return 0;
145 }
146 
147 
149 
153 
154  DTK_DEFAULT_IMPLEMENTATION;
155 }
156 
157 
159 
163  return NULL;
164 }
165 
167 
172 {
173  DTK_DEFAULT_IMPLEMENTATION;
174  return QString();
175 
176 }
177 
178 
180 
185 {
186  DTK_DEFAULT_IMPLEMENTATION;
187  return QString();
188 
189 }
190 
193 
197 {
198  emit updated();
199 }
200 
201 // /////////////////////////////////////////////////////////////////
202 // axlField documentation
203 // /////////////////////////////////////////////////////////////////
204 
211 // /////////////////////////////////////////////////////////////////
212 // Type instanciation
213 // /////////////////////////////////////////////////////////////////
214 
216 {
218 }
219 
220 
Class axlAbstractFieldParametric defines an API for parametric field.
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 axlAbstractFieldParametricCurve defines an API for parametric field.
virtual int size(void)
Returns number of parameters on which the field is evaluated.
virtual Kind kind(void)
dtkAbstractData * createaxlAbstractFieldParametricCurve(void)
virtual QString identifier(void) const
Returns the description of the field.
virtual ~axlAbstractFieldParametricCurve(void)
Destroys a parametric field.
virtual double end_u(void)
Returns the last v-value parameter.
virtual double start_u(void)
Returns the first u-value parameter.
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.