JEMRIS  2.8.1
open-source MRI simulations
List of all members | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
ExternalPulseData Class Reference

Read and retrieve data of external pulse shapes. More...

#include <ExternalPulseData.h>

+ Collaboration diagram for ExternalPulseData:

Private Member Functions

 ~ExternalPulseData ()
 Default destructor.
 
 ExternalPulseData ()
 constructor
 
void SetPulse (Pulse *p)
 set the pulse owning this
 
double GetData (double const time)
 get the data More...
 
double Interp (double const t, vector< double > const &v)
 linear interpolation More...
 
void SetInterp (bool b)
 linear interpolation More...
 
bool ReadPulseShape (string fname, bool verbose)
 Read the pulse shape data. More...
 
void SetTPOIs ()
 

Static Private Member Functions

static double GetPhase (Module *mod, double time)
 

Private Attributes

Pulsem_pulse
 My pulse.
 
string m_fname
 HDF5 file with time points and amps [and phases].
 
vector< double > m_times
 My sample time points.
 
vector< double > m_magnitudes
 My corresponding amplitudes.
 
vector< double > m_phases
 Vector of phases.
 
double m_phase
 current phase
 
bool m_interp
 if true, linear interpolation is applied
 

Friends

class ExternalGradPulse
 
class ExternalRFPulse
 

Detailed Description

Read and retrieve data of external pulse shapes.

Member Function Documentation

double ExternalPulseData::GetData ( double const  time)
private

get the data

Parameters
time
Returns
data (Gradient value or RF magnitude)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double ExternalPulseData::Interp ( double const  t,
vector< double > const &  v 
)
private

linear interpolation

Parameters
t
Returns
interpolated data

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ExternalPulseData::ReadPulseShape ( string  fname,
bool  verbose 
)
private

Read the pulse shape data.

Parameters
fnamename of binary file

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExternalPulseData::SetInterp ( bool  b)
inlineprivate

linear interpolation

Parameters
t
Returns
interpolated data

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ExternalPulseData::SetTPOIs ( )
private
See also
Pulse::SetTPOIs

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files:

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