]> Creatis software - clitk.git/commitdiff
Ensure compatibility with ITK < v4.7
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 15 Mar 2016 08:02:34 +0000 (09:02 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 15 Mar 2016 08:02:34 +0000 (09:02 +0100)
vv/vvToolRigidReg.cxx

index 5b022f49385cf1a560f9518168c3030977442579..8c2909e888158ce01eafe027126a32406dc8ed43 100644 (file)
@@ -379,7 +379,11 @@ void vvToolRigidReg::SetTransform(vtkMatrix4x4 *matrix)
   euler = itk::Euler3DTransform<double>::New();
   euler->SetCenter(center);
   try {
+#if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR > 6)
     euler->SetMatrix(rotMat,0.00001);
+#else
+    euler->SetMatrix(rotMat);
+#endif
   } catch (itk::ExceptionObject) {
     QString warning = "The matrice is a non-orthogonal rotation matrix.\nThe manual registration doesn't work.";
     QMessageBox msgBox(QMessageBox::Warning, tr("Reset transform"),warning, 0, this);