]> Creatis software - clitk.git/blobdiff - vv/vvToolRigidReg.h
Add EPID conversion (2^16 - value)/alpha
[clitk.git] / vv / vvToolRigidReg.h
index 5d3dc59151e18cc9948460c550a941a82a2d52ed..6dacdba3c9843b79f162318231d616c9b5093a38 100644 (file)
@@ -1,3 +1,4 @@
+
 /*=========================================================================
   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
 
@@ -25,6 +26,8 @@
 #include "vvMainWindowBase.h"
 #include "vvMainWindow.h"
 #include "ui_vvToolRigidReg.h"
+#include "vtkMatrix4x4.h"
+#include "clitkAffineRegistration_ggo.h"
 
 //------------------------------------------------------------------------------
 class vvToolRigidReg:
@@ -49,25 +52,50 @@ public slots:
     SetToolTip("Register Image.");
     SetToolExperimental(true);
   }
+  virtual void GetArgsInfoFromGUI();
+  void SetOverlay(vvImage::Pointer Image);
+  void RemoveOverlay();
   void SetXvalue();
   void SetYvalue();
   void SetZvalue();
-  void UpdateXtranslider();
-  void UpdateYtranslider();
-  void UpdateZtranslider();
-  void UpdateXrotslider();
-  void UpdateYrotslider();
-  void UpdateZrotslider();
-  void SetOverlay();
-protected:
+  void Render();
+  void UpdateTextEditor(vtkMatrix4x4 *matrix,QTextEdit *textEdit);
+  void UpdateTransform_sliders();
+  void UpdateTransform_sb();
+  void UpdateTransform(bool slider_enabled);  
+  void AutoRegister();
+  void SaveFile();
+  void ReadFile(bool matrix_given);
+  void LoadFile();
+  void ResetTransform();
+  void SetRotationCenter();
+  void SetSliderRanges();
+  void InitializeSliders(double xtrans,double ytrans, double ztrans, double xrot, double yrot, double zrot,bool sliders);
+  void TransformSelect();
+  void OptimizerSelect();
+  void InterpolatorSelect();
+  void MetricSelect();
+  void OutputSelect();
+  void SaveTextEdit();
+  void CmdlineParser(int override, int initialize);
+  void Presets();
+  void UpdateTextEditor2();
+  void CheckRigidReg(); //Deformable or Rigid
+  void CheckDeformableReg();
+  protected:
   Ui::vvToolRigidReg ui;
   vvSlicerManager * mInput1;
   vvSlicerManager * mInput2;
   vvMainWindow * mWindow;
+  std::string mConfigFile;
   bool mTwoInputs;
-  void SetTransform(double tX, double tY, double tZ, double aX, double aY, double aZ);
+  std::vector<int> mImageSize;
+  args_info_clitkAffineRegistration mArgsInfo;
+  double mInitialMatrix[16];
+  void SetTransform(double tX, double tY, double tZ, double aX, double aY, double aZ,bool update);
+  void SetTransform(vtkMatrix4x4 * matrix);
 }; // end class vvToolRigidReg
 //------------------------------------------------------------------------------
 
 #endif
-
+