Developer documentation | Axl-2.5.1

axlAbstractFieldParametricSurface.cpp
Go to the documentation of this file.
1 /* axlAbstractFieldParametricSurface.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 axlAbstractFieldParametricSurfacePrivate
25 {
26 public:
27 };
28 
29 // /////////////////////////////////////////////////////////////////
30 // axlAbstractFieldParametricSurface 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 axlAbstractFieldParametricSurface::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 *axlAbstractFieldParametricSurface::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 *axlAbstractFieldParametricSurface::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 //double axlAbstractFieldParametricSurface::start_w(void){
136 
137 // DTK_DEFAULT_IMPLEMENTATION;
138 // return 0;
139 //}
140 
141 
143 
147 
148  DTK_DEFAULT_IMPLEMENTATION;
149  return 0;
150 }
151 
152 
154 
158 
159  DTK_DEFAULT_IMPLEMENTATION;
160  return 0;
161 }
162 
163 //double axlAbstractFieldParametricSurface::end_w(void){
164 
165 // DTK_DEFAULT_IMPLEMENTATION;
166 // return 0;
167 //}
168 
169 
171 
175 
176  DTK_DEFAULT_IMPLEMENTATION;
177  return 0;
178 }
179 
180 
182 
186 
187  DTK_DEFAULT_IMPLEMENTATION;
188  return 0;
189 }
190 
191 //double axlAbstractFieldParametricSurface::numbersample_w(void){
192 
193 // DTK_DEFAULT_IMPLEMENTATION;
194 // return 0;
195 //}
196 
197 
198 
200 
204 
205  DTK_DEFAULT_IMPLEMENTATION;
206 }
207 
208 
210 
214  return NULL;
215 }
216 
218 
223 {
224  DTK_DEFAULT_IMPLEMENTATION;
225  return QString();
226 
227 }
228 
229 
231 
236 {
237  DTK_DEFAULT_IMPLEMENTATION;
238  return QString();
239 
240 }
241 
242 //double axlAbstractFieldParametricSurface::evalX(double u, double v , double w ){
243 // return d->value_point->eval3(u,v,w,0);
244 
245 //}
246 
247 //double axlAbstractFieldParametricSurface::evalY(double u, double v , double w ){
248 // return d->value_point->eval3(u,v,w,1);
249 //}
250 
251 //double axlAbstractFieldParametricSurface::evalZ(double u, double v , double w ){
252 // return d->value_point->eval3(u,v,w,2);
253 //}
254 
257 
261 {
262  emit updated();
263 }
264 
265 // /////////////////////////////////////////////////////////////////
266 // axlField documentation
267 // /////////////////////////////////////////////////////////////////
268 
275 // /////////////////////////////////////////////////////////////////
276 // Type instanciation
277 // /////////////////////////////////////////////////////////////////
278 
280 {
282 }
283 
Class axlAbstractFieldParametric defines an API for parametric field.
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 Kind kind(void)
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.
dtkAbstractData * createaxlAbstractFieldParametricSurface(void)
virtual double end_v(void)
Returns the last v-value parameter.
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.
virtual ~axlAbstractFieldParametricSurface(void)
Destroys a parametric field.