JEMRIS  2.8.1
open-source MRI simulations
ConstantGradPulse.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 CONSTANTGRADPULSE_H_
28 #define CONSTANTGRADPULSE_H_
29 
30 #include "GradPulse.h"
31 
35 class ConstantGradPulse : public GradPulse {
36 
37 
38 public:
39 
44 
49 
54 
58  inline ConstantGradPulse* Clone() const {return (new ConstantGradPulse(*this));};
59 
63  virtual bool Prepare (const PrepareMode mode);
64 
68  virtual double GetGradient (double const time);
69 
70  protected:
71 
77  virtual string GetInfo ();
78 
79  double m_amplitude;
81 };
82 
83 #endif /*PE_TRAPGRADPULSE_H_*/
virtual string GetInfo()
Get informations on this analytic gradient.
Definition: ConstantGradPulse.cpp:67
virtual bool Prepare(const PrepareMode mode)
Definition: ConstantGradPulse.cpp:36
double m_amplitude
Definition: ConstantGradPulse.h:79
virtual double GetGradient(double const time)
Definition: ConstantGradPulse.cpp:60
mode
Definition: Declarations.h:112
Implementation of JEMRIS GradPulse.
ConstantGradPulse()
Default constructor.
Definition: ConstantGradPulse.h:43
Gradient with constant amplitude.
Definition: ConstantGradPulse.h:35
~ConstantGradPulse()
Default destructor.
Definition: ConstantGradPulse.h:53
Base class and prototype for all gradient pulses.
Definition: GradPulse.h:36
ConstantGradPulse * Clone() const
Definition: ConstantGradPulse.h:58

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