Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhysicalVolumeModel::G4PhysicalVolumeNodeID Class Reference

#include <G4PhysicalVolumeModel.hh>

Public Member Functions

 G4PhysicalVolumeNodeID (G4VPhysicalVolume *pPV=0, G4int iCopyNo=0, G4int depth=0, const G4Transform3D &transform=G4Transform3D(), G4bool drawn=true)
 
G4VPhysicalVolumeGetPhysicalVolume () const
 
G4int GetCopyNo () const
 
G4int GetNonCulledDepth () const
 
const G4Transform3DGetTransform () const
 
G4bool GetDrawn () const
 
void SetPhysicalVolume (G4VPhysicalVolume *v)
 
void SetCopyNo (G4int n)
 
void SetNonCulledDepth (G4int d)
 
void SetTransform (const G4Transform3D &t)
 
void SetDrawn (G4bool b)
 
G4bool operator< (const G4PhysicalVolumeNodeID &right) const
 
G4bool operator!= (const G4PhysicalVolumeNodeID &right) const
 
G4bool operator== (const G4PhysicalVolumeNodeID &right) const
 

Detailed Description

Definition at line 91 of file G4PhysicalVolumeModel.hh.

Constructor & Destructor Documentation

◆ G4PhysicalVolumeNodeID()

G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::G4PhysicalVolumeNodeID ( G4VPhysicalVolume * pPV = 0,
G4int iCopyNo = 0,
G4int depth = 0,
const G4Transform3D & transform = G4Transform3D(),
G4bool drawn = true )
inline

Definition at line 93 of file G4PhysicalVolumeModel.hh.

98 :
99 fpPV(pPV),
100 fCopyNo(iCopyNo),
101 fNonCulledDepth(depth),
102 fTransform(transform),
103 fDrawn(drawn) {}

Member Function Documentation

◆ GetCopyNo()

G4int G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetCopyNo ( ) const
inline

Definition at line 105 of file G4PhysicalVolumeModel.hh.

105{return fCopyNo;}

Referenced by G4Qt3DSceneHandler::CreateNewNode().

◆ GetDrawn()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetDrawn ( ) const
inline

Definition at line 108 of file G4PhysicalVolumeModel.hh.

108{return fDrawn;}

◆ GetNonCulledDepth()

G4int G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetNonCulledDepth ( ) const
inline

Definition at line 106 of file G4PhysicalVolumeModel.hh.

106{return fNonCulledDepth;}

◆ GetPhysicalVolume()

G4VPhysicalVolume * G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetPhysicalVolume ( ) const
inline

Definition at line 104 of file G4PhysicalVolumeModel.hh.

104{return fpPV;}

Referenced by G4Qt3DSceneHandler::CreateNewNode().

◆ GetTransform()

const G4Transform3D & G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::GetTransform ( ) const
inline

Definition at line 107 of file G4PhysicalVolumeModel.hh.

107{return fTransform;}

◆ operator!=()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator!= ( const G4PhysicalVolumeNodeID & right) const

Definition at line 1059 of file G4PhysicalVolumeModel.cc.

1061{
1062 if (fpPV != right.fpPV ||
1063 fCopyNo != right.fCopyNo ||
1064 fNonCulledDepth != right.fNonCulledDepth ||
1065 fTransform != right.fTransform ||
1066 fDrawn != right.fDrawn) return true;
1067 return false;
1068}

Referenced by operator==().

◆ operator<()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator< ( const G4PhysicalVolumeNodeID & right) const

Definition at line 1047 of file G4PhysicalVolumeModel.cc.

1049{
1050 if (fpPV < right.fpPV) return true;
1051 if (fpPV == right.fpPV) {
1052 if (fCopyNo < right.fCopyNo) return true;
1053 if (fCopyNo == right.fCopyNo)
1054 return fNonCulledDepth < right.fNonCulledDepth;
1055 }
1056 return false;
1057}

◆ operator==()

G4bool G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::operator== ( const G4PhysicalVolumeNodeID & right) const
inline

Definition at line 116 of file G4PhysicalVolumeModel.hh.

116 {
117 return !operator!= (right);
118 }
G4bool operator!=(const G4PhysicalVolumeNodeID &right) const

◆ SetCopyNo()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetCopyNo ( G4int n)
inline

Definition at line 110 of file G4PhysicalVolumeModel.hh.

110{fCopyNo = n;}

◆ SetDrawn()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetDrawn ( G4bool b)
inline

Definition at line 113 of file G4PhysicalVolumeModel.hh.

113{fDrawn = b;}

◆ SetNonCulledDepth()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetNonCulledDepth ( G4int d)
inline

Definition at line 111 of file G4PhysicalVolumeModel.hh.

111{fNonCulledDepth = d;}

◆ SetPhysicalVolume()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetPhysicalVolume ( G4VPhysicalVolume * v)
inline

Definition at line 109 of file G4PhysicalVolumeModel.hh.

109{fpPV = v;}

◆ SetTransform()

void G4PhysicalVolumeModel::G4PhysicalVolumeNodeID::SetTransform ( const G4Transform3D & t)
inline

Definition at line 112 of file G4PhysicalVolumeModel.hh.

112{fTransform = t;}

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