30#ifndef TRAJECTORYINTERFACE_H_
31#define TRAJECTORYINTERFACE_H_
58 if (m_time.size()>0 || m_time_full.size()>0)
72 virtual void UpdateTrajectory(
bool init=
false){};
93 void setLoop(
double loopDuration,
long loopTrajNumber) { m_trajLoopNumber=loopTrajNumber; m_trajLoopDuration=loopDuration; };
105 vector<double> m_time;
107 vector< vector<double> > m_time_full;
109 long m_currentSpinIndex;
111 long m_trajLoopNumber;
113 double m_trajLoopDuration;
Implementation of JEMRIS World.
pure virtual base class for all Trajectories
Definition TrajectoryInterface.h:48
virtual void GetValueDerived(double time, double *value)=0
retrieve value at given time-point
int GetLowerIndex(double time)
find data index for interpolation get lower index for given timepoint using hunt search algorithm.
Definition TrajectoryInterface.cpp:48
bool spinActivation(long currentSpin)
get spin current state : true=active, false=unactive
Definition TrajectoryInterface.h:78
void GetValue(double time, double *value)
Definition TrajectoryInterface.h:57
void setLoop(double loopDuration, long loopTrajNumber)
set loop parameters for periodic flow
Definition TrajectoryInterface.h:93
void setCurrentTraj(long currentTraj)
set trajectory number associated to current spin
Definition TrajectoryInterface.h:83
virtual void LoadFile(string filename)=0
load trajectory from file
long getCurrentTraj()
get trajectory number associated to current spin
Definition TrajectoryInterface.h:88