Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkRigid3DTransformView.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkRigid3DTransformViewWidgetHIncluded
18 #define QmitkRigid3DTransformViewWidgetHIncluded
19 
22 #include "ui_QmitkRigid3DTransformControls.h"
23 #include <itkImage.h>
24 
31 {
32 public:
33  QmitkRigid3DTransformView(QWidget *parent = 0, Qt::WindowFlags f = 0);
35 
37 
39 
40  virtual itk::Array<double> GetTransformParameters();
41 
42  virtual void SetTransformParameters(itk::Array<double> transformValues);
43 
44  virtual QString GetName();
45 
46  virtual void SetupUI(QWidget *parent);
47 
48  virtual itk::Array<double> GetScales();
49 
50  virtual vtkTransform *Transform(vtkMatrix4x4 *vtkmatrix,
51  vtkTransform *vtktransform,
52  itk::Array<double> transformParams);
53 
54  virtual int GetNumberOfTransformParameters();
55 
56 private:
57  template <class TPixelType, unsigned int VImageDimension>
58  itk::Object::Pointer GetTransform2(itk::Image<TPixelType, VImageDimension> *itkImage1);
59 
60 protected:
61  Ui::QmitkRigid3DTransformControls m_Controls;
62 
64 
65  double m_CenterX;
66  double m_CenterY;
67  double m_CenterZ;
68 };
69 
70 #endif
itk::SmartPointer< Self > Pointer
virtual void SetupUI(QWidget *parent)=0
virtual itk::Array< double > GetScales()=0
virtual itk::Array< double > GetTransformParameters()=0
TransformType
Unique integer value for every transform.
virtual mitk::TransformParameters::TransformType GetTransformType()=0
#define MITKRIGIDREGISTRATIONUI_EXPORT
Widget for rigid registration.
virtual vtkTransform * Transform(vtkMatrix4x4 *vtkmatrix, vtkTransform *vtktransform, itk::Array< double > transformParams)=0
virtual void SetTransformParameters(itk::Array< double > transformValues)=0
itk::Object::Pointer m_TransformObject
virtual itk::Object::Pointer GetTransform()=0
Ui::QmitkRigid3DTransformControls m_Controls