X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolRigidReg.cxx;h=3a533ea27838ca4ae7f5b6791b195ff5f1065991;hb=2b4229b2e82be6bd48817b0171afb2d69a9e9758;hp=b6525f72da5b4ad9d49d7dd8783e73ab2882bbaf;hpb=6f42299dcd2fcfebe3ee92136b531ae349787070;p=clitk.git diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index b6525f7..3a533ea 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -15,23 +15,27 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ======================================================================-====*/ + +// vv #include "vvToolRigidReg.h" -#include -#include -#include +#include "vvImageReader.h" +#include "vvSlicer.h" + +// vtk #include #include #include -#include -#include "vvImage.h" -#include "vvSlicer.h" -#include + +// clitk #include "clitkTransformUtilities.h" -#include + +// qt #include -#include #include #include +#include +#include + //------------------------------------------------------------------------------ // Create the tool and automagically (I like this word) insert it in // the main window menu. @@ -46,10 +50,10 @@ vvToolRigidReg::vvToolRigidReg(vvMainWindowBase * parent, Qt::WindowFlags f): { // GUI Initialization Ui_vvToolRigidReg::setupUi(mToolWidget); - QSize qsize; - qsize.setHeight(470); - qsize.setWidth(850); - mToolWidget->setFixedSize(qsize); + // QSize qsize; +// qsize.setHeight(470); +// qsize.setWidth(850); +// mToolWidget->setFixedSize(qsize); // Set how many inputs are needed for this tool @@ -389,8 +393,8 @@ void vvToolRigidReg::SaveFile() { //Write the Transformation Matrix QString f1 = QFileDialog::getSaveFileName(this, tr("Save Transformation Matrix File"), - "/home", - tr("Text (*.mat *.txt *.doc *.rtf)")); + mMainWindow->GetInputPathName(), + tr("Text (*.mat *.txt *.doc *.rtf)")); QFile file1(f1); std::vector transparameters; QString line1; @@ -429,7 +433,7 @@ void vvToolRigidReg::ReadFile() QString file1 = QFileDialog::getOpenFileName( this, "Choose the Transformation Parameters file", - "/home", + mMainWindow->GetInputPathName(), "Text (*.mat *.txt *.rtf *.doc)"); if (file1.isEmpty()) return;