JEMRIS  2.8.1
open-source MRI simulations
TrajectoryMotion.h
Go to the documentation of this file.
1 
9 /*
10  * JEMRIS Copyright (C)
11  * 2006-2015 Tony Stoecker
12  * 2007-2015 Kaveh Vahedipour
13  * 2009-2015 Daniel Pflugfelder
14  *
15  *
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 2 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program; if not, write to the Free Software
28  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29  */
30 
31 #ifndef TRAJECTORYMOTION_H_
32 #define TRAJECTORYMOTION_H_
33 
34 #include "TrajectoryInterface.h"
35 
40 public:
42  virtual ~TrajectoryMotion();
43 
44 
45  virtual void GetValueDerived(double time, double *value) ;
46 
47  virtual void LoadFile(string filename) ;
48 
49 private:
50  void GetPosition(double time, double &trans_x, double &trans_y, double &trans_z, double &rot_x, double &rot_y, double &rot_z);
51  vector<double> m_trans_x,m_trans_y,m_trans_z;
52  vector<double> m_rot_x,m_rot_y,m_rot_z;
53 
54  bool btx, bty, btz, brx, bry, brz; /* flags==true: there is data!=0 on this axis */
55 
56  double m_rot_origin_x, m_rot_origin_y, m_rot_origin_z; /* point araound which to rotate; default: origin */
57 
58 
59 };
60 
61 #endif /* TRAJECTORYMOTION_H_ */
Implementation of JEMRIS TrajectoryInterface.
virtual void GetValueDerived(double time, double *value)
retrieve value at given time-point
Definition: TrajectoryMotion.cpp:156
pure virtual base class for all Trajectories
Definition: TrajectoryInterface.h:48
virtual void LoadFile(string filename)
load trajectory from file
Definition: TrajectoryMotion.cpp:55
Motion Trajectory.
Definition: TrajectoryMotion.h:39

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