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