JEMRIS 2.9.1
open-source MRI simulations
Loading...
Searching...
No Matches
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
TrajectoryInterface Class Referenceabstract

pure virtual base class for all Trajectories More...

#include <TrajectoryInterface.h>

+ Inheritance diagram for TrajectoryInterface:
+ Collaboration diagram for TrajectoryInterface:

Public Member Functions

void GetValue (double time, double *value)
 
virtual void GetValueDerived (double time, double *value)=0
 retrieve value at given time-point More...
 
virtual void LoadFile (string filename)=0
 load trajectory from file More...
 
virtual void UpdateTrajectory (bool init=false)
 
bool spinActivation (long currentSpin)
 get spin current state : true=active, false=unactive
 
void setCurrentTraj (long currentTraj)
 set trajectory number associated to current spin
 
long getCurrentTraj ()
 get trajectory number associated to current spin
 
void setLoop (double loopDuration, long loopTrajNumber)
 set loop parameters for periodic flow
 

Protected Member Functions

int GetLowerIndex (double time)
 find data index for interpolation get lower index for given timepoint using hunt search algorithm.
 

Protected Attributes

int m_LastHuntIndex
 
vector< double > m_time
 
vector< vector< double > > m_time_full
 
long m_currentSpinIndex
 
long m_trajLoopNumber
 
double m_trajLoopDuration
 
bool m_spinActive
 

Detailed Description

pure virtual base class for all Trajectories

Member Function Documentation

◆ GetValue()

void TrajectoryInterface::GetValue ( double  time,
double *  value 
)
inline

checks if data available; then call GetValueDerived:

+ Here is the call graph for this function:

◆ GetValueDerived()

virtual void TrajectoryInterface::GetValueDerived ( double  time,
double *  value 
)
pure virtual

retrieve value at given time-point

Implemented in TrajectoryT2s, TrajectoryDiffusion, TrajectoryEmpty, TrajectoryFlow, TrajectoryMotion, TrajectoryRespiration, and Trajectory1D.

+ Here is the caller graph for this function:

◆ LoadFile()

virtual void TrajectoryInterface::LoadFile ( string  filename)
pure virtual

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

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