JEMRIS  2.8.1
open-source MRI simulations
TrapGradPulse.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 _TRAPGRADPULSE_H
28 #define _TRAPGRADPULSE_H
29 
30 #include <cmath>
31 
32 #include "GradPulse.h"
33 
35 
36 class TrapGradPulse : public GradPulse, public TxRxPhase {
37 
38  public:
39 
43  TrapGradPulse();
44 
49 
53  ~TrapGradPulse ();
54 
58  TrapGradPulse* Clone () const;
59 
65  virtual bool Prepare (PrepareMode mode);
66 
70  virtual double GetGradient (double const time);
71 
81  bool SetShape (bool verbose = false);
82 
87  void SetTrapezoid ();
88 
92  virtual void SetTPOIs ();
93 
97  virtual void GenerateEvents(std::vector<Event*> &events);
98 
99  protected:
105  virtual string GetInfo ();
106 
109  double m_asym_sr;
114  bool m_has_area;
117  double m_ft;
118  double m_fa;
119  double m_du;
120  double m_ar;
122  double m_amplitude;
123  double m_ramp_up_time;
124  double m_ramp_dn_time;
125  double m_slope_up;
126  double m_slope_dn;
128 };
129 
130 #endif /*TRAPGRADPULSE_*/
double m_slope_up
Definition: TrapGradPulse.h:125
double m_du
Definition: TrapGradPulse.h:119
virtual string GetInfo()
Definition: TrapGradPulse.cpp:373
TrapGradPulse * Clone() const
Definition: TrapGradPulse.cpp:77
double m_ar
Definition: TrapGradPulse.h:120
bool m_has_area
Definition: TrapGradPulse.h:114
virtual double GetGradient(double const time)
Definition: TrapGradPulse.cpp:295
virtual void GenerateEvents(std::vector< Event * > &events)
Definition: TrapGradPulse.cpp:390
Prototype of a trapezoidal gradient pulse (e.g. for cartesian k-space imaging)
Definition: TrapGradPulse.h:36
double m_ramp_dn_time
Definition: TrapGradPulse.h:124
double m_asym_sr
Definition: TrapGradPulse.h:109
bool m_has_flat_top_time
Definition: TrapGradPulse.h:111
double m_ramp_up_time
Definition: TrapGradPulse.h:123
~TrapGradPulse()
Definition: TrapGradPulse.cpp:74
void SetTrapezoid()
Set the shape of the trapezoid in minimal possible time.
Definition: TrapGradPulse.cpp:226
bool m_has_rise_time
Definition: TrapGradPulse.h:115
bool m_has_duration
Definition: TrapGradPulse.h:113
mode
Definition: Declarations.h:112
Implementation of JEMRIS GradPulse.
double m_time_to_ramp_dn
Definition: TrapGradPulse.h:127
double m_amplitude
Definition: TrapGradPulse.h:122
double m_slope_dn
Definition: TrapGradPulse.h:126
bool SetShape(bool verbose=false)
Set the shape of the trapezoidal gradient.
Definition: TrapGradPulse.cpp:159
TrapGradPulse()
Definition: TrapGradPulse.cpp:52
virtual bool Prepare(PrepareMode mode)
Definition: TrapGradPulse.cpp:81
bool m_has_flat_top_area
Definition: TrapGradPulse.h:112
double m_flat_top_time
Definition: TrapGradPulse.h:108
Base class and prototype for all gradient pulses.
Definition: GradPulse.h:36
Phase physics super class.
Definition: TxRxPhase.h:36
double m_fa
Definition: TrapGradPulse.h:118
double m_flat_top_area
Definition: TrapGradPulse.h:107
double m_ft
Definition: TrapGradPulse.h:117
virtual void SetTPOIs()
Definition: TrapGradPulse.cpp:320

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