Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
NeuronLoadDataFile.hh
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // This example is provided by the Geant4-DNA collaboration
27 // Any report or published results obtained using the Geant4-DNA software
28 // shall cite the following Geant4-DNA collaboration publication:
29 // Med. Phys. 37 (2010) 4692-4708
30 // and papers
31 // M. Batmunkh et al. J Radiat Res Appl Sci 8 (2015) 498-507
32 // O. Belov et al. Physica Medica 32 (2016) 1510-1520
33 // The Geant4-DNA web site is available at http://geant4-dna.org
34 //
35 // -------------------------------------------------------------------
36 // November 2016
37 // -------------------------------------------------------------------
38 //
39 // $Id:
40 //
43 
44 #ifndef NeuronLoadDataFile_H
45 #define NeuronLoadDataFile_H 1
46 
47 #include "G4ThreeVector.hh"
48 #include "G4RotationMatrix.hh"
49 #include "G4VSolid.hh"
50 #include "G4Material.hh"
51 #include "G4VisAttributes.hh"
52 #include "G4Colour.hh"
53 #include "G4SystemOfUnits.hh"
54 // Geant4 Constructive Solid Geometry (CSG)
55 #include "G4VPVParameterisation.hh"
56 #include "G4Box.hh" // bounding volume
57 #include "G4Tubs.hh" // axon, dendrite compartments
58 #include "G4Sphere.hh" // soma compartments
59 #include "G4Ellipsoid.hh" // soma compartments
60 #include "G4Trd.hh"
61 #include "G4Trap.hh"
62 #include "G4Cons.hh" // stubby spine, filopodia
63 #include "G4EllipticalTube.hh"
64 #include "G4EllipticalCone.hh"
65 #include "G4Orb.hh" // mushroom spine
66 #include "G4Torus.hh"
67 #include "G4Para.hh"
68 #include "G4Polycone.hh"
69 #include "G4Polyhedra.hh"
70 #include "G4Hype.hh" // thin spine neck
71 #include "G4Tet.hh"
72 #include "G4TwistedBox.hh"
73 #include "G4TwistedTrap.hh"
74 #include "G4TwistedTrd.hh"
75 #include "G4TwistedTubs.hh"
76 
77 //class NeuronLoadMessenger;
78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79 
81 
82 // default - G4PVPlacement volume
83 // if use G4PVParameterised volume,
84 // please enable following G4VPVParameterisation class!
85 //: public G4VPVParameterisation
86 
87 {
88  public:
90  virtual
92 
93  void SingleNeuronSWCfile(const G4String& filename);
94  void NeuralNetworkDATAfile(const G4String& filename);
95 
96 // position, rotation of solids
97  void ComputeTransformation (const G4int copyNo,
98  G4VPhysicalVolume* physVol) const;
99 // Solid options: sphere or cylinder ...
100  //G4VSolid* ComputeSolid (const G4int copyNo,
101  // G4VPhysicalVolume* physiVol);
102 // and ... for solids!
103  void ComputeDimensions(G4Tubs& cylinderComp, const G4int copyNo,
104  const G4VPhysicalVolume*) const ;
106  const G4VPhysicalVolume*) const {}
108  const G4VPhysicalVolume*) const {}
110  const G4VPhysicalVolume*) const {}
112  const G4VPhysicalVolume*) const {}
114  const G4int,
115  const G4VPhysicalVolume *) const {}
117  const G4int,
118  const G4VPhysicalVolume *) const {}
120  const G4int,
121  const G4VPhysicalVolume *) const {}
123  const G4int,
124  const G4VPhysicalVolume *) const {}
126  const G4int,
127  const G4VPhysicalVolume *) const {}
129  const G4int,
130  const G4VPhysicalVolume *) const {}
132  const G4int,
133  const G4VPhysicalVolume *) const {}
135  const G4int,
136  const G4VPhysicalVolume *) const {}
137 
138  G4double GetwidthB () {return fwidthB;}
140  G4double GetdepthB () {return fdepthB;}
142  G4double GetshiftX () {return fshiftX;}
143  G4double GetshiftY () {return fshiftY;}
144  G4double GetshiftZ () {return fshiftZ;}
145  G4double GetTypeN (G4int i) {return fTypeN[i];}
146 
152 
162 
171 
180 
182 
192 
198 
199  private:
200 
204 
210 
213  //G4int * ftypeC;
219 
220  G4double fshiftX, fshiftY, fshiftZ; // shift in oder to center VOLUME!
224  G4double fdiagnlLength; // diagonal and diameter
225 
230 
237  G4ThreeVector * fPosDendcomp ; // VOXEL COORDINATES OF DENDRITES
238  G4RotationMatrix * fRotDendcomp ; // RotationMatrix with Inverse
239 
245  G4ThreeVector * fPosAxoncomp ; // VOXEL COORDINATES OF AXON
247 
253  G4ThreeVector * fPosSpinecomp ; // VOXEL COORDINATES OF SPINE
255 
260  //G4double fMassNeuronTot ;
261  G4ThreeVector * fPosNeuroncomp ; // VOXEL COORDINATES OF Neuron
263 
273 
279 
280  //G4Sphere* fsphereComp;
281  //G4Tubs* fcylinderConp;
282 
283  //NeuronLoadMessenger * fpNeuronMessenger;
284 
285 };
286 
287 #endif
288 
289 
void ComputeDimensions(G4Trd &, const G4int, const G4VPhysicalVolume *) const
G4RotationMatrix GetRotSpinecomp(G4int i)
G4ThreeVector * fPosDendcomp
G4double GetRadSpinecomp(G4int i)
G4VisAttributes * fSpineColour
void ComputeDimensions(G4Box &, const G4int, const G4VPhysicalVolume *) const
G4double GetDistADendSoma(G4int i)
Definition: G4Tubs.hh:85
G4double GetTypeN(G4int i)
void ComputeDimensions(G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
void ComputeDimensions(G4Cons &, const G4int, const G4VPhysicalVolume *) const
G4RotationMatrix GetRotAxoncomp(G4int i)
G4double GetHeightAxoncomp(G4int i)
void ComputeDimensions(G4Torus &, const G4int, const G4VPhysicalVolume *) const
void SingleNeuronSWCfile(const G4String &filename)
G4double GetMassSomacomp(G4int i)
void ComputeDimensions(G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
G4double GetMassDendcomp(G4int i)
G4RotationMatrix * fRotSpinecomp
void ComputeDimensions(G4Trap &, const G4int, const G4VPhysicalVolume *) const
void ComputeDimensions(G4Tubs &cylinderComp, const G4int copyNo, const G4VPhysicalVolume *) const
G4VisAttributes * fAxonColour
double G4double
Definition: G4Types.hh:76
G4ThreeVector GetPosSpinecomp(G4int i)
Definition: G4Cons.hh:83
G4VisAttributes GetSpineColour()
G4RotationMatrix * fRotNeuroncomp
G4double GetHeightSpinecomp(G4int i)
void ComputeDimensions(G4Hype &, const G4int, const G4VPhysicalVolume *) const
Definition: G4Box.hh:64
G4VisAttributes * fSomaColour
void ComputeDimensions(G4Para &, const G4int, const G4VPhysicalVolume *) const
G4String fNeuronFileNameSWC
NEURON filename.
Definition: G4Orb.hh:62
G4ThreeVector * fPosNeuroncomp
void ComputeTransformation(const G4int copyNo, G4VPhysicalVolume *physVol) const
G4RotationMatrix * fRotDendcomp
void NeuralNetworkDATAfile(const G4String &filename)
G4double GetDistSpinesoma(G4int i)
G4double GetDistBDendSoma(G4int i)
G4ThreeVector GetPosDendcomp(G4int i)
G4RotationMatrix * fRotAxoncomp
G4double GetRadDendcomp(G4int i)
G4double GetRadSomacomp(G4int i)
G4VisAttributes GetAxonColour()
int G4int
Definition: G4Types.hh:78
G4double GetDistAxonsoma(G4int i)
Definition: G4Trd.hh:72
G4VisAttributes GetDendColour()
void ComputeDimensions(G4Sphere &, const G4int, const G4VPhysicalVolume *) const
void ComputeDimensions(G4Orb &, const G4int, const G4VPhysicalVolume *) const
G4double GetRadAxoncomp(G4int i)
G4ThreeVector * fPosSomacomp
void ComputeDimensions(G4Polycone &, const G4int, const G4VPhysicalVolume *) const
G4ThreeVector GetPosAxoncomp(G4int i)
G4double GetMassSpinecomp(G4int i)
G4double GetMassAxoncomp(G4int i)
G4ThreeVector * fPosSpinecomp
G4VisAttributes * fNeuronColour
G4RotationMatrix GetRotDendcomp(G4int i)
Definition: G4Para.hh:86
G4VisAttributes * fDendColour
G4VisAttributes GetSomaColour()
G4ThreeVector GetPosSomacomp(G4int i)
Definition: G4Hype.hh:76
G4VisAttributes GetNeuronColour()
G4ThreeVector * fPosAxoncomp
G4double GetHeightDendcomp(G4int i)