JEMRIS  2.8.1
open-source MRI simulations
Parameters.h
Go to the documentation of this file.
1 
5 /*
6  * JEMRIS Copyright (C)
7  * 2006-2015 Tony Stoecker
8  * 2007-2015 Kaveh Vahedipour
9  * 2009-2015 Daniel Pflugfelder
10  *
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  */
26 
27 #ifndef PARAMETERS_H_
28 #define PARAMETERS_H_
29 
30 #include "Module.h"
31 #include <xercesc/dom/DOMNode.hpp>
32 #include <cstdlib>
33 
37 class Parameters : public Module {
38 
39 public:
40 
44  ~Parameters() { m_instance = 0; };
45 
49  static Parameters* instance ();
50 
56  inline Parameters* Clone() const { return instance(); };
57 
58 
62  double GetDuration () {return -1.0;};
63 
70  bool Prepare(const PrepareMode mode = PREP_INIT);
71 
78  void SetDefaults();
79 
80 
81  static Parameters* m_instance;
82 
83  // Sequence parameters
84  double m_te;
85  double m_tr;
86  double m_ti;
87  double m_td;
89  double m_fov_x;
90  double m_fov_y;
91  double m_fov_z;
93  unsigned int m_iNx;
94  unsigned int m_iNy;
95  unsigned int m_iNz;
97  double m_delta_x;
98  double m_delta_y;
99  double m_delta_z;
101  double m_kmax_x;
102  double m_kmax_y;
103  double m_kmax_z;
105  double m_delta_kx;
106  double m_delta_ky;
107  double m_delta_kz;
109  //Scanner hardware parameters
115  private:
116 
117  Parameters() {};
119 };
120 
121 #endif /*PARAMETERS_H_*/
double m_fov_y
Sequence FOV in y direction.
Definition: Parameters.h:90
double m_delta_y
Sequence image resolution in y direction.
Definition: Parameters.h:98
double m_tr
Sequence TR.
Definition: Parameters.h:85
double GetDuration()
Definition: Parameters.h:62
double m_kmax_z
Sequence maximum k-value in z direction.
Definition: Parameters.h:103
unsigned int m_iNy
Sequence image size in y direction.
Definition: Parameters.h:94
double m_grad_rise_time
Constant rise time for all trapezoids.
Definition: Parameters.h:112
~Parameters()
Default destructor.
Definition: Parameters.h:44
double m_td
Sequence TD.
Definition: Parameters.h:87
double m_delta_kx
Sequence k-space resolution in x direction.
Definition: Parameters.h:105
World parameters provide the parametric data of the sequence.
Definition: Parameters.h:37
double m_delta_x
Sequence image resolution in x direction.
Definition: Parameters.h:97
double m_kmax_y
Sequence maximum k-value in y direction.
Definition: Parameters.h:102
double m_grad_slew_rate
Overall maximum gradient slewrate.
Definition: Parameters.h:110
double m_delta_kz
Sequence k-space resolution in z direction.
Definition: Parameters.h:107
Module super class! ABC for all Objects in the sequence framework.
Definition: Module.h:41
mode
Definition: Declarations.h:112
double m_delta_ky
Sequence k-space resolution in y direction.
Definition: Parameters.h:106
double m_delta_z
Sequence image resolution in z direction.
Definition: Parameters.h:99
void SetDefaults()
Set default parameters.
Definition: Parameters.cpp:48
double m_te
Sequence TE.
Definition: Parameters.h:84
bool Prepare(const PrepareMode mode=PREP_INIT)
Definition: Parameters.cpp:69
Implementation of JEMRIS Module.
double m_grad_max_ampl
Overall maximum gradient amplitude.
Definition: Parameters.h:111
unsigned int m_iNx
Sequence image size in x direction.
Definition: Parameters.h:93
static Parameters * instance()
Get the single instance of the World parameters.
Definition: Parameters.cpp:36
double m_ti
Sequence TI.
Definition: Parameters.h:86
double m_fov_z
Sequence FOV in z direction.
Definition: Parameters.h:91
double m_kmax_x
Sequence maximum k-value in x direction.
Definition: Parameters.h:101
Parameters * Clone() const
Clone.
Definition: Parameters.h:56
double m_fov_x
Sequence FOV in x direction.
Definition: Parameters.h:89
unsigned int m_iNz
Sequence image size in z direction.
Definition: Parameters.h:95

-- last change 17.06.2016 | Tony Stoecker | Imprint --