change getPixelSize for non square pixel detector

parent 2f8a47a2
......@@ -75,7 +75,7 @@ class DetInfoCtrlObj : public HwDetInfoCtrlObj
virtual void getCurrImageType(ImageType& curr_image_type);
virtual void setCurrImageType(ImageType curr_image_type);
virtual void getPixelSize(double& pixel_size);
virtual void getPixelSize(double& x_size,double &y_size);
virtual void getDetectorType(std::string& det_type);
virtual void getDetectorModel(std::string& det_model);
......
......@@ -106,12 +106,12 @@ void DetInfoCtrlObj::setCurrImageType(ImageType curr_image_type)
<< "Only " << DEB_VAR1(unique_image_type) << "allowed";
}
void DetInfoCtrlObj::getPixelSize(double& pixel_size)
void DetInfoCtrlObj::getPixelSize(double& x_size,double& y_size)
{
DEB_MEMBER_FUNCT();
Model& model = m_cam.getModel();
pixel_size = model.getPixelSize();
DEB_RETURN() << DEB_VAR1(pixel_size);
x_size = y_size = model.getPixelSize();
DEB_RETURN() << DEB_VAR1(x_size);
}
void DetInfoCtrlObj::getDetectorType(std::string& det_type)
......
Markdown is supported
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