]> Creatis software - clitk.git/commitdiff
Replaced round function with portable rint function
authorsrit <srit>
Sun, 13 Jun 2010 16:56:56 +0000 (16:56 +0000)
committersrit <srit>
Sun, 13 Jun 2010 16:56:56 +0000 (16:56 +0000)
vv/vvToolRigidReg.cxx

index 41c226424539f769d20084eea0c0e1b73c2e7ece..b6c946630c04851aa51057763ce0d033ec24cc84 100644 (file)
@@ -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();
 }
 //------------------------------------------------------------------------------