JEMRIS  2.8.1
open-source MRI simulations
TrajectoryInterface.h
Go to the documentation of this file.
1 
8 /*
9  * JEMRIS Copyright (C)
10  * 2006-2015 Tony Stoecker
11  * 2007-2015 Kaveh Vahedipour
12  * 2009-2015 Daniel Pflugfelder
13  *
14  *
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 2 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28  */
29 
30 #ifndef TRAJECTORYINTERFACE_H_
31 #define TRAJECTORYINTERFACE_H_
32 
33 #include <string>
34 #include <vector>
35 #include <iostream>
36 #include <cstdlib>
37 #include <fstream>
38 #include <cmath>
39 
40 #include "World.h"
41 
42 using namespace std;
43 
49 public:
51  virtual ~TrajectoryInterface();
52 
53  /*
54  * checks if data available; then call GetValueDerived:
55  */
56  void GetValue(double time, double *value) ;
57 
61  virtual void GetValueDerived(double time, double *value) =0;
62 
66  virtual void LoadFile(string filename) =0;
67 
68  virtual void UpdateTrajectory(bool init=false){};
69 
70 protected:
75  int GetLowerIndex(double time);
76 
77  int m_LastHuntIndex;
78 
79  vector<double> m_time;
80 
81 };
82 
83 #endif /* TRAJECTORYINTERFACE_H_ */
pure virtual base class for all Trajectories
Definition: TrajectoryInterface.h:48
Implementation of JEMRIS World.

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