Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NavigationLevel Class Reference

#include <G4NavigationLevel.hh>

Public Member Functions

 G4NavigationLevel (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &newT, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevel (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &levelAbove, const G4AffineTransform &relativeCurrent, EVolume newVolTp, G4int newRepNo=-1)
 
 G4NavigationLevel ()
 
 G4NavigationLevel (const G4NavigationLevel &)
 
 ~G4NavigationLevel ()
 
G4NavigationLeveloperator= (const G4NavigationLevel &right)
 
G4VPhysicalVolumeGetPhysicalVolume () const
 
const G4AffineTransformGetTransformPtr () const
 
const G4AffineTransformGetTransform () const
 
EVolume GetVolumeType () const
 
G4int GetReplicaNo () const
 
const G4AffineTransformGetPtrTransform () const
 
void * operator new (size_t)
 
void operator delete (void *aLevel)
 
void * operator new (size_t, void *)
 
void operator delete (void *ptr, void *)
 

Detailed Description

Definition at line 52 of file G4NavigationLevel.hh.

Constructor & Destructor Documentation

◆ G4NavigationLevel() [1/4]

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

Definition at line 37 of file G4NavigationLevel.cc.

41{
42 fLevelRep = new G4NavigationLevelRep( pPhysVol, afTransform, volTp, repNo );
43}

◆ G4NavigationLevel() [2/4]

G4NavigationLevel::G4NavigationLevel ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform levelAbove,
const G4AffineTransform relativeCurrent,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 45 of file G4NavigationLevel.cc.

50{
51 fLevelRep = new G4NavigationLevelRep( pPhysVol,
52 levelAbove,
53 relativeCurrent,
54 volTp,
55 repNo );
56}

◆ G4NavigationLevel() [3/4]

G4NavigationLevel::G4NavigationLevel ( )

Definition at line 58 of file G4NavigationLevel.cc.

59{
60 fLevelRep = new G4NavigationLevelRep();
61}

◆ G4NavigationLevel() [4/4]

G4NavigationLevel::G4NavigationLevel ( const G4NavigationLevel right)

Definition at line 63 of file G4NavigationLevel.cc.

64 : fLevelRep( right.fLevelRep )
65{
66 fLevelRep->AddAReference();
67}

◆ ~G4NavigationLevel()

G4NavigationLevel::~G4NavigationLevel ( )

Definition at line 69 of file G4NavigationLevel.cc.

70{
71 if( fLevelRep->RemoveAReference() ) { delete fLevelRep; }
72}

Member Function Documentation

◆ GetPhysicalVolume()

G4VPhysicalVolume * G4NavigationLevel::GetPhysicalVolume ( ) const
inline

◆ GetPtrTransform()

const G4AffineTransform * G4NavigationLevel::GetPtrTransform ( ) const
inline

◆ GetReplicaNo()

G4int G4NavigationLevel::GetReplicaNo ( ) const
inline

◆ GetTransform()

const G4AffineTransform & G4NavigationLevel::GetTransform ( ) const
inline

◆ GetTransformPtr()

const G4AffineTransform * G4NavigationLevel::GetTransformPtr ( ) const
inline

◆ GetVolumeType()

EVolume G4NavigationLevel::GetVolumeType ( ) const
inline

◆ operator delete() [1/2]

void G4NavigationLevel::operator delete ( void *  aLevel)
inline

◆ operator delete() [2/2]

void G4NavigationLevel::operator delete ( void *  ptr,
void *   
)
inline

◆ operator new() [1/2]

void * G4NavigationLevel::operator new ( size_t  )
inline

◆ operator new() [2/2]

void * G4NavigationLevel::operator new ( size_t  ,
void *   
)
inline

◆ operator=()

G4NavigationLevel & G4NavigationLevel::operator= ( const G4NavigationLevel right)

Definition at line 74 of file G4NavigationLevel.cc.

75{
76 if ( &right != this )
77 {
78 right.fLevelRep->AddAReference();
79 if( fLevelRep->RemoveAReference() ) { delete fLevelRep; }
80 fLevelRep = right.fLevelRep;
81 }
82 return *this;
83}

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