77 void setImage(std::vector<T *> & _image);
83 void setName(std::string & _name);
107 void addStep(
float _startx,
float _starty,
float _startz,
108 float _endx,
float _endy,
float _endz);
109 void getStep(
float & _startx,
float & _starty,
float & _startz,
110 float & _endx,
float & _endy,
float & _endz,
114 for(
int i = 0; i < 3; i++)
kColor[i] = _color[i];
117 for(
int i = 0; i < 3; i++) _color[i] =
kColor[i];
119 void translate(std::vector<float> & _tranlate);
144 void addEdge(
float _startx,
float _starty,
float _startz,
145 float _endx,
float _endy,
float _endz);
146 void getEdge(
float & _startx,
float & _starty,
float & _startz,
147 float & _endx,
float & _endy,
float & _endz,
151 for(
int i = 0; i < 3; i++)
kColor[i] = _color[i];
154 for(
int i = 0; i < 3; i++) _color[i] =
kColor[i];
159 void translate(std::vector<float> & _tranlate);
207 static std::vector<class GMocrenDataPrimitive<double> >
kDose;
212 static std::vector<class GMocrenDataPrimitive<short> >
kRoi;
218 static std::vector<class GMocrenTrack>
kTracks;
301 void calcPointers4();
302 void calcPointers3();
303 void calcPointers2();
368 bool addDoseDist(std::vector<double *> & _image,
int _num = 0);
402 short *
getROI(
int _z,
int _num = 0);
403 void setROI(
short * _image,
int _num = 0);
426 void getTrack(
int _num, std::vector<float *> & _steps,
427 std::vector<unsigned char * > & _color);
429 void setTracks(std::vector<float *> & _tracks);
433 void copyTracks(std::vector<float *> & _tracks, std::vector<unsigned char *> & _colors);
434 void mergeTracks(std::vector<float *> & _tracks, std::vector<unsigned char *> & _colors);
435 void addTrack(std::vector<float *> & _steps,
unsigned char _color[3]);
446 void addDetector(std::string & _name, std::vector<float *> & _det,
unsigned char _color[3]);
447 void getDetector(
int _num, std::vector<float *> & _edges,
448 std::vector<unsigned char *> & _color,
449 std::string & _detectorName);
void setModalityImageVoxelSpacing(float _size[3])
void setTracks(std::vector< float * > &_tracks)
void setLittleEndianInput(bool _little)
void setModalityImageSize(int _size[3])
void setDoseDistUnit(std::string &_unit, int _num=0)
short convertDensityToHU(float &_dens)
void copyDoseDist(std::vector< class GMocrenDataPrimitive< double > > &_dose)
unsigned int getPointerToTrackData()
void setDoseDistMinMax(short _minmax[2], int _num=0)
void setDoseDistScale(double &_scale, int _num=0)
void getShortDoseDist(short *_data, int _z, int _num=0)
static char kLittleEndianOutput
void clearModalityImage()
void setVerboseLevel(int _level)
void setROISize(int _size[3], int _num=0)
void setModalityImageDensityMap(std::vector< float > &_map)
void translateDetector(std::vector< float > &_translate)
std::string & getComment()
void setDoseDistCenterPosition(float _center[3], int _num=0)
void getROISize(int _size[3], int _num=0)
void setPointerToROIData(unsigned int &_pointer)
void getROICenterPosition(float _center[3], int _num=0)
static std::vector< unsigned int > kPointerToDoseDistData
void setNumberOfEvents(int &_numberOfEvents)
void getModalityImageVoxelSpacing(float _size[3])
std::vector< float > & getModalityImageDensityMap()
std::string getDoseDistName(int _num=0)
static unsigned int kPointerToModalityData
std::string getModalityImageUnit()
void setComment(std::string &_comment)
double getROIScale(int _num=0)
void setVoxelSpacing(float _spacing[3])
unsigned int getPointerToROIData()
void setDoseDistName(std::string _name, int _num=0)
static std::vector< float * > kSteps
std::vector< unsigned char * > & getTrackColors()
static std::vector< float > kModalityImageDensityMap
double getModalityImageScale()
std::string & getFileName()
void getVoxelSpacing(float _spacing[3])
bool mergeDoseDist(std::vector< class GMocrenDataPrimitive< double > > &_dose)
void setModalityImage(short *_image)
unsigned int getPointerToModalityData()
void setFileName(std::string &_filename)
void convertEndian(char *, Type &)
void setTrackColors(std::vector< unsigned char * > &_trackColors)
void setVersion(std::string &_version)
void getModalityImageMinMax(short _minmax[2])
void getModalityCenterPosition(float _center[3])
void setModalityCenterPosition(float _center[3])
double getDoseDistScale(int _num=0)
short getModalityImageMax()
std::vector< float * > & getTracks()
void setPointerToTrackData(unsigned int &_pointer)
void setDoseDistSize(int _size[3], int _num=0)
static int kNumberOfEvents
static std::vector< class GMocrenDataPrimitive< double > > kDose
void getDoseDistMinMax(short _minmax[2], int _num=0)
void setModalityImageUnit(std::string &_unit)
void setModalityImageMinMax(short _minmax[2])
static unsigned int kPointerToROIData
void setROIMinMax(short _minmax[2], int _num=0)
void getTrack(int _num, std::vector< float * > &_steps, std::vector< unsigned char * > &_color)
void setPointerToModalityData(unsigned int &_pointer)
bool addDoseDist(std::vector< double * > &_image, int _num=0)
unsigned int getPointerToDoseDistData(int _elem=0)
void setShortDoseDist(short *_image, int _num=0)
static unsigned int kPointerToDetectorData
void getDoseDistSize(int _size[3], int _num=0)
void addPointerToDoseDistData(unsigned int &_pointer)
static std::vector< class GMocrenDataPrimitive< short > > kRoi
static std::vector< class GMocrenTrack > kTracks
static unsigned int kPointerToTrackData
short * getModalityImage(int _z)
void mergeTracks(std::vector< float * > &_tracks, std::vector< unsigned char * > &_colors)
static std::string kVersion
void setROICenterPosition(float _center[3], int _num=0)
int & getNumberOfEvents()
static float kVoxelSpacing[3]
void setLittleEndianOutput(bool _little)
std::string & getVersion()
static std::vector< unsigned char * > kStepColors
static std::vector< class GMocrenDetector > kDetectors
std::string getDoseDistUnit(int _num=0)
static char kLittleEndianInput
void copyTracks(std::vector< float * > &_tracks, std::vector< unsigned char * > &_colors)
void addDetector(std::string &_name, std::vector< float * > &_det, unsigned char _color[3])
void getDoseDistCenterPosition(float _center[3], int _num=0)
void getROIMinMax(short _minmax[2], int _num=0)
short getModalityImageMin()
void getModalityImageSize(int _size[3])
int getNumberOfDetectors()
void setFileName(char *_filename)
void addTrackColor(unsigned char *_colors)
void setROI(short *_image, int _num=0)
static std::string kDoseUnit
static std::string kComment
void setDoseDist(double *_image, int _num=0)
void setID(std::string &_id)
void translateTracks(std::vector< float > &_translateo)
void invertByteOrder(char *_val, T &_rval)
void addTrack(float *_tracks)
static std::string kModalityUnit
void getDetector(int _num, std::vector< float * > &_edges, std::vector< unsigned char * > &_color, std::string &_detectorName)
short * getROI(int _z, int _num=0)
void setModalityImageScale(double &_scale)
bool storeData3(char *_filename)
static class GMocrenDataPrimitive< short > kModality
void getShortDoseDistMinMax(short _minmax[2], int _num=0)
double * getDoseDist(int _z, int _num=0)
static std::string kFileName
void setROIScale(double &_scale, int _num=0)
GMocrenDataPrimitive< T > & operator=(const GMocrenDataPrimitive< T > &_right)
void setImage(std::vector< T * > &_image)
std::vector< T * > & getImage()
void setSize(int _size[3])
void getMinMax(T _minmax[2])
GMocrenDataPrimitive< T > & operator+=(const GMocrenDataPrimitive< T > &_right)
void setMinMax(T _minmax[2])
void getCenterPosition(float _center[3])
void setName(std::string &_name)
void setCenterPosition(float _center[3])
GMocrenDataPrimitive< T > & operator+(const GMocrenDataPrimitive< T > &_right)
void getSize(int _size[3])
void setScale(double &_scale)
std::vector< T * > kImage
void setColor(unsigned char _color[3])
void setName(std::string &_name)
void getColor(unsigned char _color[3])
void translate(std::vector< float > &_tranlate)
void addEdge(float _startx, float _starty, float _startz, float _endx, float _endy, float _endz)
void getEdge(float &_startx, float &_starty, float &_startz, float &_endx, float &_endy, float &_endz, int _num)
std::vector< struct Edge > kDetector
void setDetector(std::vector< struct Edge > &_aDetector)
void getStep(float &_startx, float &_starty, float &_startz, float &_endx, float &_endy, float &_endz, int _num)
void translate(std::vector< float > &_tranlate)
void setColor(unsigned char _color[3])
void setTrack(std::vector< struct Step > &_aTrack)
void addStep(float _startx, float _starty, float _startz, float _endx, float _endy, float _endz)
std::vector< struct Step > kTrack
void getColor(unsigned char _color[3])