Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomBeamDeviceRef Class Reference

#include <DicomBeamDeviceRef.hh>

Inheritance diagram for DicomBeamDeviceRef:
Collaboration diagram for DicomBeamDeviceRef:

Public Member Functions

 DicomBeamDeviceRef (DRTBeamLimitingDeviceSequenceInRTBeamsModule::Item bldsItem)
 
 ~DicomBeamDeviceRef ()
 
void SetSourceToBeamLimitingDeviceDistance (Float64 dat)
 
Float64 GetSourceToBeamLimitingDeviceDistance () const
 
void DumpToFile (std::ofstream &out)
 
void Print (std::ostream &out)
 
- Public Member Functions inherited from DicomVBeamDevice
void SetNumberOfLeafJawPairs (Sint32 dat)
 
Sint32 GetNumberOfLeafJawPairs () const
 
void SetType (OFString dat)
 
OFString GetType () const
 
void AddPositionBoundary (Float64 dat)
 
Float64 GetPositionBoundary (size_t ii)
 

Additional Inherited Members

- Protected Member Functions inherited from DicomVBeamDevice
 DicomVBeamDevice ()
 
 ~DicomVBeamDevice ()
 
- Protected Attributes inherited from DicomVBeamDevice
OFString theType
 
Sint32 theNumberOfLeafJawPairs
 
std::vector< Float64 > thePositionBoundaries
 

Detailed Description

Definition at line 31 of file DicomBeamDeviceRef.hh.

Constructor & Destructor Documentation

DicomBeamDeviceRef::DicomBeamDeviceRef ( DRTBeamLimitingDeviceSequenceInRTBeamsModule::Item  bldsItem)

Definition at line 31 of file DicomBeamDeviceRef.cc.

32 {
33  OFString fstr;
34  Sint32 fint;
35  Float64 ffloat;
36  OFVector<Float64> fvfloat;
37 
38  bldsItem.getRTBeamLimitingDeviceType(fstr);
39  G4cout << " " << " RTBeamLimitingDeviceType " << fstr << G4endl;
40  SetType(fstr);
41  bldsItem.getSourceToBeamLimitingDeviceDistance(ffloat);
42  G4cout << " " << " SourceToBeamLimitingDeviceDistance " << ffloat << G4endl;
44  bldsItem.getNumberOfLeafJawPairs(fint);
46  G4cout << " " << " NumberOfLeafJawPairs " << fint << G4endl;
47  bldsItem.getLeafPositionBoundaries(fvfloat);
48  if( fint != 1 ) fint++;
49  for( int ii = 0; ii < fint; ii++ ) {
50  G4cout << " " << ii << " LeafPositionBoundaries " << fvfloat[ii] << G4endl;
51  AddPositionBoundary(fvfloat[ii]);
52  }
53 }
G4GLOB_DLL std::ostream G4cout
void AddPositionBoundary(Float64 dat)
void SetNumberOfLeafJawPairs(Sint32 dat)
void SetType(OFString dat)
#define G4endl
Definition: G4ios.hh:61
void SetSourceToBeamLimitingDeviceDistance(Float64 dat)

Here is the call graph for this function:

DicomBeamDeviceRef::~DicomBeamDeviceRef ( )
inline

Definition at line 35 of file DicomBeamDeviceRef.hh.

35 {};

Member Function Documentation

void DicomBeamDeviceRef::DumpToFile ( std::ofstream &  out)
virtual

Implements DicomVBeamDevice.

Definition at line 56 of file DicomBeamDeviceRef.cc.

57 {
58 
59  fout << ":P " << theType << "_Z " << theSourceToBeamLimitingDeviceDistance << G4endl;
60 
61  /* if( theType == "MLCX" || theType == "MLCY" ) {
62  G4int nLeafs = theNumberOfLeafJawPairs;
63  for( G4int jj = 0; jj < nLeafs; jj++ ){
64  fout << ":P " << theType << "_" + std::to_string(jj+1) + "_CROSS "
65  << thePositionBoundaries[jj] << G4endl;
66  }
67  }*/
68 
69 }
#define G4endl
Definition: G4ios.hh:61
Float64 DicomBeamDeviceRef::GetSourceToBeamLimitingDeviceDistance ( ) const
inline

Definition at line 41 of file DicomBeamDeviceRef.hh.

41  {
42  return theSourceToBeamLimitingDeviceDistance;
43  }
void DicomBeamDeviceRef::Print ( std::ostream &  out)
virtual

Implements DicomVBeamDevice.

Definition at line 72 of file DicomBeamDeviceRef.cc.

73 {
74 
75 }
void DicomBeamDeviceRef::SetSourceToBeamLimitingDeviceDistance ( Float64  dat)
inline

Definition at line 38 of file DicomBeamDeviceRef.hh.

38  {
39  theSourceToBeamLimitingDeviceDistance= dat;
40  }

Here is the caller graph for this function:


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