Geant4  10.00.p03
G4GMocrenIO Class Reference

#include <G4GMocrenIO.hh>

+ Collaboration diagram for G4GMocrenIO:

Public Member Functions

 G4GMocrenIO ()
 
 ~G4GMocrenIO ()
 
void initialize ()
 
void setFileName (std::string &_filename)
 
void setFileName (char *_filename)
 
std::string & getFileName ()
 
bool storeData (char *_filename)
 
bool storeData ()
 
bool storeData2 (char *_filename)
 
bool storeData2 ()
 
bool storeData3 (char *_filename)
 
bool storeData3 ()
 
bool storeData4 (char *_filename)
 
bool storeData4 ()
 
bool retrieveData (char *_filename)
 
bool retrieveData ()
 
bool retrieveData2 (char *_filename)
 
bool retrieveData2 ()
 
bool retrieveData3 (char *_filename)
 
bool retrieveData3 ()
 
bool retrieveData4 (char *_filename)
 
bool retrieveData4 ()
 
std::string & getID ()
 
void setID ()
 
void setID (std::string &_id)
 
std::string & getVersion ()
 
void setVersion (std::string &_version)
 
void setLittleEndianInput (bool _little)
 
void setLittleEndianOutput (bool _little)
 
std::string & getComment ()
 
void setComment (std::string &_comment)
 
void setVoxelSpacing (float _spacing[3])
 
void getVoxelSpacing (float _spacing[3])
 
int & getNumberOfEvents ()
 
void setNumberOfEvents (int &_numberOfEvents)
 
void addOneEvent ()
 
void setPointerToModalityData (unsigned int &_pointer)
 
unsigned int getPointerToModalityData ()
 
void addPointerToDoseDistData (unsigned int &_pointer)
 
unsigned int getPointerToDoseDistData (int _elem=0)
 
void setPointerToROIData (unsigned int &_pointer)
 
unsigned int getPointerToROIData ()
 
void setPointerToTrackData (unsigned int &_pointer)
 
unsigned int getPointerToTrackData ()
 
void getModalityImageSize (int _size[3])
 
void setModalityImageSize (int _size[3])
 
void getModalityImageVoxelSpacing (float _size[3])
 
void setModalityImageVoxelSpacing (float _size[3])
 
void setModalityImageScale (double &_scale)
 
double getModalityImageScale ()
 
void setModalityImage (short *_image)
 
short * getModalityImage (int _z)
 
void clearModalityImage ()
 
void setModalityImageDensityMap (std::vector< float > &_map)
 
std::vector< float > & getModalityImageDensityMap ()
 
void setModalityImageMinMax (short _minmax[2])
 
void getModalityImageMinMax (short _minmax[2])
 
short getModalityImageMax ()
 
short getModalityImageMin ()
 
void setModalityCenterPosition (float _center[3])
 
void getModalityCenterPosition (float _center[3])
 
std::string getModalityImageUnit ()
 
void setModalityImageUnit (std::string &_unit)
 
short convertDensityToHU (float &_dens)
 
void newDoseDist ()
 
int getNumDoseDist ()
 
std::string getDoseDistUnit (int _num=0)
 
void setDoseDistUnit (std::string &_unit, int _num=0)
 
void getDoseDistSize (int _size[3], int _num=0)
 
void setDoseDistSize (int _size[3], int _num=0)
 
void setDoseDistMinMax (short _minmax[2], int _num=0)
 
void getDoseDistMinMax (short _minmax[2], int _num=0)
 
void setDoseDistMinMax (double _minmax[2], int _num=0)
 
void getDoseDistMinMax (double _minmax[2], int _num=0)
 
void setDoseDistScale (double &_scale, int _num=0)
 
double getDoseDistScale (int _num=0)
 
void setShortDoseDist (short *_image, int _num=0)
 
void getShortDoseDist (short *_data, int _z, int _num=0)
 
void getShortDoseDistMinMax (short _minmax[2], int _num=0)
 
void setDoseDist (double *_image, int _num=0)
 
double * getDoseDist (int _z, int _num=0)
 
bool addDoseDist (std::vector< double * > &_image, int _num=0)
 
void getDoseDistCenterPosition (float _center[3], int _num=0)
 
void setDoseDistCenterPosition (float _center[3], int _num=0)
 
std::string getDoseDistName (int _num=0)
 
void setDoseDistName (std::string _name, int _num=0)
 
void copyDoseDist (std::vector< class GMocrenDataPrimitive< double > > &_dose)
 
bool mergeDoseDist (std::vector< class GMocrenDataPrimitive< double > > &_dose)
 
void clearDoseDistAll ()
 
void newROI ()
 
int getNumROI ()
 
double getROIScale (int _num=0)
 
void setROIScale (double &_scale, int _num=0)
 
short * getROI (int _z, int _num=0)
 
void setROI (short *_image, int _num=0)
 
void getROISize (int _size[3], int _num=0)
 
void setROISize (int _size[3], int _num=0)
 
void getROICenterPosition (float _center[3], int _num=0)
 
void setROICenterPosition (float _center[3], int _num=0)
 
void getROIMinMax (short _minmax[2], int _num=0)
 
void setROIMinMax (short _minmax[2], int _num=0)
 
void clearROIAll ()
 
int getNumTracks ()
 
int getNumTracks4 ()
 
std::vector< float * > & getTracks ()
 
void getTrack (int _num, std::vector< float * > &_steps, std::vector< unsigned char * > &_color)
 
void addTrack (float *_tracks)
 
void setTracks (std::vector< float * > &_tracks)
 
std::vector< unsigned char * > & getTrackColors ()
 
void addTrackColor (unsigned char *_colors)
 
void setTrackColors (std::vector< unsigned char * > &_trackColors)
 
void copyTracks (std::vector< float * > &_tracks, std::vector< unsigned char * > &_colors)
 
void mergeTracks (std::vector< float * > &_tracks, std::vector< unsigned char * > &_colors)
 
void addTrack (std::vector< float * > &_steps, unsigned char _color[3])
 
void notStoredTracks ()
 
void translateTracks (std::vector< float > &_translateo)
 
void clearTracks ()
 
int getNumberOfDetectors ()
 
void addDetector (std::string &_name, std::vector< float * > &_det, unsigned char _color[3])
 
void getDetector (int _num, std::vector< float * > &_edges, std::vector< unsigned char * > &_color, std::string &_detectorName)
 
void translateDetector (std::vector< float > &_translate)
 
void clearDetector ()
 
void setVerboseLevel (int _level)
 
template<typename T >
void convertEndian (char *_val, T &_rval)
 

Public Attributes

bool kTracksWillBeStored
 

Static Public Attributes

static std::string kId
 
static std::string kVersion = "2.0.0"
 
static std::string kFileName = "dose.gdd"
 
static char kLittleEndianInput = true
 
static char kLittleEndianOutput = true
 
static std::string kComment
 
static int kNumberOfEvents = 0
 
static unsigned int kPointerToModalityData = 0
 
static std::vector< unsigned int > kPointerToDoseDistData
 
static unsigned int kPointerToROIData = 0
 
static unsigned int kPointerToTrackData = 0
 
static unsigned int kPointerToDetectorData = 0
 
static float kVoxelSpacing [3] = {0., 0., 0.}
 
static class
GMocrenDataPrimitive< short > 
kModality
 
static std::vector< float > kModalityImageDensityMap
 
static std::string kModalityUnit = "g/cm3 "
 
static std::vector< class
GMocrenDataPrimitive< double > > 
kDose
 
static std::string kDoseUnit = "keV "
 
static std::vector< class
GMocrenDataPrimitive< short > > 
kRoi
 
static std::vector< float * > kSteps
 
static std::vector< unsigned
char * > 
kStepColors
 
static std::vector< class
GMocrenTrack
kTracks
 
static std::vector< class
GMocrenDetector
kDetectors
 
static int kVerbose = 0
 

Protected Member Functions

bool isDoseEmpty ()
 
void calcDoseDistScale ()
 
bool isROIEmpty ()
 
template<typename Type >
void convertEndian (char *, Type &)
 
template<typename T >
void invertByteOrder (char *_val, T &_rval)
 

Private Member Functions

void calcPointers4 ()
 
void calcPointers3 ()
 
void calcPointers2 ()
 

Detailed Description

Definition at line 166 of file G4GMocrenIO.hh.

Constructor & Destructor Documentation

G4GMocrenIO::G4GMocrenIO ( )

Definition at line 402 of file G4GMocrenIO.cc.

G4GMocrenIO::~G4GMocrenIO ( )

Definition at line 408 of file G4GMocrenIO.cc.

Member Function Documentation

void G4GMocrenIO::addDetector ( std::string &  _name,
std::vector< float * > &  _det,
unsigned char  _color[3] 
)

Definition at line 3956 of file G4GMocrenIO.cc.

References GMocrenDetector::Edge::endPoint, kDetectors, GMocrenDetector::setColor(), GMocrenDetector::setDetector(), GMocrenDetector::setName(), and GMocrenDetector::Edge::startPoint.

Referenced by G4GMocrenFileSceneHandler::ExtractDetector(), and retrieveData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::addDoseDist ( std::vector< double * > &  _image,
int  _num = 0 
)

Definition at line 3641 of file G4GMocrenIO.cc.

References getDoseDistSize(), kDose, and z.

+ Here is the call graph for this function:

void G4GMocrenIO::addOneEvent ( )

Definition at line 3150 of file G4GMocrenIO.cc.

References kNumberOfEvents.

void G4GMocrenIO::addPointerToDoseDistData ( unsigned int &  _pointer)

Definition at line 3162 of file G4GMocrenIO.cc.

References kPointerToDoseDistData.

Referenced by calcPointers3(), calcPointers4(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::addTrack ( float *  _tracks)

Definition at line 3849 of file G4GMocrenIO.cc.

References kSteps.

Referenced by G4GMocrenFileSceneHandler::AddPrimitive(), G4GMocrenFileSceneHandler::EndSavingGdd(), mergeTracks(), retrieveData2(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::addTrack ( std::vector< float * > &  _steps,
unsigned char  _color[3] 
)

Definition at line 3899 of file G4GMocrenIO.cc.

References GMocrenTrack::Step::endPoint, kTracks, GMocrenTrack::setColor(), GMocrenTrack::setTrack(), and GMocrenTrack::Step::startPoint.

+ Here is the call graph for this function:

void G4GMocrenIO::addTrackColor ( unsigned char *  _colors)

Definition at line 3858 of file G4GMocrenIO.cc.

References kStepColors.

Referenced by mergeTracks(), and retrieveData3().

+ Here is the caller graph for this function:

void G4GMocrenIO::calcDoseDistScale ( )
protected

Definition at line 3734 of file G4GMocrenIO.cc.

References DOSERANGE, and kDose.

Referenced by storeData2(), storeData3(), and storeData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::calcPointers2 ( )
private

Definition at line 3318 of file G4GMocrenIO.cc.

References getDoseDistSize(), getModalityImageMinMax(), getModalityImageSize(), getNumTracks(), getROISize(), isROIEmpty(), kPointerToDoseDistData, setPointerToModalityData(), setPointerToROIData(), and setPointerToTrackData().

Referenced by storeData2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::calcPointers3 ( )
private

Definition at line 3263 of file G4GMocrenIO.cc.

References addPointerToDoseDistData(), getDoseDistSize(), getModalityImageMinMax(), getModalityImageSize(), getNumDoseDist(), getNumTracks(), getROISize(), isROIEmpty(), kPointerToDoseDistData, setPointerToModalityData(), setPointerToROIData(), and setPointerToTrackData().

Referenced by storeData3().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::calcPointers4 ( )
private

Definition at line 3189 of file G4GMocrenIO.cc.

References addPointerToDoseDistData(), G4cout, G4endl, getDoseDistSize(), getModalityImageMinMax(), getModalityImageSize(), getNumDoseDist(), getROISize(), isROIEmpty(), kDetectors, kPointerToDetectorData, kPointerToDoseDistData, kPointerToTrackData, kTracks, kVerbose, setPointerToModalityData(), setPointerToROIData(), and setPointerToTrackData().

Referenced by storeData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::clearDetector ( )
inline

Definition at line 451 of file G4GMocrenIO.hh.

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::clearDoseDistAll ( )

Definition at line 3713 of file G4GMocrenIO.cc.

References getNumDoseDist(), isDoseEmpty(), and kDose.

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::clearModalityImage ( )

Definition at line 3398 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::clearImage(), and kModality.

+ Here is the call graph for this function:

void G4GMocrenIO::clearROIAll ( )

Definition at line 3819 of file G4GMocrenIO.cc.

References getNumROI(), isROIEmpty(), and kRoi.

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::clearTracks ( )
inline

Definition at line 439 of file G4GMocrenIO.hh.

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the caller graph for this function:

short G4GMocrenIO::convertDensityToHU ( float &  _dens)

Definition at line 3453 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getMinMax(), kModality, and kModalityImageDensityMap.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename Type >
void G4GMocrenIO::convertEndian ( char *  ,
Type &   
)
protected

Referenced by retrieveData2(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

template<typename T >
void G4GMocrenIO::convertEndian ( char *  _val,
T &  _rval 
)

Definition at line 4017 of file G4GMocrenIO.cc.

References kLittleEndianInput, and kLittleEndianOutput.

void G4GMocrenIO::copyDoseDist ( std::vector< class GMocrenDataPrimitive< double > > &  _dose)

Definition at line 3683 of file G4GMocrenIO.cc.

References kDose.

void G4GMocrenIO::copyTracks ( std::vector< float * > &  _tracks,
std::vector< unsigned char * > &  _colors 
)

Definition at line 3867 of file G4GMocrenIO.cc.

References kStepColors, and kSteps.

std::string& G4GMocrenIO::getComment ( )
inline

Definition at line 274 of file G4GMocrenIO.hh.

References kComment.

void G4GMocrenIO::getDetector ( int  _num,
std::vector< float * > &  _edges,
std::vector< unsigned char * > &  _color,
std::string &  _detectorName 
)

Definition at line 3978 of file G4GMocrenIO.cc.

References G4VisManager::errors, FatalException, G4cout, G4endl, G4Exception(), G4VisManager::GetVerbosity(), and kDetectors.

+ Here is the call graph for this function:

double * G4GMocrenIO::getDoseDist ( int  _z,
int  _num = 0 
)

Definition at line 3618 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

+ Here is the call graph for this function:

void G4GMocrenIO::getDoseDistCenterPosition ( float  _center[3],
int  _num = 0 
)

Definition at line 3662 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

Referenced by storeData3(), and storeData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::getDoseDistMinMax ( short  _minmax[2],
int  _num = 0 
)

Definition at line 3519 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

+ Here is the call graph for this function:

void G4GMocrenIO::getDoseDistMinMax ( double  _minmax[2],
int  _num = 0 
)

Definition at line 3534 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

+ Here is the call graph for this function:

std::string G4GMocrenIO::getDoseDistName ( int  _num = 0)

Definition at line 3674 of file G4GMocrenIO.cc.

References isDoseEmpty(), kDose, and name.

Referenced by storeData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double G4GMocrenIO::getDoseDistScale ( int  _num = 0)

Definition at line 3547 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

Referenced by storeData3(), and storeData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::getDoseDistSize ( int  _size[3],
int  _num = 0 
)

Definition at line 3499 of file G4GMocrenIO.cc.

References isDoseEmpty(), and kDose.

Referenced by addDoseDist(), calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string G4GMocrenIO::getDoseDistUnit ( int  _num = 0)

Definition at line 3483 of file G4GMocrenIO.cc.

References kDoseUnit.

std::string& G4GMocrenIO::getFileName ( )
inline

Definition at line 240 of file G4GMocrenIO.hh.

References kFileName.

std::string& G4GMocrenIO::getID ( )
inline

Definition at line 261 of file G4GMocrenIO.hh.

References kId.

void G4GMocrenIO::getModalityCenterPosition ( float  _center[3])

Definition at line 3438 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getCenterPosition(), isROIEmpty(), and kModality.

+ Here is the call graph for this function:

short * G4GMocrenIO::getModalityImage ( int  _z)

Definition at line 3394 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getImage(), and kModality.

+ Here is the call graph for this function:

std::vector< float > & G4GMocrenIO::getModalityImageDensityMap ( )

Definition at line 3406 of file G4GMocrenIO.cc.

References kModalityImageDensityMap.

short G4GMocrenIO::getModalityImageMax ( )

Definition at line 3421 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getMinMax(), and kModality.

+ Here is the call graph for this function:

short G4GMocrenIO::getModalityImageMin ( )

Definition at line 3427 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getMinMax(), and kModality.

+ Here is the call graph for this function:

void G4GMocrenIO::getModalityImageMinMax ( short  _minmax[2])

Definition at line 3415 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getMinMax(), and kModality.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double G4GMocrenIO::getModalityImageScale ( )

Definition at line 3384 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getScale(), and kModality.

+ Here is the call graph for this function:

void G4GMocrenIO::getModalityImageSize ( int  _size[3])

Definition at line 3370 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::getSize(), and kModality.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string G4GMocrenIO::getModalityImageUnit ( )

Definition at line 3446 of file G4GMocrenIO.cc.

References kModalityUnit.

void G4GMocrenIO::getModalityImageVoxelSpacing ( float  _size[3])
int G4GMocrenIO::getNumberOfDetectors ( )

Definition at line 3953 of file G4GMocrenIO.cc.

References kDetectors.

int & G4GMocrenIO::getNumberOfEvents ( )

Definition at line 3144 of file G4GMocrenIO.cc.

References kNumberOfEvents.

int G4GMocrenIO::getNumDoseDist ( )

Definition at line 3478 of file G4GMocrenIO.cc.

References kDose.

Referenced by calcPointers3(), calcPointers4(), clearDoseDistAll(), storeData3(), and storeData4().

+ Here is the caller graph for this function:

int G4GMocrenIO::getNumROI ( )

Definition at line 3754 of file G4GMocrenIO.cc.

References kRoi.

Referenced by clearROIAll().

+ Here is the caller graph for this function:

int G4GMocrenIO::getNumTracks ( )

Definition at line 3843 of file G4GMocrenIO.cc.

References kSteps.

Referenced by calcPointers2(), and calcPointers3().

+ Here is the caller graph for this function:

int G4GMocrenIO::getNumTracks4 ( )

Definition at line 3846 of file G4GMocrenIO.cc.

References kTracks.

unsigned int G4GMocrenIO::getPointerToDoseDistData ( int  _elem = 0)

Definition at line 3165 of file G4GMocrenIO.cc.

References kPointerToDoseDistData.

unsigned int G4GMocrenIO::getPointerToModalityData ( )

Definition at line 3158 of file G4GMocrenIO.cc.

References kPointerToModalityData.

unsigned int G4GMocrenIO::getPointerToROIData ( )

Definition at line 3177 of file G4GMocrenIO.cc.

References kPointerToROIData.

unsigned int G4GMocrenIO::getPointerToTrackData ( )

Definition at line 3184 of file G4GMocrenIO.cc.

References kPointerToTrackData.

short * G4GMocrenIO::getROI ( int  _z,
int  _num = 0 
)

Definition at line 3775 of file G4GMocrenIO.cc.

References isROIEmpty(), and kRoi.

+ Here is the call graph for this function:

void G4GMocrenIO::getROICenterPosition ( float  _center[3],
int  _num = 0 
)

Definition at line 3811 of file G4GMocrenIO.cc.

References isROIEmpty(), and kRoi.

+ Here is the call graph for this function:

void G4GMocrenIO::getROIMinMax ( short  _minmax[2],
int  _num = 0 
)

Definition at line 3799 of file G4GMocrenIO.cc.

References isROIEmpty(), and kRoi.

+ Here is the call graph for this function:

double G4GMocrenIO::getROIScale ( int  _num = 0)

Definition at line 3763 of file G4GMocrenIO.cc.

References isROIEmpty(), and kRoi.

+ Here is the call graph for this function:

void G4GMocrenIO::getROISize ( int  _size[3],
int  _num = 0 
)

Definition at line 3787 of file G4GMocrenIO.cc.

References isROIEmpty(), and kRoi.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::getShortDoseDist ( short *  _data,
int  _z,
int  _num = 0 
)

Definition at line 3583 of file G4GMocrenIO.cc.

References G4VisManager::errors, FatalException, G4cout, G4endl, G4Exception(), G4VisManager::GetVerbosity(), and kDose.

Referenced by storeData2(), storeData3(), and storeData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::getShortDoseDistMinMax ( short  _minmax[2],
int  _num = 0 
)

Definition at line 3606 of file G4GMocrenIO.cc.

References kDose.

Referenced by storeData2(), storeData3(), and storeData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::getTrack ( int  _num,
std::vector< float * > &  _steps,
std::vector< unsigned char * > &  _color 
)

Definition at line 3917 of file G4GMocrenIO.cc.

References G4VisManager::errors, FatalException, G4cout, G4endl, G4Exception(), G4VisManager::GetVerbosity(), and kTracks.

+ Here is the call graph for this function:

std::vector< unsigned char * > & G4GMocrenIO::getTrackColors ( )

Definition at line 3864 of file G4GMocrenIO.cc.

References kStepColors.

std::vector< float * > & G4GMocrenIO::getTracks ( )

Definition at line 3855 of file G4GMocrenIO.cc.

References kSteps.

std::string & G4GMocrenIO::getVersion ( )

Definition at line 3128 of file G4GMocrenIO.cc.

References kVersion.

void G4GMocrenIO::getVoxelSpacing ( float  _spacing[3])

Definition at line 3139 of file G4GMocrenIO.cc.

References kVoxelSpacing.

void G4GMocrenIO::initialize ( )

Definition at line 413 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::clear(), kComment, kDose, kDoseUnit, kFileName, kId, kLittleEndianInput, kLittleEndianOutput, kModality, kModalityImageDensityMap, kModalityUnit, kNumberOfEvents, kPointerToDoseDistData, kPointerToModalityData, kPointerToROIData, kPointerToTrackData, kRoi, kStepColors, kSteps, kTracksWillBeStored, kVerbose, kVersion, and kVoxelSpacing.

+ Here is the call graph for this function:

template<typename T >
void G4GMocrenIO::invertByteOrder ( char *  _val,
T &  _rval 
)
protected

Definition at line 4035 of file G4GMocrenIO.cc.

Referenced by storeData4().

+ Here is the caller graph for this function:

bool G4GMocrenIO::isDoseEmpty ( )
protected

Definition at line 3723 of file G4GMocrenIO.cc.

References kDose.

Referenced by clearDoseDistAll(), getDoseDist(), getDoseDistCenterPosition(), getDoseDistMinMax(), getDoseDistName(), getDoseDistScale(), getDoseDistSize(), storeData2(), storeData3(), and storeData4().

+ Here is the caller graph for this function:

bool G4GMocrenIO::isROIEmpty ( )
protected

Definition at line 3829 of file G4GMocrenIO.cc.

References kRoi.

Referenced by calcPointers2(), calcPointers3(), calcPointers4(), clearROIAll(), getModalityCenterPosition(), getROI(), getROICenterPosition(), getROIMinMax(), getROIScale(), getROISize(), storeData2(), storeData3(), and storeData4().

+ Here is the caller graph for this function:

bool G4GMocrenIO::mergeDoseDist ( std::vector< class GMocrenDataPrimitive< double > > &  _dose)

Definition at line 3690 of file G4GMocrenIO.cc.

References G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), kDose, and kVerbose.

+ Here is the call graph for this function:

void G4GMocrenIO::mergeTracks ( std::vector< float * > &  _tracks,
std::vector< unsigned char * > &  _colors 
)

Definition at line 3887 of file G4GMocrenIO.cc.

References addTrack(), and addTrackColor().

+ Here is the call graph for this function:

void G4GMocrenIO::newDoseDist ( )

Definition at line 3474 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd(), retrieveData2(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::newROI ( )

Definition at line 3750 of file G4GMocrenIO.cc.

References kRoi.

Referenced by retrieveData2(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::notStoredTracks ( )
inline

Definition at line 437 of file G4GMocrenIO.hh.

bool G4GMocrenIO::retrieveData ( char *  _filename)

Definition at line 1654 of file G4GMocrenIO.cc.

References kFileName, and retrieveData().

+ Here is the call graph for this function:

bool G4GMocrenIO::retrieveData ( )

Definition at line 1602 of file G4GMocrenIO.cc.

References G4VisManager::errors, FatalException, G4cout, G4endl, G4Exception(), G4VisManager::GetVerbosity(), kFileName, retrieveData2(), retrieveData3(), and retrieveData4().

Referenced by retrieveData(), retrieveData2(), retrieveData3(), and retrieveData4().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::retrieveData2 ( char *  _filename)

Definition at line 3096 of file G4GMocrenIO.cc.

References kFileName, and retrieveData().

+ Here is the call graph for this function:

bool G4GMocrenIO::retrieveData2 ( )

Definition at line 2631 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::addImage(), addTrack(), convertEndian(), DEBUG, G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), IDLENGTH, kDose, kFileName, kId, kLittleEndianInput, kModality, kModalityImageDensityMap, kPointerToDoseDistData, kPointerToModalityData, kPointerToROIData, kPointerToTrackData, kRoi, kSteps, kVerbose, kVersion, kVoxelSpacing, newDoseDist(), newROI(), GMocrenDataPrimitive< T >::setMinMax(), GMocrenDataPrimitive< T >::setScale(), GMocrenDataPrimitive< T >::setSize(), G4InuclParticleNames::tp, VERLENGTH, and z.

Referenced by retrieveData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::retrieveData3 ( char *  _filename)

Definition at line 2625 of file G4GMocrenIO.cc.

References kFileName, and retrieveData().

+ Here is the call graph for this function:

bool G4GMocrenIO::retrieveData3 ( )

Definition at line 2193 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::addImage(), addPointerToDoseDistData(), addTrack(), addTrackColor(), convertEndian(), DEBUG, G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), kComment, kDose, kDoseUnit, kFileName, kLittleEndianInput, kModality, kModalityImageDensityMap, kPointerToDoseDistData, kPointerToModalityData, kPointerToROIData, kPointerToTrackData, kRoi, kVerbose, kVersion, kVoxelSpacing, newDoseDist(), newROI(), setComment(), setDoseDistUnit(), GMocrenDataPrimitive< T >::setMinMax(), setModalityImageUnit(), GMocrenDataPrimitive< T >::setScale(), GMocrenDataPrimitive< T >::setSize(), G4InuclParticleNames::tp, and z.

Referenced by retrieveData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::retrieveData4 ( char *  _filename)

Definition at line 2187 of file G4GMocrenIO.cc.

References kFileName, and retrieveData().

+ Here is the call graph for this function:

bool G4GMocrenIO::retrieveData4 ( )

Definition at line 1660 of file G4GMocrenIO.cc.

References addDetector(), GMocrenDataPrimitive< T >::addImage(), addPointerToDoseDistData(), addTrack(), convertEndian(), DEBUG, G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), kComment, kDose, kDoseUnit, kFileName, kLittleEndianInput, kModality, kModalityImageDensityMap, kPointerToDetectorData, kPointerToDoseDistData, kPointerToModalityData, kPointerToROIData, kPointerToTrackData, kRoi, kVerbose, kVersion, kVoxelSpacing, newDoseDist(), newROI(), setComment(), setDoseDistName(), setDoseDistUnit(), GMocrenDataPrimitive< T >::setMinMax(), setModalityImageUnit(), GMocrenDataPrimitive< T >::setScale(), GMocrenDataPrimitive< T >::setSize(), and z.

Referenced by retrieveData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::setComment ( std::string &  _comment)
inline

Definition at line 275 of file G4GMocrenIO.hh.

Referenced by retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDist ( double *  _image,
int  _num = 0 
)

Definition at line 3614 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDistCenterPosition ( float  _center[3],
int  _num = 0 
)

Definition at line 3658 of file G4GMocrenIO.cc.

References kDose.

void G4GMocrenIO::setDoseDistMinMax ( short  _minmax[2],
int  _num = 0 
)

Definition at line 3512 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDistMinMax ( double  _minmax[2],
int  _num = 0 
)

Definition at line 3530 of file G4GMocrenIO.cc.

References kDose.

void G4GMocrenIO::setDoseDistName ( std::string  _name,
int  _num = 0 
)

Definition at line 3670 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDistScale ( double &  _scale,
int  _num = 0 
)

Definition at line 3543 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDistSize ( int  _size[3],
int  _num = 0 
)

Definition at line 3505 of file G4GMocrenIO.cc.

References kDose.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::setDoseDistUnit ( std::string &  _unit,
int  _num = 0 
)

Definition at line 3489 of file G4GMocrenIO.cc.

References kDoseUnit.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd(), retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setFileName ( std::string &  _filename)
inline

Definition at line 237 of file G4GMocrenIO.hh.

void G4GMocrenIO::setFileName ( char *  _filename)
inline

Definition at line 238 of file G4GMocrenIO.hh.

void G4GMocrenIO::setID ( )

Definition at line 3101 of file G4GMocrenIO.cc.

References kId, and G4InuclParticleNames::tm.

void G4GMocrenIO::setID ( std::string &  _id)
inline

Definition at line 263 of file G4GMocrenIO.hh.

void G4GMocrenIO::setLittleEndianInput ( bool  _little)

Definition at line 3132 of file G4GMocrenIO.cc.

References kLittleEndianInput.

void G4GMocrenIO::setLittleEndianOutput ( bool  _little)

Definition at line 3133 of file G4GMocrenIO.cc.

References kLittleEndianOutput.

void G4GMocrenIO::setModalityCenterPosition ( float  _center[3])

Definition at line 3434 of file G4GMocrenIO.cc.

References kModality, and GMocrenDataPrimitive< T >::setCenterPosition().

+ Here is the call graph for this function:

void G4GMocrenIO::setModalityImage ( short *  _image)

Definition at line 3390 of file G4GMocrenIO.cc.

References GMocrenDataPrimitive< T >::addImage(), and kModality.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::setModalityImageDensityMap ( std::vector< float > &  _map)

Definition at line 3403 of file G4GMocrenIO.cc.

References kModalityImageDensityMap.

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::setModalityImageMinMax ( short  _minmax[2])

Definition at line 3410 of file G4GMocrenIO.cc.

References kModality, and GMocrenDataPrimitive< T >::setMinMax().

Referenced by G4GMocrenFileSceneHandler::BeginSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::setModalityImageScale ( double &  _scale)

Definition at line 3380 of file G4GMocrenIO.cc.

References kModality, and GMocrenDataPrimitive< T >::setScale().

+ Here is the call graph for this function:

void G4GMocrenIO::setModalityImageSize ( int  _size[3])

Definition at line 3374 of file G4GMocrenIO.cc.

References kModality, and GMocrenDataPrimitive< T >::setSize().

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GMocrenIO::setModalityImageUnit ( std::string &  _unit)

Definition at line 3449 of file G4GMocrenIO.cc.

References kModalityUnit.

Referenced by retrieveData3(), and retrieveData4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setModalityImageVoxelSpacing ( float  _size[3])
void G4GMocrenIO::setNumberOfEvents ( int &  _numberOfEvents)

Definition at line 3147 of file G4GMocrenIO.cc.

References kNumberOfEvents.

void G4GMocrenIO::setPointerToModalityData ( unsigned int &  _pointer)

Definition at line 3155 of file G4GMocrenIO.cc.

References kPointerToModalityData.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setPointerToROIData ( unsigned int &  _pointer)

Definition at line 3174 of file G4GMocrenIO.cc.

References kPointerToROIData.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setPointerToTrackData ( unsigned int &  _pointer)

Definition at line 3181 of file G4GMocrenIO.cc.

References kPointerToTrackData.

Referenced by calcPointers2(), calcPointers3(), and calcPointers4().

+ Here is the caller graph for this function:

void G4GMocrenIO::setROI ( short *  _image,
int  _num = 0 
)

Definition at line 3771 of file G4GMocrenIO.cc.

References kRoi.

void G4GMocrenIO::setROICenterPosition ( float  _center[3],
int  _num = 0 
)

Definition at line 3807 of file G4GMocrenIO.cc.

References kRoi.

void G4GMocrenIO::setROIMinMax ( short  _minmax[2],
int  _num = 0 
)

Definition at line 3795 of file G4GMocrenIO.cc.

References kRoi.

void G4GMocrenIO::setROIScale ( double &  _scale,
int  _num = 0 
)

Definition at line 3759 of file G4GMocrenIO.cc.

References kRoi.

void G4GMocrenIO::setROISize ( int  _size[3],
int  _num = 0 
)

Definition at line 3783 of file G4GMocrenIO.cc.

References kRoi.

void G4GMocrenIO::setShortDoseDist ( short *  _image,
int  _num = 0 
)

Definition at line 3564 of file G4GMocrenIO.cc.

References kDose.

void G4GMocrenIO::setTrackColors ( std::vector< unsigned char * > &  _trackColors)

Definition at line 3861 of file G4GMocrenIO.cc.

References kStepColors.

void G4GMocrenIO::setTracks ( std::vector< float * > &  _tracks)

Definition at line 3852 of file G4GMocrenIO.cc.

References kSteps.

void G4GMocrenIO::setVerboseLevel ( int  _level)

Definition at line 4053 of file G4GMocrenIO.cc.

References kVerbose.

void G4GMocrenIO::setVersion ( std::string &  _version)

Definition at line 3129 of file G4GMocrenIO.cc.

References kVersion.

void G4GMocrenIO::setVoxelSpacing ( float  _spacing[3])

Definition at line 3136 of file G4GMocrenIO.cc.

References kVoxelSpacing.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

+ Here is the caller graph for this function:

bool G4GMocrenIO::storeData ( char *  _filename)

Definition at line 458 of file G4GMocrenIO.cc.

References storeData4().

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::storeData ( )

Definition at line 454 of file G4GMocrenIO.cc.

References storeData4().

Referenced by storeData2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4GMocrenIO::storeData2 ( char *  _filename)

Definition at line 1597 of file G4GMocrenIO.cc.

References kFileName, and storeData().

+ Here is the call graph for this function:

bool G4GMocrenIO::storeData3 ( char *  _filename)
bool G4GMocrenIO::storeData4 ( char *  _filename)

Definition at line 1333 of file G4GMocrenIO.cc.

References kFileName, and storeData4().

+ Here is the call graph for this function:

bool G4GMocrenIO::storeData4 ( )
void G4GMocrenIO::translateDetector ( std::vector< float > &  _translate)

Definition at line 4008 of file G4GMocrenIO.cc.

References kDetectors.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

void G4GMocrenIO::translateTracks ( std::vector< float > &  _translateo)

Definition at line 3942 of file G4GMocrenIO.cc.

References kTracks.

Referenced by G4GMocrenFileSceneHandler::EndSavingGdd().

+ Here is the caller graph for this function:

Member Data Documentation

std::string G4GMocrenIO::kComment
static
std::vector< class GMocrenDetector > G4GMocrenIO::kDetectors
static
std::string G4GMocrenIO::kDoseUnit = "keV "
static
std::string G4GMocrenIO::kFileName = "dose.gdd"
static
std::string G4GMocrenIO::kId
static

Definition at line 169 of file G4GMocrenIO.hh.

Referenced by getID(), initialize(), retrieveData2(), setID(), and storeData2().

char G4GMocrenIO::kLittleEndianInput = true
static
char G4GMocrenIO::kLittleEndianOutput = true
static
std::vector< float > G4GMocrenIO::kModalityImageDensityMap
static
std::string G4GMocrenIO::kModalityUnit = "g/cm3 "
static

Definition at line 204 of file G4GMocrenIO.hh.

Referenced by getModalityImageUnit(), initialize(), and setModalityImageUnit().

int G4GMocrenIO::kNumberOfEvents = 0
static

Definition at line 184 of file G4GMocrenIO.hh.

Referenced by addOneEvent(), getNumberOfEvents(), initialize(), and setNumberOfEvents().

unsigned int G4GMocrenIO::kPointerToDetectorData = 0
static

Definition at line 195 of file G4GMocrenIO.hh.

Referenced by calcPointers4(), retrieveData4(), and storeData4().

std::vector< unsigned int > G4GMocrenIO::kPointerToDoseDistData
static
unsigned int G4GMocrenIO::kPointerToModalityData = 0
static
unsigned int G4GMocrenIO::kPointerToROIData = 0
static
unsigned int G4GMocrenIO::kPointerToTrackData = 0
static
std::vector< unsigned char * > G4GMocrenIO::kStepColors
static
std::vector< float * > G4GMocrenIO::kSteps
static
std::vector< class GMocrenTrack > G4GMocrenIO::kTracks
static
bool G4GMocrenIO::kTracksWillBeStored

Definition at line 219 of file G4GMocrenIO.hh.

Referenced by initialize(), and storeData4().

int G4GMocrenIO::kVerbose = 0
static
std::string G4GMocrenIO::kVersion = "2.0.0"
static
float G4GMocrenIO::kVoxelSpacing = {0., 0., 0.}
static

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