JEMRIS 2.9.1
open-source MRI simulations
Loading...
Searching...
No Matches
TrapGradPulse.h
Go to the documentation of this file.
1
5/*
6 * JEMRIS Copyright (C)
7 * 2006-2023 Tony Stoecker
8 * 2007-2018 Kaveh Vahedipour
9 * 2009-2019 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
36class TrapGradPulse : public GradPulse {
37
38 public:
39
44
49
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;
117 double m_ft;
118 double m_fa;
119 double m_du;
120 double m_ar;
122 double m_amplitude;
125 double m_slope_up;
126 double m_slope_dn;
128};
129
130#endif /*TRAPGRADPULSE_*/
mode
Definition: Declarations.h:112
Implementation of JEMRIS GradPulse.
Base class and prototype for all gradient pulses.
Definition: GradPulse.h:36
Prototype of a trapezoidal gradient pulse (e.g. for cartesian k-space imaging)
Definition: TrapGradPulse.h:36
virtual void SetTPOIs()
Definition: TrapGradPulse.cpp:320
double m_flat_top_time
Definition: TrapGradPulse.h:108
bool m_has_flat_top_time
Definition: TrapGradPulse.h:111
double m_time_to_ramp_dn
Definition: TrapGradPulse.h:127
virtual string GetInfo()
Definition: TrapGradPulse.cpp:372
TrapGradPulse * Clone() const
Definition: TrapGradPulse.cpp:77
virtual double GetGradient(double const time)
Definition: TrapGradPulse.cpp:295
~TrapGradPulse()
Definition: TrapGradPulse.cpp:74
double m_slope_up
Definition: TrapGradPulse.h:125
double m_fa
Definition: TrapGradPulse.h:118
bool m_has_area
Definition: TrapGradPulse.h:114
double m_slope_dn
Definition: TrapGradPulse.h:126
double m_ramp_dn_time
Definition: TrapGradPulse.h:124
double m_du
Definition: TrapGradPulse.h:119
double m_ramp_up_time
Definition: TrapGradPulse.h:123
double m_flat_top_area
Definition: TrapGradPulse.h:107
double m_asym_sr
Definition: TrapGradPulse.h:109
double m_ft
Definition: TrapGradPulse.h:117
virtual bool Prepare(PrepareMode mode)
Definition: TrapGradPulse.cpp:81
bool SetShape(bool verbose=false)
Set the shape of the trapezoidal gradient.
Definition: TrapGradPulse.cpp:159
void SetTrapezoid()
Set the shape of the trapezoid in minimal possible time.
Definition: TrapGradPulse.cpp:226
virtual void GenerateEvents(std::vector< Event * > &events)
Definition: TrapGradPulse.cpp:389
double m_amplitude
Definition: TrapGradPulse.h:122
TrapGradPulse()
Definition: TrapGradPulse.cpp:52
double m_ar
Definition: TrapGradPulse.h:120
bool m_has_flat_top_area
Definition: TrapGradPulse.h:112
bool m_has_rise_time
Definition: TrapGradPulse.h:115
bool m_has_duration
Definition: TrapGradPulse.h:113

-- last change 03.10.2023 | Tony Stoecker | Imprint | Data Protection --