X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolRigidReg.h;h=02d679b41ac033baa89b962c621e92791fc9128b;hb=d786b4f836c0f12ba4a6dd06803cbe771ac371e3;hp=0ed4e3d8e531061e645fa1ca65d1e19abee03d96;hpb=421793325fd0ca0570ad3db66c8d216116945472;p=clitk.git diff --git a/vv/vvToolRigidReg.h b/vv/vvToolRigidReg.h index 0ed4e3d..02d679b 100644 --- a/vv/vvToolRigidReg.h +++ b/vv/vvToolRigidReg.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,15 +14,12 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef VVTOOLRIGIDREG_H #define VVTOOLRIGIDREG_H -#include -#include #include "vvToolBase.h" #include "vvToolWidgetBase.h" -#include "vvMainWindowBase.h" #include "vvMainWindow.h" #include "ui_vvToolRigidReg.h" #include "vtkMatrix4x4.h" @@ -37,61 +34,34 @@ class vvToolRigidReg: public: vvToolRigidReg(vvMainWindowBase * parent=0, Qt::WindowFlags f=0); ~vvToolRigidReg(); - virtual void InputIsSelected(std::vector & m); + static void Initialize(); + virtual void InputIsSelected(vvSlicerManager *input); + public slots: virtual void apply(); virtual bool close(); virtual void reject(); - //----------------------------------------------------- - static void Initialize() { - SetToolName("Register"); - SetToolMenuName("Register"); - SetToolIconFilename(":/common/icons/register.png"); - SetToolTip("Register Image."); - SetToolExperimental(true); - } - void SetXvalue(); - void SetYvalue(); - void SetZvalue(); - void SetOrderXtrans(); - void SetOrderYtrans(); - void SetOrderZtrans(); - void SetOrderXrot(); - void SetOrderYrot(); - void SetOrderZrot(); - void UpdateXtranslider(); - void UpdateXtransb(); - void UpdateYtranslider(); - void UpdateYtransb(); - void UpdateZtranslider(); - void UpdateZtransb(); - void UpdateXrotslider(); - void UpdateXrotsb(); - void UpdateYrotslider(); - void UpdateYrotsb(); - void UpdateZrotslider(); - void UpdateZrotsb(); - void SetOverlay(); + void SetTranslationStep(double v); + void SetRotationStep(double v); + void SliderChange(int newVal); + void SpinBoxChange(double newVal); + void ToggleSpinBoxAnglesUnit(); void SaveFile(); - void ReadFile(); + void LoadFile(); + void ChangeOfRotationCenter(); void ResetTransform(); - void SetRotationCenter(); - void SetSliderRanges(); - void UpdateTextEditor(vtkMatrix4x4 *matrix,QString SetOrder); - void InitializeSliders(); - - protected: + +protected: Ui::vvToolRigidReg ui; - vvSlicerManager * mInput1; - vvSlicerManager * mInput2; - vvMainWindow * mWindow; - QString mOrder; - bool mTwoInputs; - std::vector mImageSize; - void SetTransform(double tX, double tY, double tZ, double aX, double aY, double aZ); + vvSlicerManager * mInput; + vtkSmartPointer mInitialMatrix; + void ExtentMax(const double [8][4], double [2][3]); void SetTransform(vtkMatrix4x4 * matrix); + void GetSlidersAndSpinBoxes(std::vector&transSliders, std::vector&rotSliders, + std::vector&transSBs, std::vector&rotSBs); + void Render(); }; // end class vvToolRigidReg //------------------------------------------------------------------------------ #endif - +