X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvToolRigidReg.cxx;h=b6c946630c04851aa51057763ce0d033ec24cc84;hb=c18059db4f507fd31b5898667f57eced7d48c5f7;hp=41c226424539f769d20084eea0c0e1b73c2e7ece;hpb=367f3d5c15e1793b0fe02fc5ff68f96647ae47f1;p=clitk.git diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index 41c2264..b6c9466 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -538,17 +538,17 @@ void vvToolRigidReg::ReadFile() DD(orientations[1]); DD(orientations[2]);*/ //set the sliders and spin box values - xtrans_slider->setValue(round(translations[0]/mInput1->GetImage()->GetSpacing()[0])); + xtrans_slider->setValue(rint(translations[0]/mInput1->GetImage()->GetSpacing()[0])); UpdateXtranslider(); - ytrans_slider->setValue(round(translations[1]/mInput1->GetImage()->GetSpacing()[1])); + ytrans_slider->setValue(rint(translations[1]/mInput1->GetImage()->GetSpacing()[1])); UpdateYtranslider(); - ztrans_slider->setValue(round(translations[2]/mInput1->GetImage()->GetSpacing()[2])); + ztrans_slider->setValue(rint(translations[2]/mInput1->GetImage()->GetSpacing()[2])); UpdateZtranslider(); - yrot_slider->setValue(round(orientations[1])); + yrot_slider->setValue(rint(orientations[1])); UpdateYrotslider(); - xrot_slider->setValue(round(orientations[0])); + xrot_slider->setValue(rint(orientations[0])); UpdateXrotslider(); - zrot_slider->setValue(round(orientations[2])); + zrot_slider->setValue(rint(orientations[2])); UpdateZrotslider(); } //------------------------------------------------------------------------------