JEMRIS  2.8.2
open-source MRI simulations
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TrajectoryFlow Class Reference

Flow Trajectory. More...

#include <TrajectoryFlow.h>

+ Inheritance diagram for TrajectoryFlow:
+ Collaboration diagram for TrajectoryFlow:

Public Member Functions

virtual void GetValueDerived (double time, double *value)
 retrieve value at given time-point
 
virtual void LoadFile (string filename)
 load trajectory from file
 
- Public Member Functions inherited from TrajectoryInterface
void GetValue (double time, double *value)
 
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
 

Private Member Functions

void LoadTrajectoriesHDF5 (string filename)
 
void LoadTrajectoriesASCII (string filename)
 
void GetPosition (double time, double &trans_x, double &trans_y, double &trans_z, long traj_number)
 
int GetLowerIndex (double t, vector< double > timeArray, int LastHuntIndex)
 

Private Attributes

int m_LastHuntIndexActivation
 
long m_TotalTrajNumber
 
vector< pair< vector< double >, vector< bool > > > m_activation_full
 
vector< double > m_activation_time
 
vector< bool > m_activation_state
 
vector< vector< float > > m_trans_x_full
 
vector< vector< float > > m_trans_y_full
 
vector< vector< float > > m_trans_z_full
 
vector< float > m_trans_x
 
vector< float > m_trans_y
 
vector< float > m_trans_z
 

Additional Inherited Members

- Protected Member Functions inherited from TrajectoryInterface
int GetLowerIndex (double time)
 find data index for interpolation get lower index for given timepoint using hunt search algorithm.
 
- Protected Attributes inherited from TrajectoryInterface
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

Flow Trajectory.


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

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