Commit 653b065d authored by Valentin Valls's avatar Valentin Valls
Browse files

Expose detector pixel size getter/setter from the simulator camera

parent d261a9f0
......@@ -93,6 +93,9 @@ public:
void setTrigMode(TrigMode trig_mode) { m_trig_mode = trig_mode; };
void getTrigMode(TrigMode &trig_mode) { trig_mode = m_trig_mode; };
void setPixelSize(double x_size, double y_size);
void getPixelSize(double &x_size, double &y_size);
void setFrameDim(const FrameDim &frame_dim);
void getFrameDim(FrameDim &frame_dim);
......@@ -155,6 +158,9 @@ private:
double m_lat_time;
int m_nb_frames;
double m_x_size = 1e-6;
double m_y_size = 1e-6;
TrigMode m_trig_mode;
SoftBufferCtrlObj m_buffer_ctrl_obj;
......
......@@ -83,6 +83,9 @@ public:
void setLatTime(double lat_time);
void getLatTime(double& lat_time /Out/);
void setPixelSize(double x_size, double y_size);
void getPixelSize(double &x_size, double &y_size);
void setFrameDim(const FrameDim& frame_dim);
void getFrameDim(FrameDim& frame_dim /Out/);
......
......@@ -237,6 +237,22 @@ void Camera::setMode(const Mode &mode)
}
}
void Camera::setPixelSize(double x_size, double y_size)
{
DEB_MEMBER_FUNCT();
this->m_x_size = x_size;
this->m_y_size = y_size;
}
void Camera::getPixelSize(double &x_size, double &y_size)
{
DEB_MEMBER_FUNCT();
x_size = this->m_x_size;
y_size = this->m_y_size;
}
void Camera::setFrameDim(const FrameDim &frame_dim)
{
DEB_MEMBER_FUNCT();
......
......@@ -61,7 +61,7 @@ void DetInfoCtrlObj::getCurrImageType(ImageType &curr_image_type)
void DetInfoCtrlObj::getPixelSize(double &x_size, double &y_size)
{
x_size = y_size = 1e-6;
m_simu.getPixelSize(x_size, y_size);
}
void DetInfoCtrlObj::getDetectorType(std::string &det_type)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment