Developer documentation | Axl-2.5.1

axlAbstractFieldParametric.cpp
Go to the documentation of this file.
1 /* axlAbstractFieldParametric.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 axlAbstractFieldParametricPrivate
25 {
26 public:
27 
28 };
29 
30 // /////////////////////////////////////////////////////////////////
31 // axlAbstractFieldParametric implementation
32 // /////////////////////////////////////////////////////////////////
33 
35 
38 axlAbstractFieldParametric::axlAbstractFieldParametric() : axlAbstractField(), d(new axlAbstractFieldParametricPrivate)
39 {
40 
41 }
42 
43 
44 
46 
50 {
51  delete d;
52 
53  d = NULL;
54 }
55 
56 
58 
62  DTK_DEFAULT_IMPLEMENTATION;
63  return 0;
64 }
65 
67 
70 double axlAbstractFieldParametric::scalar(double u, double v, double w)
71 {
72  if(!(this->kind() == Scalar)) {
73  qDebug() << "Getting scalar value on non scalar field.";
74  return 0;
75  }
76  return 0;
77 }
78 
80 
83 double *axlAbstractFieldParametric::vector(double u, double v, double w)
84 {
85  if(!(this->kind() == Vector)) {
86  qDebug() << "Getting vector value on non vector field.";
87  return NULL;
88  }
89  return NULL;
90 }
91 
93 
96 double *axlAbstractFieldParametric::tensor(double u, double v, double w)
97 {
98  if(!(this->kind() == Tensor)) {
99  qDebug() << "Getting tensor value on non tensor field.";
100  return NULL;
101  }
102 
103  return NULL;
104 }
105 
106 
107 
108 //double axlAbstractFieldParametric::start_u(void){
109 
110 // DTK_DEFAULT_IMPLEMENTATION;
111 // return 0;
112 //}
113 
114 //double axlAbstractFieldParametric::start_v(void){
115 
116 // DTK_DEFAULT_IMPLEMENTATION;
117 // return 0;
118 //}
119 
120 //double axlAbstractFieldParametric::start_w(void){
121 
122 // DTK_DEFAULT_IMPLEMENTATION;
123 // return 0;
124 //}
125 
126 //double axlAbstractFieldParametric::end_u(void){
127 
128 // DTK_DEFAULT_IMPLEMENTATION;
129 // return 0;
130 //}
131 
132 //double axlAbstractFieldParametric::end_v(void){
133 
134 // DTK_DEFAULT_IMPLEMENTATION;
135 // return 0;
136 //}
137 
138 //double axlAbstractFieldParametric::end_w(void){
139 
140 // DTK_DEFAULT_IMPLEMENTATION;
141 // return 0;
142 //}
143 
144 //double axlAbstractFieldParametric::numbersample_u(void){
145 
146 // DTK_DEFAULT_IMPLEMENTATION;
147 // return 0;
148 //}
149 
150 //double axlAbstractFieldParametric::numbersample_v(void){
151 
152 // DTK_DEFAULT_IMPLEMENTATION;
153 // return 0;
154 //}
155 
156 //double axlAbstractFieldParametric::numbersample_w(void){
157 
158 // DTK_DEFAULT_IMPLEMENTATION;
159 // return 0;
160 //}
161 
162 
163 
165 
169 
170  DTK_DEFAULT_IMPLEMENTATION;
171 }
172 
173 
175 
179  return NULL;
180 }
181 
183 
188 {
189  DTK_DEFAULT_IMPLEMENTATION;
190  return QString();
191 
192 }
193 
194 
196 
201 {
202  DTK_DEFAULT_IMPLEMENTATION;
203  return QString();
204 
205 }
206 
207 //double axlAbstractFieldParametric::evalX(double u, double v , double w ){
208 // return d->value_point->eval3(u,v,w,0);
209 
210 //}
211 
212 //double axlAbstractFieldParametric::evalY(double u, double v , double w ){
213 // return d->value_point->eval3(u,v,w,1);
214 //}
215 
216 //double axlAbstractFieldParametric::evalZ(double u, double v , double w ){
217 // return d->value_point->eval3(u,v,w,2);
218 //}
219 
222 
226 {
227  emit updated();
228 }
229 
230 // /////////////////////////////////////////////////////////////////
231 // axlField documentation
232 // /////////////////////////////////////////////////////////////////
233 
240 // /////////////////////////////////////////////////////////////////
241 // Type instanciation
242 // /////////////////////////////////////////////////////////////////
243 
244 dtkAbstractData *createaxlAbstractFieldParametric(void)
245 {
246  return new axlAbstractFieldParametric;
247 }
virtual QString description(void) const
Returns the description of the field.
Class axlAbstractFieldParametric defines an API for parametric field.
dtkAbstractData * createaxlAbstractFieldParametric(void)
virtual int size(void)
Returns number of parameters on which the field is evaluated.
virtual ~axlAbstractFieldParametric(void)
Destroys a parametric 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 Kind kind(void)
virtual axlAbstractData * getFunction(void)
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.
virtual double scalar(double u, double v=0, double w=0)
Returns the value of the parametric field at the parameters values in input.
Class axlAbstractField defines an API for arrays of numeric data.
virtual void setFunction(axlAbstractData *data)
Returns the description of the field.
virtual QString identifier(void) const
Returns the description of the field.
Class axlAbstractData defines an API for all type of axel data.