Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkVersorTransformView.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 QmitkVersorTransformViewWidgetHIncluded
18 #define QmitkVersorTransformViewWidgetHIncluded
19 
22 #include "ui_QmitkVersorTransformControls.h"
23 #include <itkImage.h>
24 
31 {
32 public:
33  QmitkVersorTransformView(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
35 
37 
38  virtual itk::Object::Pointer GetTransform() override;
39 
40  virtual itk::Array<double> GetTransformParameters() override;
41 
42  virtual void SetTransformParameters(itk::Array<double> transformValues) override;
43 
44  virtual QString GetName() override;
45 
46  virtual void SetupUI(QWidget *parent) override;
47 
48  virtual itk::Array<double> GetScales() override;
49 
50  virtual vtkTransform *Transform(vtkMatrix4x4 *vtkmatrix,
51  vtkTransform *vtktransform,
52  itk::Array<double> transformParams) override;
53 
54  virtual int GetNumberOfTransformParameters() override;
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::QmitkVersorTransformControls 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
Ui::QmitkVersorTransformControls m_Controls
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
virtual itk::Object::Pointer GetTransform()=0
itk::Object::Pointer m_TransformObject