JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
TrajectoryFlow.h
Go to the documentation of this file.
1//MODIF
10/*
11 * JEMRIS Copyright (C)
12 * 2006-2013 Tony Stoecker
13 * 2007-2013 Kaveh Vahedipour
14 * 2009-2013 Daniel Pflugfelder
15 *
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 */
31
32#ifndef TRAJECTORYFLOW_H_
33#define TRAJECTORYFLOW_H_
34
35#include "TrajectoryInterface.h"
36
41public:
43 virtual ~TrajectoryFlow();
44
45 virtual void GetValueDerived(double time, double *value) ;
46
47 virtual void LoadFile(string filename) ;
48
49/* void setCurrentTraj(long currentTraj);// { m_currentSpinIndex=currentTraj; };
50
51 long getCurrentTraj();// { return m_currentSpinIndex; };
52
53 void setLoop(double loopDuration, long loopTrajNumber);// { m_trajLoopNumber=loopTrajNumber; m_trajLoopDuration=loopDuration; };*/
54
55private:
56//MODIF
57 void LoadTrajectoriesHDF5(string filename);
58
59 void LoadTrajectoriesASCII(string filename);
60
61 void GetPosition(double time, double &trans_x, double &trans_y, double &trans_z, long traj_number);
62
63 int GetLowerIndex(double t, vector<double> timeArray, int LastHuntIndex);
64
65 int m_LastHuntIndexActivation;
66
67 long m_TotalTrajNumber;
68
69 vector< pair< vector<double> , vector<bool> > > m_activation_full;
70
71 vector<double> m_activation_time;
72
73 vector<bool> m_activation_state;
74
75 vector< vector<float> > m_trans_x_full,m_trans_y_full,m_trans_z_full;
76
77 vector<float> m_trans_x,m_trans_y,m_trans_z;
78 //vector<double> m_rot_x,m_rot_y,m_rot_z;
79
80
81 //bool btx, bty, btz, brx, bry, brz; /* flags==true: there is data!=0 on this axis */
82
83 //float m_rot_origin_x, m_rot_origin_y, m_rot_origin_z; /* point araound which to rotate; default: origin */
84//MODIF***
85};
86
87#endif /* TRAJECTORYFLOW_H_ */
88//MODIF***
Implementation of JEMRIS TrajectoryInterface.
Flow Trajectory.
Definition TrajectoryFlow.h:40
virtual void GetValueDerived(double time, double *value)
retrieve value at given time-point
Definition TrajectoryFlow.cpp:508
virtual void LoadFile(string filename)
load trajectory from file
Definition TrajectoryFlow.cpp:64
pure virtual base class for all Trajectories
Definition TrajectoryInterface.h:48

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