]> Creatis software - creaBruker.git/blob - lib/src1/brukerkspaceobject.h
Initial revision
[creaBruker.git] / lib / src1 / brukerkspaceobject.h
1 //
2 // C++ Interface: brukerobject
3 //
4 // Description: 
5 //
6 //
7 // Author:  <Denis Grenier>, (C) 2008
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef BRUKERKSPACEOBJECT_H
13 #define BRUKERKSPACEOBJECT_H
14
15 #include <vector>
16 #include "brukerSystem.h"
17 #include "brukerdataset.h"
18
19
20 class creaBruker_EXPORT BrukerKspaceObject{
21 public:
22    BrukerKspaceObject(BrukerDataSet DataSet);
23    ~BrukerKspaceObject();
24
25
26
27    void setAbsoluteTimePosition ( long theValue )
28    {
29       AbsoluteTimePosition = theValue;
30    }
31         
32
33
34    long  getAbsoluteTimePosition() const
35    {
36       return AbsoluteTimePosition;
37    }
38
39    void setACQ_phase_factor ( int theValue )
40    {
41       ACQ_phase_factor = theValue;
42    }
43         
44
45    int  getACQ_phase_factor() const
46    {
47       return ACQ_phase_factor;
48    }
49
50    void setDimension ( int theValue )
51    {
52       Dimension = theValue;
53    }
54         
55    int  getDimension() const
56    {
57       return Dimension;
58    }
59
60    void setFlipAngle ( double theValue )
61    {
62       FlipAngle = theValue;
63    }
64         
65    double  getFlipAngle() const
66    {
67    return FlipAngle;
68    }
69
70    void setImaginaryPart ( const std::vector< double >& theValue )
71    {
72       ImaginaryPart = theValue;
73    }    
74
75    std::vector< double >  getImaginaryPart() const
76    {
77       return ImaginaryPart;
78    }
79
80    void setNA ( int theValue )
81    {
82       NA = theValue;
83    }    
84
85    int  getNA() const
86    {
87       return NA;
88    }
89
90    void setNR ( int theValue )
91    {
92       NR = theValue;
93    }
94         
95    int  getNR() const
96    {
97       return NR;
98    }
99
100    void setNumberOfSlices ( int theValue )
101    {
102       NumberOfSlices = theValue;
103    }
104         
105
106 int  getNumberOfSlices() const
107 {
108    return NumberOfSlices;
109 }
110
111 void setObjectNumber ( int theValue )
112 {
113    ObjectNumber = theValue;
114 }
115         
116
117 int  getObjectNumber() const 
118 {
119    return ObjectNumber;
120 }
121
122 void setRealPart ( const std::vector< double >& theValue )
123 {
124    RealPart = theValue;
125 }
126         
127
128 std::vector< double >  getRealPart() const
129 {
130    return RealPart;
131 }
132
133 void setRG ( double theValue )
134 {
135    RG = theValue;
136 }
137         
138
139 double  getRG() const
140 {
141    return RG;
142 }
143
144 void setRotationMatrixRPS2XYZ ( const std::vector< std :: vector < double > >& theValue )
145 {
146    RotationMatrixRPS2XYZ = theValue;
147 }
148         
149
150 std::vector< std :: vector < double > >  getRotationMatrixRPS2XYZ() const
151 {
152    return RotationMatrixRPS2XYZ;
153 }
154
155 void setSliceNumber ( int theValue )
156 {
157    SliceNumber = theValue;
158 }
159         
160
161 int  getSliceNumber() const
162 {
163    return SliceNumber;
164 }
165
166 void setSliceThickness ( double theValue )
167 {
168    SliceThickness = theValue;
169 }
170         
171
172 double  getSliceThickness() const
173 {
174    return SliceThickness;
175 }
176
177 void setTE ( double theValue )
178 {
179    TE = theValue;
180 }
181         
182
183 double  getTE() const
184 {
185    return TE;
186 }
187
188
189 void setTI ( double theValue )
190 {
191    TI = theValue;
192 }
193         
194
195 double  getTI() const
196 {
197    return TI;
198 }
199
200 void setTR ( double theValue )
201 {
202    TR = theValue;
203 }
204         
205
206 double getTR() const
207 {
208    return TR;
209 }
210
211 void setTranslationVectorRPS2XYZ ( const std::vector< double >& theValue )
212 {
213    TranslationVectorRPS2XYZ = theValue;
214 }
215         
216
217 std::vector< double >  getTranslationVectorRPS2XYZ() const
218 {
219    return TranslationVectorRPS2XYZ;
220 }
221
222 void setDimensionSizes ( const std::vector< int >& theValue )
223 {
224    DimensionSizes = theValue;
225 }
226         
227
228 std::vector< int > getDimensionSizes() const
229 {
230    return DimensionSizes;
231 }
232
233 void setFOV ( const std::vector< double >& theValue )
234 {
235         FOV = theValue;
236 }
237         
238
239 std::vector< double > getFOV() const
240 {
241    return FOV;
242 }
243
244
245 bool FillWithObject(BrukerDataSet DataSet, int ObjectNumber);
246
247
248 void setNI ( int theValue )
249 {
250    NI = theValue;
251 }
252         
253
254 int getNI() const
255 {
256    return NI;   
257 }
258
259 void setNAE ( int theValue )
260 {
261    NAE = theValue;
262 }
263         
264
265 int getNAE() const
266 {
267    return NAE;
268 }
269
270 void setDS ( int theValue )
271 {
272    DS = theValue;
273 }
274         
275
276 int getDS() const
277 {
278    return DS;
279 }
280
281 void setACQ_ns_list ( const std::vector< int >& theValue )
282 {
283    ACQ_ns_list = theValue;
284 }
285         
286
287 std::vector< int > getACQ_ns_list() const
288 {
289    return ACQ_ns_list;
290 }
291
292 void setACQ_obj_order ( const std::vector< int >& theValue )
293 {
294    ACQ_obj_order = theValue;
295 }
296         
297
298 std::vector< int > getACQ_obj_order() const
299 {
300    return ACQ_obj_order;
301 }
302
303 void setACQ_echo_time ( const std::vector< int >& theValue )
304 {
305    ACQ_echo_time = theValue;
306 }
307         
308 std::vector< int > getACQ_echo_time() const
309 {
310    return ACQ_echo_time;
311 }
312         
313
314
315 private:
316     int ObjectNumber;
317     int Dimension;
318     std::vector <int> DimensionSizes;
319     std::vector <int> ACQ_ns_list;
320     std::vector <int> ACQ_obj_order;
321     std::vector <int> ACQ_echo_time;
322     double TE;
323     double TR;
324     double TI;
325     double FlipAngle;
326     double RG;
327     int NA;
328     int ACQ_phase_factor;
329     std::vector<std::vector<double> >  RotationMatrixRPS2XYZ;
330     std::vector <double> TranslationVectorRPS2XYZ;
331     long AbsoluteTimePosition;
332     int NR;
333     int NI;
334     int NAE;
335     int DS;
336     int NumberOfSlices;
337     int SliceNumber;
338     std::vector <double> FOV;
339     double SliceThickness;
340     std::vector<double> RealPart;
341     std::vector<double> ImaginaryPart;
342 };
343
344 #endif