Geant4  10.00.p03
G4NavigationLevelRep.hh
Go to the documentation of this file.
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 //
27 // $Id: G4NavigationLevelRep.hh 67974 2013-03-13 10:17:37Z gcosmo $
28 //
29 // class G4NavigationLevelRep
30 //
31 // Class description:
32 //
33 // A data representation class, used to hold the data for a single level
34 // of the Navigation history tree.
35 //
36 // This is the body of a handle/body pair of classes, that implement
37 // reference counting for NavigationLevels.
38 // The corresponding handle class is G4NavigationLevel
39 
40 // History:
41 //
42 // - 1 October 1997, J.Apostolakis: initial version.
43 // ----------------------------------------------------------------------
44 #ifndef G4NAVIGATIONLEVELREP_HH
45 #define G4NAVIGATIONLEVELREP_HH
46 
47 #include "G4Types.hh"
48 
49 #include "G4AffineTransform.hh"
50 #include "G4VPhysicalVolume.hh"
51 #include "G4Allocator.hh"
52 
53 #include "geomwdefs.hh"
54 
56 {
57 
58  public: // with description
59 
61  const G4AffineTransform& newT,
62  EVolume newVolTp,
63  G4int newRepNo= -1 );
64 
66  const G4AffineTransform& levelAbove,
67  const G4AffineTransform& relativeCurrent,
68  EVolume newVolTp,
69  G4int newRepNo= -1 );
70  // As the previous constructor, but instead of giving Transform, give
71  // the AffineTransform to the level above and the current level's
72  // Transform relative to that.
73 
76 
78 
80 
82 
83  inline const G4AffineTransform* GetTransformPtr() const ; // New
84  inline const G4AffineTransform& GetTransform() const ; // Old
85 
86  inline EVolume GetVolumeType() const ;
87  inline G4int GetReplicaNo() const ;
88 
89  inline void AddAReference();
90  inline G4bool RemoveAReference();
91  // Take care of the reference counts.
92 
93  inline void *operator new(size_t);
94  // Override "new" to use "G4Allocator".
95  inline void operator delete(void *aTrack);
96  // Override "delete" to use "G4Allocator".
97 
98  private:
99 
101  // Compounded global->local transformation (takes a point in the
102  // global reference system to the system of the volume at this level)
103 
105  // Physical volume ptrs, for this level's volume
106 
109  // Volume `type'
110 
112 
113 };
114 
115 #include "G4NavigationLevelRep.icc"
116 
117 #endif
const G4AffineTransform & GetTransform() const
G4AffineTransform sTransform
G4VPhysicalVolume * sPhysicalVolumePtr
int G4int
Definition: G4Types.hh:78
const G4AffineTransform * GetTransformPtr() const
EVolume GetVolumeType() const
bool G4bool
Definition: G4Types.hh:79
G4int GetReplicaNo() const
EVolume
Definition: geomdefs.hh:68
G4NavigationLevelRep & operator=(const G4NavigationLevelRep &right)
G4VPhysicalVolume * GetPhysicalVolume()