JEMRIS  2.8.1
open-source MRI simulations
HardRFPulse.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 HARDRFPULSE_H_
28 #define HARDRFPULSE_H_
29 
30 #include "RFPulse.h"
31 
33 
34 class HardRFPulse : public RFPulse {
35 
36 
37  public:
38 
43 
47  HardRFPulse (const HardRFPulse&) {};
48 
52  virtual ~HardRFPulse () {};
53 
57  inline HardRFPulse* Clone() const { return (new HardRFPulse(*this)); }
58 
65  virtual bool Prepare (const PrepareMode mode);
66 
73  inline virtual double GetMagnitude (double time ) { return GetFlipAngle() * PI /(180.0*GetDuration() ); }
74 
75 };
76 
77 #endif /*HARDRFPULSE_H_*/
Implementation of JEMRIS RFPulse.
virtual ~HardRFPulse()
Default destructor.
Definition: HardRFPulse.h:52
double GetDuration()
Definition: Pulse.h:85
mode
Definition: Declarations.h:112
HardRFPulse()
Default constructor.
Definition: HardRFPulse.h:42
HardRFPulse(const HardRFPulse &)
Default copy constructor.
Definition: HardRFPulse.h:47
HardRFPulse * Clone() const
Definition: HardRFPulse.h:57
virtual bool Prepare(const PrepareMode mode)
Prepare.
Definition: HardRFPulse.cpp:30
Prototype for hard radio frequency pulses.
Definition: HardRFPulse.h:34
Super class for all RF pulses.
Definition: RFPulse.h:36
double GetFlipAngle() const
Get the flip angle of this pulse.
Definition: RFPulse.h:86
virtual double GetMagnitude(double time)
Definition: HardRFPulse.h:73

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