Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkRigidRegistrationTransformsGUIBase.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 QmitkRigidRegistrationTransformsGUIBaseH
18 #define QmitkRigidRegistrationTransformsGUIBaseH
19 
21 #include "mitkImage.h"
24 #include <QString>
25 #include <QWidget>
26 #include <itkArray.h>
27 #include <itkObject.h>
28 #include <vtkMatrix4x4.h>
29 #include <vtkTransform.h>
30 
37 {
38 public:
39  QmitkRigidRegistrationTransformsGUIBase(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
41 
42  virtual mitk::TransformParameters::TransformType GetTransformType() = 0;
43 
44  virtual itk::Object::Pointer GetTransform() = 0;
45 
46  virtual itk::Array<double> GetTransformParameters() = 0;
47 
48  virtual void SetTransformParameters(itk::Array<double> transformValues) = 0;
49 
50  virtual int GetNumberOfTransformParameters() = 0;
51 
52  virtual itk::Array<double> GetScales() = 0;
53 
54  virtual QString GetName() = 0;
55 
56  virtual void SetupUI(QWidget *parent) = 0;
57 
58  virtual vtkTransform *Transform(vtkMatrix4x4 *vtkmatrix,
59  vtkTransform *vtktransform,
60  itk::Array<double> transformParams) = 0;
61 
62  void SetFixedImage(mitk::Image::Pointer fixedImage);
63 
64  void SetMovingImage(mitk::Image::Pointer movingImage);
65 
66 protected:
69 };
70 
71 #endif // QmitkRigidRegistrationTransformsGUIBaseH
itk::SmartPointer< Self > Pointer
TransformType
Unique integer value for every transform.
#define MITKRIGIDREGISTRATIONUI_EXPORT
static std::string GetName(std::string fileName, std::string suffix)