JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
TxRxPhase.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 TXRXPHASE_H_
28#define TXRXPHASE_H_
29
30
31//declare modules
32class Module;
33
35
36class TxRxPhase {
37
38public:
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_*/
Module super class! ABC for all Objects in the sequence framework.
Definition Module.h:41
Phase physics super class.
Definition TxRxPhase.h:36
void SetFrequency(double val)
Set constant frequency for linear phase terms.
Definition TxRxPhase.h:92
virtual ~TxRxPhase()
Default destructor.
Definition TxRxPhase.h:48
void SetPhaseLock(bool bval)
Set phase lock of this pulse.
Definition TxRxPhase.h:72
bool m_phase_lock
Phase lock of this phase event.
Definition TxRxPhase.h:111
double GetInitialPhase()
Get initial phase of this pulse.
Definition TxRxPhase.h:78
static double getLinearPhase(Module *mod, double time)
A general purpose linear additive phase term.
Definition TxRxPhase.cpp:40
void SetInitialPhase(double val)
Get phase of this pulse.
Definition TxRxPhase.h:60
double m_frequency
A constant frequency to set linear phase terms.
Definition TxRxPhase.h:112
double m_initial_phase
Initial Phase of this phase event.
Definition TxRxPhase.h:110
double GetFrequency()
Get constant frequency for linear phase terms.
Definition TxRxPhase.h:85
bool GetPhaseLock()
Get phase lock of this pulse.
Definition TxRxPhase.h:65
TxRxPhase()
Constructor.
Definition TxRxPhase.cpp:31

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