X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolRigidReg.cxx;h=29481651e21aad16311963d9557ea74155e107a1;hb=9c5f0e4d3d6b33e09d0413439ed7a867e3d85faa;hp=508551da86a7dec2ed064921e170439f2d6faeff;hpb=2191f760d44987f901445c4105c577df7995b25d;p=clitk.git diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index 508551d..2948165 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -30,6 +30,7 @@ // clitk #include "clitkTransformUtilities.h" +#include "clitkMatrix.h" // qt #include @@ -120,7 +121,7 @@ void vvToolRigidReg::InputIsSelected(vvSlicerManager *input) for(int i=0; i<4; i++) // TODO SR and BP: check on the list of transforms and not the first only mInitialMatrix->SetElement(i,j, mCurrentSlicerManager->GetImage()->GetTransform()[0]->GetMatrix()->GetElement(i,j)); - QString origTransformString = dynamic_cast(mMainWindow)->Get4x4MatrixDoubleAsString(mInitialMatrix); + QString origTransformString(clitk::Get4x4MatrixDoubleAsString(mInitialMatrix).c_str()); transformationLabel->setText(origTransformString); SetTransform(mInitialMatrix); @@ -298,7 +299,7 @@ void vvToolRigidReg::SaveFile() if (file.open(QFile::WriteOnly | QFile::Truncate)) { // TODO SR and BP: check on the list of transforms and not the first only vtkMatrix4x4* matrix = mCurrentSlicerManager->GetImage()->GetTransform()[0]->GetMatrix(); - QString matrixStr = dynamic_cast(mMainWindow)->Get4x4MatrixDoubleAsString(matrix,16); + QString matrixStr = clitk::Get4x4MatrixDoubleAsString(matrix,16).c_str(); QTextStream out(&file); out << matrixStr; }