JEMRIS  2.8.1
open-source MRI simulations
TxRxPhase.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 TXRXPHASE_H_
28 #define TXRXPHASE_H_
29 
30 
31 //declare modules
32 class Module;
33 
35 
36 class TxRxPhase {
37 
38 public:
39 
43  TxRxPhase();
44 
48  virtual ~TxRxPhase() {};
49 
53  //virtual double GetPhase (double time) { return 0.0; };
54 
60  inline void SetInitialPhase (double val ) {m_initial_phase = val;};
61 
65  inline bool GetPhaseLock () {return m_phase_lock;};
66 
72  inline void SetPhaseLock (bool bval) {m_phase_lock = bval;};
73 
74 
78  inline double GetInitialPhase () {return m_initial_phase;};
79 
85  inline double GetFrequency () {return m_frequency;};
86 
92  inline void SetFrequency (double val) { m_frequency = val;};
93 
94 
105  static double getLinearPhase (Module* mod, double time );
106 
107 
108  protected:
109 
112  double m_frequency;
114 };
115 
116 #endif /*TXRXPHASE_H_*/
void SetInitialPhase(double val)
Get phase of this pulse.
Definition: TxRxPhase.h:60
bool m_phase_lock
Phase lock of this phase event.
Definition: TxRxPhase.h:111
static double getLinearPhase(Module *mod, double time)
A general purpose linear additive phase term.
Definition: TxRxPhase.cpp:40
TxRxPhase()
Constructor.
Definition: TxRxPhase.cpp:31
Module super class! ABC for all Objects in the sequence framework.
Definition: Module.h:41
void SetPhaseLock(bool bval)
Set phase lock of this pulse.
Definition: TxRxPhase.h:72
bool GetPhaseLock()
Get phase lock of this pulse.
Definition: TxRxPhase.h:65
double m_frequency
A constant frequency to set linear phase terms.
Definition: TxRxPhase.h:112
double GetInitialPhase()
Get initial phase of this pulse.
Definition: TxRxPhase.h:78
virtual ~TxRxPhase()
Default destructor.
Definition: TxRxPhase.h:48
double m_initial_phase
Initial Phase of this phase event.
Definition: TxRxPhase.h:110
Phase physics super class.
Definition: TxRxPhase.h:36
void SetFrequency(double val)
Set constant frequency for linear phase terms.
Definition: TxRxPhase.h:92
double GetFrequency()
Get constant frequency for linear phase terms.
Definition: TxRxPhase.h:85

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