NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkAffineTransformParametersDataNodeProperty.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkAffineTransformParametersDataNodeProperty_h
16 #define niftkAffineTransformParametersDataNodeProperty_h
17 
18 #include "niftkCoreExports.h"
19 
20 #include <algorithm>
21 
22 #include <mitkBaseProperty.h>
23 
24 namespace niftk
25 {
26 
37 class NIFTKCORE_EXPORT AffineTransformParametersDataNodeProperty : public mitk::BaseProperty
38 {
39 
40 public:
41 
42  mitkClassMacro(AffineTransformParametersDataNodeProperty, mitk::BaseProperty)
44  mitkNewMacro1Param(AffineTransformParametersDataNodeProperty, const std::vector<double>&)
45 
46 
49  typedef std::vector<double> ParametersType;
50 
54  const ParametersType& GetAffineTransformParameters() const;
55 
59  void SetAffineTransformParameters(const ParametersType& parameters);
60 
64  virtual std::string GetValueAsString() const override;
65 
69  virtual void Identity();
70 
71 protected:
72 
74  AffineTransformParametersDataNodeProperty(); // Purposefully hidden.
76  AffineTransformParametersDataNodeProperty(const ParametersType& parameters); // Purposefully hidden.
77 
81  virtual bool IsEqual(const mitk::BaseProperty& property) const override;
82 
86  virtual bool Assign(const mitk::BaseProperty& ) override;
87 
88 private:
89 
90  AffineTransformParametersDataNodeProperty& operator=(const AffineTransformParametersDataNodeProperty&); // Purposefully not implemented.
91  itk::LightObject::Pointer InternalClone() const override;
92 
93  ParametersType m_Parameters;
94 };
95 
96 }
97 
98 #endif
Definition: niftkAffineTransformParametersDataNodeProperty.h:37
mitkNewMacro1Param(AffineTransformParametersDataNodeProperty, const std::vector< double > &) typedef std const ParametersType & GetAffineTransformParameters() const
The ParametersType is defined to be an array of double, it should be exactly 13 doubles long...
Definition: niftkAffineTransformParametersDataNodeProperty.h:54
INT property
Definition: wglew.h:144
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194