Geant4  10.00.p02
DicomIntersectVolume Class Reference

Manages intersections of DICOM files with volumes. More...

#include <DicomIntersectVolume.hh>

+ Inheritance diagram for DicomIntersectVolume:
+ Collaboration diagram for DicomIntersectVolume:

Public Member Functions

 DicomIntersectVolume ()
 
 ~DicomIntersectVolume ()
 
virtual void SetNewValue (G4UIcommand *command, G4String newValues)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 

Private Member Functions

void BuildUserSolid (std::vector< G4String > params)
 
void BuildG4Solid (std::vector< G4String > params)
 
G4PhantomParameterisationGetPhantomParam (G4bool bMustExist)
 
G4bool IsPhantomVolume (G4VPhysicalVolume *pv)
 
std::vector< G4VPhysicalVolume * > GetPhysicalVolumes (const G4String &name, bool exists, G4int nVols)
 
std::vector< G4LogicalVolume * > GetLogicalVolumes (const G4String &name, bool exists, G4int nVols)
 
std::vector< G4StringGetWordsInString (const G4String &stemp)
 

Private Attributes

G4UIcmdWithAStringfUserVolumeCmd
 
G4UIcmdWithAStringfG4VolumeCmd
 
G4VSolidfSolid
 
std::ofstream fout
 
G4ThreeVector fPhantomMinusCorner
 
G4boolfVoxelIsInside
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 

Detailed Description

Manages intersections of DICOM files with volumes.

Definition at line 50 of file DicomIntersectVolume.hh.

Constructor & Destructor Documentation

DicomIntersectVolume::DicomIntersectVolume ( )

Definition at line 49 of file DicomIntersectVolume.cc.

References G4UIcommand::AvailableForStates(), fG4VolumeCmd, fUserVolumeCmd, G4State_Idle, G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

+ Here is the call graph for this function:

DicomIntersectVolume::~DicomIntersectVolume ( )

Definition at line 74 of file DicomIntersectVolume.cc.

References fG4VolumeCmd, and fUserVolumeCmd.

Member Function Documentation

void DicomIntersectVolume::BuildG4Solid ( std::vector< G4String params)
private

Definition at line 276 of file DicomIntersectVolume.cc.

References fSolid, and GetLogicalVolumes().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DicomIntersectVolume::BuildUserSolid ( std::vector< G4String params)
private

Definition at line 263 of file DicomIntersectVolume.cc.

References G4tgbVolume::FindOrConstructG4Solid(), and fSolid.

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< G4LogicalVolume * > DicomIntersectVolume::GetLogicalVolumes ( const G4String name,
bool  exists,
G4int  nVols 
)
private

Definition at line 388 of file DicomIntersectVolume.cc.

References G4UIcommand::ConvertToString(), FatalErrorInArgument, G4Exception(), G4LogicalVolumeStore::GetInstance(), and JustWarning.

Referenced by BuildG4Solid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4PhantomParameterisation * DicomIntersectVolume::GetPhantomParam ( G4bool  bMustExist)
private

Definition at line 283 of file DicomIntersectVolume.cc.

References FatalErrorInArgument, G4Exception(), G4PhysicalVolumeStore::GetInstance(), G4PVParameterised::GetParameterisation(), and IsPhantomVolume().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< G4VPhysicalVolume * > DicomIntersectVolume::GetPhysicalVolumes ( const G4String name,
bool  exists,
G4int  nVols 
)
private

Definition at line 312 of file DicomIntersectVolume.cc.

References G4UIcommand::ConvertToInt(), G4UIcommand::ConvertToString(), FatalErrorInArgument, G4cerr, G4endl, G4Exception(), G4PhysicalVolumeStore::GetInstance(), and name.

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector< G4String > DicomIntersectVolume::GetWordsInString ( const G4String stemp)
private

Definition at line 434 of file DicomIntersectVolume.cc.

References FatalException, and G4Exception().

Referenced by SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool DicomIntersectVolume::IsPhantomVolume ( G4VPhysicalVolume pv)
private

Definition at line 371 of file DicomIntersectVolume.cc.

References FALSE, G4VPhysicalVolume::GetRegularStructureId(), G4VPhysicalVolume::GetReplicationData(), kParameterised, kReplica, TRUE, and width.

Referenced by GetPhantomParam().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4UIcmdWithAString* DicomIntersectVolume::fG4VolumeCmd
private
std::ofstream DicomIntersectVolume::fout
private

Definition at line 77 of file DicomIntersectVolume.hh.

Referenced by SetNewValue().

G4ThreeVector DicomIntersectVolume::fPhantomMinusCorner
private

Definition at line 79 of file DicomIntersectVolume.hh.

G4VSolid* DicomIntersectVolume::fSolid
private

Definition at line 75 of file DicomIntersectVolume.hh.

Referenced by BuildG4Solid(), BuildUserSolid(), and SetNewValue().

G4UIcmdWithAString* DicomIntersectVolume::fUserVolumeCmd
private
G4bool* DicomIntersectVolume::fVoxelIsInside
private

Definition at line 81 of file DicomIntersectVolume.hh.

Referenced by SetNewValue().


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