JEMRIS  2.8.1
open-source MRI simulations
AnalyticGradPulse.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 ANALYTICGRADPULSE_H_
28 #define ANALYTICGRADPULSE_H_
29 
30 #include "GradPulse.h"
31 #include "AnalyticPulseShape.h"
32 
36 class AnalyticGradPulse : public GradPulse {
37 
38 
39 public:
40 
45 
50 
55 
59  inline AnalyticGradPulse* Clone() const {return (new AnalyticGradPulse(*this));};
60 
64  virtual bool Prepare (const PrepareMode mode);
65 
69  virtual double GetGradient (double const time) {return m_pulse_shape.GetShape(time); };
70 
74  //virtual void SetTPOIs() { m_pulse_shape.SetTPOIs(); } ;
75 
76 
77  protected:
78 
84  virtual string GetInfo ();
85 
88 };
89 
90 #endif /*PE_TRAPGRADPULSE_H_*/
~AnalyticGradPulse()
Default destructor.
Definition: AnalyticGradPulse.h:54
double GetShape(double const time)
get the shape value at current time
Definition: AnalyticPulseShape.cpp:46
AnalyticGradPulse()
Default constructor.
Definition: AnalyticGradPulse.h:44
prepare and GiNaC evaluation of analytic pulse shapes
Definition: AnalyticPulseShape.h:36
Gradient with analytic shape.
Definition: AnalyticGradPulse.h:36
AnalyticPulseShape m_pulse_shape
Definition: AnalyticGradPulse.h:86
mode
Definition: Declarations.h:112
Implementation of JEMRIS GradPulse.
virtual string GetInfo()
Get informations on this analytic gradient.
Definition: AnalyticGradPulse.cpp:66
Base class and prototype for all gradient pulses.
Definition: GradPulse.h:36
AnalyticGradPulse * Clone() const
Definition: AnalyticGradPulse.h:59
virtual double GetGradient(double const time)
Definition: AnalyticGradPulse.h:69
virtual bool Prepare(const PrepareMode mode)
Definition: AnalyticGradPulse.cpp:37
Implementation of JEMRIS AnalyticPulseShape.

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