Geant4 11.1.1
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 970 of file G4PhysicalVolumeModel.cc.

972{
973 if (fpPV != right.fpPV ||
974 fCopyNo != right.fCopyNo ||
975 fNonCulledDepth != right.fNonCulledDepth ||
976 fTransform != right.fTransform ||
977 fDrawn != right.fDrawn) return true;
978 return false;
979}

Referenced by operator==().

◆ operator<()

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

Definition at line 958 of file G4PhysicalVolumeModel.cc.

960{
961 if (fpPV < right.fpPV) return true;
962 if (fpPV == right.fpPV) {
963 if (fCopyNo < right.fCopyNo) return true;
964 if (fCopyNo == right.fCopyNo)
965 return fNonCulledDepth < right.fNonCulledDepth;
966 }
967 return false;
968}

◆ 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: