2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
28 // C++ Interface: brukerobject
33 // Author: <Denis Grenier>, (C) 2008
35 // Copyright: See COPYING file that comes with this distribution
38 #ifndef BRUKERKSPACEOBJECT_H
39 #define BRUKERKSPACEOBJECT_H
42 #include "brukerSystem.h"
43 #include "brukerdataset.h"
46 class creaBruker_EXPORT BrukerKspaceObject{
48 BrukerKspaceObject(BrukerDataSet DataSet);
49 ~BrukerKspaceObject();
53 void setAbsoluteTimePosition ( long theValue )
55 AbsoluteTimePosition = theValue;
60 long getAbsoluteTimePosition() const
62 return AbsoluteTimePosition;
65 void setACQ_phase_factor ( int theValue )
67 ACQ_phase_factor = theValue;
71 int getACQ_phase_factor() const
73 return ACQ_phase_factor;
76 void setDimension ( int theValue )
81 int getDimension() const
86 void setFlipAngle ( double theValue )
91 double getFlipAngle() const
96 void setImaginaryPart ( const std::vector< double >& theValue )
98 ImaginaryPart = theValue;
101 std::vector< double > getImaginaryPart() const
103 return ImaginaryPart;
106 void setNA ( int theValue )
116 void setNR ( int theValue )
126 void setNumberOfSlices ( int theValue )
128 NumberOfSlices = theValue;
132 int getNumberOfSlices() const
134 return NumberOfSlices;
137 void setObjectNumber ( int theValue )
139 ObjectNumber = theValue;
143 int getObjectNumber() const
148 void setRealPart ( const std::vector< double >& theValue )
154 std::vector< double > getRealPart() const
159 void setRG ( double theValue )
170 void setRotationMatrixRPS2XYZ ( const std::vector< std :: vector < double > >& theValue )
172 RotationMatrixRPS2XYZ = theValue;
176 std::vector< std :: vector < double > > getRotationMatrixRPS2XYZ() const
178 return RotationMatrixRPS2XYZ;
181 void setSliceNumber ( int theValue )
183 SliceNumber = theValue;
187 int getSliceNumber() const
192 void setSliceThickness ( double theValue )
194 SliceThickness = theValue;
198 double getSliceThickness() const
200 return SliceThickness;
203 void setTE ( double theValue )
215 void setTI ( double theValue )
226 void setTR ( double theValue )
237 void setTranslationVectorRPS2XYZ ( const std::vector< double >& theValue )
239 TranslationVectorRPS2XYZ = theValue;
243 std::vector< double > getTranslationVectorRPS2XYZ() const
245 return TranslationVectorRPS2XYZ;
248 void setDimensionSizes ( const std::vector< int >& theValue )
250 DimensionSizes = theValue;
254 std::vector< int > getDimensionSizes() const
256 return DimensionSizes;
259 void setFOV ( const std::vector< double >& theValue )
265 std::vector< double > getFOV() const
271 bool FillWithObject(BrukerDataSet DataSet, int ObjectNumber);
274 void setNI ( int theValue )
285 void setNAE ( int theValue )
296 void setDS ( int theValue )
307 void setACQ_ns_list ( const std::vector< int >& theValue )
309 ACQ_ns_list = theValue;
313 std::vector< int > getACQ_ns_list() const
318 void setACQ_obj_order ( const std::vector< int >& theValue )
320 ACQ_obj_order = theValue;
324 std::vector< int > getACQ_obj_order() const
326 return ACQ_obj_order;
329 void setACQ_echo_time ( const std::vector< int >& theValue )
331 ACQ_echo_time = theValue;
334 std::vector< int > getACQ_echo_time() const
336 return ACQ_echo_time;
344 std::vector <int> DimensionSizes;
345 std::vector <int> ACQ_ns_list;
346 std::vector <int> ACQ_obj_order;
347 std::vector <int> ACQ_echo_time;
354 int ACQ_phase_factor;
355 std::vector<std::vector<double> > RotationMatrixRPS2XYZ;
356 std::vector <double> TranslationVectorRPS2XYZ;
357 long AbsoluteTimePosition;
364 std::vector <double> FOV;
365 double SliceThickness;
366 std::vector<double> RealPart;
367 std::vector<double> ImaginaryPart;