Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
geometry
volumes
include
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$
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
class
G4NavigationLevelRep
54
{
55
56
public
:
// with description
57
58
G4NavigationLevelRep
(
G4VPhysicalVolume
* newPtrPhysVol,
59
const
G4AffineTransform
& newT,
60
EVolume
newVolTp,
61
G4int
newRepNo= -1 );
62
63
G4NavigationLevelRep
(
G4VPhysicalVolume
* newPtrPhysVol,
64
const
G4AffineTransform
& levelAbove,
65
const
G4AffineTransform
& relativeCurrent,
66
EVolume
newVolTp,
67
G4int
newRepNo= -1 );
68
// As the previous constructor, but instead of giving Transform, give
69
// the AffineTransform to the level above and the current level's
70
// Transform relative to that.
71
72
G4NavigationLevelRep
();
73
G4NavigationLevelRep
(
G4NavigationLevelRep
& );
74
75
~G4NavigationLevelRep
();
76
77
G4NavigationLevelRep
&
operator=
(
const
G4NavigationLevelRep
&
right
);
78
79
inline
G4VPhysicalVolume
*
GetPhysicalVolume
();
80
81
inline
const
G4AffineTransform
*
GetTransformPtr
()
const
;
// New
82
inline
const
G4AffineTransform
&
GetTransform
()
const
;
// Old
83
84
inline
EVolume
GetVolumeType
()
const
;
85
inline
G4int
GetReplicaNo
()
const
;
86
87
inline
void
AddAReference
();
88
inline
G4bool
RemoveAReference
();
89
// Take care of the reference counts.
90
91
inline
void
*
operator
new
(size_t);
92
// Override "new" to use "G4Allocator".
93
inline
void
operator
delete
(
void
*aTrack);
94
// Override "delete" to use "G4Allocator".
95
96
private
:
97
98
G4AffineTransform
sTransform;
99
// Compounded global->local transformation (takes a point in the
100
// global reference system to the system of the volume at this level)
101
102
G4VPhysicalVolume
* sPhysicalVolumePtr;
103
// Physical volume ptrs, for this level's volume
104
105
G4int
sReplicaNo;
106
EVolume
sVolumeType;
107
// Volume `type'
108
109
G4int
fCountRef;
110
111
};
112
113
#include "G4NavigationLevelRep.icc"
114
115
#endif
Generated on Sat May 25 2013 14:33:17 for Geant4 by
1.8.4