Files
geant4/examples/extended/medical/DICOM/include/DicomConfiguration.hh
T
2016-06-09 10:28:22 +02:00

99 lines
3.2 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// The code was written by :
// *Louis Archambault louis.archambault@phy.ulaval.ca,
// *Luc Beaulieu beaulieu@phy.ulaval.ca
// +Vincent Hubert-Tremblay at tigre.2@sympatico.ca
//
//
// *Centre Hospitalier Universitaire de Quebec (CHUQ),
// Hotel-Dieu de Quebec, departement de Radio-oncologie
// 11 cote du palais. Quebec, QC, Canada, G1R 2J6
// tel (418) 525-4444 #6720
// fax (418) 691 5268
//
// + Université Laval, Québec (QC) Canada
//*******************************************************
//
//
// DicomConfiguration.hh :
// - Handling of the header of *.g4 files
// - Reading <Data.dat> file
#ifndef DicomConfiguration_h
#define DicomConfiguration_h 1
#include "globals.hh"
#include <vector>
class DicomConfiguration
{
public:
DicomConfiguration() { }
~DicomConfiguration() { }
// This function reads <Data.dat>, return true or false
// if successfull or not
G4bool ReadDataFile();
G4int ReadG4File(G4String g4File);
G4int GetCompressionValue() {return compressionValue;}
G4int GetTotalNumberOfFile() {return totalNumberOfFile;}
std::vector<G4String> GetListOfFile() {return listOfFile;}
G4int GetTotalRows() {return totalRows;}
G4int GetTotalColumns() {return totalColumns;}
G4double GetXPixelSpacing() {return xPixelSpacing;}
G4double GetYPixelSpacing() {return yPixelSpacing;}
G4double GetSliceThickness() {return sliceTickness;}
G4double GetSliceLocation() {return sliceLocation;}
G4int IsCompressionUsed() {return compressionUsed;}
G4double GetDensityValue(G4int i);
private:
G4int compressionValue;
G4int totalNumberOfFile;
std::vector<G4String> listOfFile;
G4int totalRows;
G4int totalColumns;
G4double xPixelSpacing;
G4double yPixelSpacing;
G4double sliceTickness;
G4double sliceLocation;
G4int compressionUsed;
std::vector<G4double> densityValue;
};
#endif