JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
AnalyticPulseShape.h
Go to the documentation of this file.
1
5/*
6 * JEMRIS Copyright (C)
7 * 2006-2025 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 _ANALYTICPULSESHAPE_H
28#define _ANALYTICPULSESHAPE_H
29
30#include "Pulse.h"
31
37
38 //friends using this class
39 friend class AnalyticGradPulse;
40 friend class AnalyticRFPulse;
41 friend class EmptyPulse;
42 friend class EddyPulse;
43
44 private:
49
54
58 void SetPulse(Pulse* p){m_pulse=p;};
59
66 double GetShape (double const time) ;
67
73 void PrepareInit(bool verbose);
74
81 bool PrepareAnalytic(bool verbose);
82
89 double GetAnalyticIntegral(bool verbose) { return m_analytic_integral; };
90
94 //void SetTPOIs();
95
96 static double GetPhase (Module* mod, double time );
97
99 double m_phase;
103 //unsigned int m_more_tpois; /**< For analytic evaluation of GetValue */
106 double m_constant[20];
109};
110
111#endif /*_ANALYTICPULSESHAPE_H*/
Implementation of JEMRIS Pulse.
Gradient with analytic shape.
Definition AnalyticGradPulse.h:36
prepare and GiNaC evaluation of analytic pulse shapes
Definition AnalyticPulseShape.h:36
void SetPulse(Pulse *p)
set the pulse owning this
Definition AnalyticPulseShape.h:58
double m_phase
current phase
Definition AnalyticPulseShape.h:99
static double GetPhase(Module *mod, double time)
Definition AnalyticPulseShape.cpp:75
double GetShape(double const time)
get the shape value at current time
Definition AnalyticPulseShape.cpp:46
double m_analytic_time
Definition AnalyticPulseShape.h:105
bool m_prepared
true, if prepared
Definition AnalyticPulseShape.h:101
double GetAnalyticIntegral(bool verbose)
analytic GiNaC calculation of the integral of this pulse shape
Definition AnalyticPulseShape.h:89
double m_analytic_integral
Definition AnalyticPulseShape.h:107
void PrepareInit(bool verbose)
intitial prepare of the attributes (needs to be called before Prototype::Prepare)
Definition AnalyticPulseShape.cpp:83
Pulse * m_pulse
my pulse
Definition AnalyticPulseShape.h:98
bool PrepareAnalytic(bool verbose)
GiNaC prepare of the attributes (needs to ba called after Prototype::Prepare)
Definition AnalyticPulseShape.cpp:106
AnalyticPulseShape()
constructor
Definition AnalyticPulseShape.cpp:32
bool m_rfpulse
true, if my pulse is an RF pulse
Definition AnalyticPulseShape.h:100
double m_analytic_value
Definition AnalyticPulseShape.h:104
~AnalyticPulseShape()
Default destructor.
Definition AnalyticPulseShape.h:48
double m_constant[20]
Definition AnalyticPulseShape.h:106
Analytic RF pulse.
Definition AnalyticRFPulse.h:37
Prototype of an Eddy pulse.
Definition EddyPulse.h:35
Prototype of an empty pulse.
Definition EmptyPulse.h:36
Module super class! ABC for all Objects in the sequence framework.
Definition Module.h:41
Pulse Super Class. ABC for all RF and gradient pulses.
Definition Pulse.h:41

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