Warning, file /geant4/examples/extended/medical/DICOM/G4DicomReader/src/DicomBeamBlock.cc was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #include "DicomBeamBlock.hh"
0027
0028 #include "dcmtk/dcmrt/seq/drtcos.h"
0029
0030 #include "G4UIcommand.hh"
0031
0032
0033
0034 DicomBeamBlock::DicomBeamBlock(DRTBlockSequenceInRTBeamsModule::Item bblItem)
0035 {
0036 OFString fstr;
0037 Sint32 fint;
0038 Float64 ffloat;
0039 OFVector<Float64> fvfloat;
0040 OFCondition cond;
0041 G4cout << " DicomBeamBlock::DicomBeamBlock " << G4endl;
0042
0043 bblItem.getBlockName(fstr);
0044 bblItem.getBlockType(fstr);
0045 bblItem.getBlockNumber(fint);
0046 theBlockNumber = fint;
0047 G4cout << " Number " << fint << G4endl;
0048 bblItem.getBlockTrayID(fstr);
0049 bblItem.getMaterialID(fstr);
0050 bblItem.getBlockNumberOfPoints(fint);
0051 bblItem.getBlockData(fvfloat);
0052
0053 bblItem.getSourceToBlockTrayDistance(ffloat);
0054 theSourceToBlockTrayDistance = ffloat;
0055
0056 bblItem.getBlockMountingPosition(fstr);
0057 theBlockMountingPosition = fstr;
0058
0059 bblItem.getBlockDivergence(fstr);
0060 bblItem.getBlockThickness(ffloat);
0061 bblItem.getBlockTransmission(ffloat);
0062 }
0063
0064
0065 void DicomBeamBlock::Print(std::ostream&) {}
0066
0067
0068 void DicomBeamBlock::DumpToFile(std::ofstream& fout)
0069 {
0070 std::string name = ":P BLOCK_" + G4UIcommand::ConvertToString(theBlockNumber) + "_";
0071
0072 fout << ":PS BLOCK_POS " << theBlockMountingPosition << G4endl;
0073
0074 fout << name << "SourceToBlockTrayDistance " << theSourceToBlockTrayDistance << G4endl;
0075 }