[clitk-commits-list] Clitk branch master updated. v1.2.0-704-gc2e0628
root
root at tux.creatis.insa-lyon.fr
Mon Feb 13 18:03:56 CET 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Clitk".
The branch, master has been updated
via c2e0628b1d9f0940ac192ff3683c3ede5d01ceb3 (commit)
from 0e4f77b4892597234d90ee974044aa9f5a81ce89 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff;h=c2e0628b1d9f0940ac192ff3683c3ede5d01ceb3
commit c2e0628b1d9f0940ac192ff3683c3ede5d01ceb3
Author: Simon Rit <simon.rit at creatis.insa-lyon.fr>
Date: Mon Feb 13 18:03:43 2012 +0100
ITK v4 compatibility
diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx
index 1a2d1c7..78e0d66 100644
--- a/vv/vvToolRigidReg.cxx
+++ b/vv/vvToolRigidReg.cxx
@@ -230,13 +230,13 @@ void vvToolRigidReg::SpinBoxChange(double newVal)
for(int i=0; i<3; i++) {
if(transSBs[i] == QObject::sender()) {
transSliders[i]->blockSignals(true);
- transSliders[i]->setValue(itk::Math::Round(newVal));
+ transSliders[i]->setValue(itk::Math::Round<double,double>(newVal));
transSliders[i]->blockSignals(false);
}
if(rotSBs[i] == QObject::sender()) {
double rad = (checkBoxDegrees->checkState()==Qt::Unchecked)?180./itk::Math::pi:1.;
rotSliders[i]->blockSignals(true);
- rotSliders[i]->setValue(itk::Math::Round(newVal*rad));
+ rotSliders[i]->setValue(itk::Math::Round<double,double>(newVal*rad));
rotSliders[i]->blockSignals(false);
}
}
@@ -380,14 +380,14 @@ void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix)
transSBs[i]->setValue( euler->GetParameters()[i+3] );
transSBs[i]->blockSignals(false);
transSliders[i]->blockSignals(true);
- transSliders[i]->setValue( itk::Math::Round(euler->GetParameters()[i+3]) );
+ transSliders[i]->setValue( itk::Math::Round<double,double>(euler->GetParameters()[i+3]) );
transSliders[i]->blockSignals(false);
double rad = (checkBoxDegrees->checkState()==Qt::Checked)?180./itk::Math::pi:1.;
rotSBs[i]->blockSignals(true);
rotSBs[i]->setValue( euler->GetParameters()[i]*rad );
rotSBs[i]->blockSignals(false);
rotSliders[i]->blockSignals(true);
- rotSliders[i]->setValue( itk::Math::Round(euler->GetParameters()[i]*180./itk::Math::pi) );
+ rotSliders[i]->setValue( itk::Math::Round<double,double>(euler->GetParameters()[i]*180./itk::Math::pi) );
rotSliders[i]->blockSignals(false);
}
}
-----------------------------------------------------------------------
Summary of changes:
vv/vvToolRigidReg.cxx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
Clitk
More information about the Clitk-commits-list
mailing list