Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NavigationLevelRep Class Reference

#include <G4NavigationLevelRep.hh>

Public Member Functions

 G4NavigationLevelRep (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &newT, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevelRep (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &levelAbove, const G4AffineTransform &relativeCurrent, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevelRep ()
 
 G4NavigationLevelRep (G4NavigationLevelRep &)
 
 ~G4NavigationLevelRep ()
 
G4NavigationLevelRepoperator= (const G4NavigationLevelRep &right)
 
G4VPhysicalVolumeGetPhysicalVolume ()
 
const G4AffineTransformGetTransformPtr () const
 
const G4AffineTransformGetTransform () const
 
EVolume GetVolumeType () const
 
G4int GetReplicaNo () const
 
void AddAReference ()
 
G4bool RemoveAReference ()
 
voidoperator new (size_t)
 
void operator delete (void *aTrack)
 

Detailed Description

Definition at line 55 of file G4NavigationLevelRep.hh.

Constructor & Destructor Documentation

G4NavigationLevelRep::G4NavigationLevelRep ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform newT,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 40 of file G4NavigationLevelRep.cc.

44  : sTransform(afTransform),
45  sPhysicalVolumePtr(pPhysVol),
46  sReplicaNo(repNo),
47  sVolumeType(volTp),
48  fCountRef(1)
49 {
50 }
G4NavigationLevelRep::G4NavigationLevelRep ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform levelAbove,
const G4AffineTransform relativeCurrent,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 61 of file G4NavigationLevelRep.cc.

References G4AffineTransform::InverseProduct().

66  : sPhysicalVolumePtr(pPhysVol),
67  sReplicaNo(repNo),
68  sVolumeType(volTp),
69  fCountRef(1)
70 {
71  sTransform.InverseProduct( levelAbove, relativeCurrent );
72 }
G4AffineTransform & InverseProduct(const G4AffineTransform &tf1, const G4AffineTransform &tf2)
G4NavigationLevelRep::G4NavigationLevelRep ( )

Definition at line 52 of file G4NavigationLevelRep.cc.

53  : sTransform(),
54  sPhysicalVolumePtr(0),
55  sReplicaNo(-1),
56  sVolumeType(kReplica),
57  fCountRef(1)
58 {
59 }
G4NavigationLevelRep::G4NavigationLevelRep ( G4NavigationLevelRep right)

Definition at line 74 of file G4NavigationLevelRep.cc.

75  : sTransform(right.sTransform),
76  sPhysicalVolumePtr(right.sPhysicalVolumePtr),
77  sReplicaNo(right.sReplicaNo),
78  sVolumeType(right.sVolumeType),
79  fCountRef(1)
80 {
81 }
G4NavigationLevelRep::~G4NavigationLevelRep ( )

Definition at line 86 of file G4NavigationLevelRep.cc.

References FatalException, and G4Exception().

87 {
88 #ifdef DEBUG_NAVIG_LEVEL
89  if(fCountRef>0)
90  {
91  G4Exception("G4NavigationLevelRep::~G4NavigationLevelRep()",
92  "GeomVol0003", FatalException,
93  "Deletion of data-level object with positive reference count.");
94  }
95 #endif
96 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Member Function Documentation

void G4NavigationLevelRep::AddAReference ( )
inline
G4VPhysicalVolume* G4NavigationLevelRep::GetPhysicalVolume ( )
inline
G4int G4NavigationLevelRep::GetReplicaNo ( ) const
inline
const G4AffineTransform& G4NavigationLevelRep::GetTransform ( ) const
inline
const G4AffineTransform* G4NavigationLevelRep::GetTransformPtr ( ) const
inline
EVolume G4NavigationLevelRep::GetVolumeType ( ) const
inline
void G4NavigationLevelRep::operator delete ( void aTrack)
inline
void* G4NavigationLevelRep::operator new ( size_t  )
inline
G4NavigationLevelRep & G4NavigationLevelRep::operator= ( const G4NavigationLevelRep right)

Definition at line 102 of file G4NavigationLevelRep.cc.

103 {
104  if ( &right != this )
105  {
106  sTransform = right.sTransform;
107  sPhysicalVolumePtr = right.sPhysicalVolumePtr;
108  sVolumeType = right.sVolumeType;
109  sReplicaNo = right.sReplicaNo;
110  fCountRef = right.fCountRef;
111  }
112  return *this;
113 }
G4bool G4NavigationLevelRep::RemoveAReference ( )
inline

The documentation for this class was generated from the following files: