JEMRIS  2.8.1
open-source MRI simulations
MicrostructureKissingFiber.h
1 /*
2  * MicrostructureKissingFiber.h
3  *
4  * Created on: Jun 2, 2010
5  * Author: dpflug
6  */
7 
8 
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 MICROSTRUCTUREKISSINGFIBER_H_
32 #define MICROSTRUCTUREKISSINGFIBER_H_
33 
34 #include "Microstructure.h"
46 public:
48  virtual ~MicrostructureKissingFiber();
49 
50  void SetFiberDirections(triple dir1, triple dir2);
51  void SetRadius(double r_a, double r_m=0);
52  void SetKissing(bool flag){m_is_kissing=flag;};
53  void SetD(double D,int index) {m_D[index]=D;};
54  virtual double GetD(int LastId=-1,int shellid=-1);
55  virtual void IndexObject(triple pos, int &LastId ,int &shellid);
56 
57  void DumpStructure();
58 private:
59  vector<neuron> m_axons; /* container holding the neurons. For now: use only two. */
60  double m_D[2]; /* diffusion constants per layer */
61  bool m_is_kissing; /* defines if kissing or crossing fibers are used. */
62 
63  double GetPointDistance(const triple test, const neuron &tmp);
64 
65 };
66 
67 #endif /* MICROSTRUCTUREKISSINGFIBER_H_ */
virtual void IndexObject(triple pos, int &LastId, int &shellid)
Definition: MicrostructureKissingFiber.cpp:60
Microsructure base class.
Definition: Microstructure.h:55
Microstructure consisting of kissing fibers.
Definition: MicrostructureKissingFiber.h:45
Cartesians positions for diffusion trajectory of a spin.
Definition: TrajectoryDiffusion.h:46
Definition of a neuron/axon for the Microstructure.
Definition: Microstructure.h:39
virtual double GetD(int LastId=-1, int shellid=-1)
Definition: MicrostructureKissingFiber.cpp:98

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