Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFixedCenterOfRotationAffineTransformView.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 QmitkFixedCenterOfRotationAffineTransformViewWidgetHIncluded
18 #define QmitkFixedCenterOfRotationAffineTransformViewWidgetHIncluded
19 
22 #include "ui_QmitkFixedCenterOfRotationAffineTransformControls.h"
23 #include <itkImage.h>
24 
32 {
33 public:
34  QmitkFixedCenterOfRotationAffineTransformView(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
36 
38 
39  virtual itk::Object::Pointer GetTransform() override;
40 
41  virtual itk::Array<double> GetTransformParameters() override;
42 
43  virtual void SetTransformParameters(itk::Array<double> transformValues) override;
44 
45  virtual QString GetName() override;
46 
47  virtual void SetupUI(QWidget *parent) override;
48 
49  virtual itk::Array<double> GetScales() override;
50 
51  virtual vtkTransform *Transform(vtkMatrix4x4 *vtkmatrix,
52  vtkTransform *vtktransform,
53  itk::Array<double> transformParams) override;
54 
55  virtual int GetNumberOfTransformParameters() override;
56 
57 private:
58  template <class TPixelType, unsigned int VImageDimension>
59  itk::Object::Pointer GetTransform2(itk::Image<TPixelType, VImageDimension> *itkImage1);
60 
61 protected:
62  Ui::QmitkFixedCenterOfRotationAffineTransformControls m_Controls;
63 
65 
66  double m_CenterX;
67  double m_CenterY;
68  double m_CenterZ;
69 };
70 
71 #endif
itk::SmartPointer< Self > Pointer
virtual void SetupUI(QWidget *parent)=0
virtual itk::Array< double > GetScales()=0
Ui::QmitkFixedCenterOfRotationAffineTransformControls m_Controls
virtual itk::Array< double > GetTransformParameters()=0
TransformType
Unique integer value for every transform.
virtual mitk::TransformParameters::TransformType GetTransformType()=0
#define MITKRIGIDREGISTRATIONUI_EXPORT
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