46 #ifndef DicomHandler_h
47 #define DicomHandler_h 1
92 template <
class Type>
void GetValue(
char *, Type &);
97 const int DATABUFFSIZE;
98 const int LINEBUFFSIZE;
99 const int FILENAMESIZE;
101 void ReadCalibration();
102 void GetInformation(
G4int &,
char *);
104 void ReadMaterialIndices( std::ifstream& finData);
106 void StoreData(std::ofstream& foutG4DCM);
109 void read_undefined_nested(FILE *);
110 void read_undefined_item(FILE *);
117 G4int fMaxPixelValue, fMinPixelValue;
119 G4double fPixelSpacingX, fPixelSpacingY;
123 G4int fRescaleIntercept, fRescaleSlope;
125 G4bool fLittleEndian, fImplicitEndian;
126 short fPixelRepresentation;
129 std::map<G4float,G4String> fMaterialIndices;
134 bool readCalibration;
static DicomHandler * Instance()
G4int ReadFile(FILE *, char *)
G4int ReadData(FILE *, char *)