Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkCameraIntrinsicsProperty.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 MITKCAMERAINTRINSICSPROPERTY_H
18 #define MITKCAMERAINTRINSICSPROPERTY_H
19 
20 #include "mitkBaseProperty.h"
21 #include "mitkCameraIntrinsics.h"
22 
23 
24 namespace mitk {
25 
26 #ifdef _MSC_VER
27 # pragma warning(push)
28 # pragma warning(disable: 4522)
29 #endif
30 
31 class MITKCAMERACALIBRATION_EXPORT CameraIntrinsicsProperty : public BaseProperty
32 {
33 public:
34 
36 
38 
39  itkFactorylessNewMacro(Self)
40  itkCloneMacro(Self)
42 
43  itkSetMacro(Value, mitk::CameraIntrinsics::Pointer );
44  itkGetConstMacro(Value, mitk::CameraIntrinsics::Pointer );
45 
46  std::string GetValueAsString() const override;
47 
48  using BaseProperty::operator=;
49 
50 protected:
51  mitk::CameraIntrinsics::Pointer m_Value;
52 
53  CameraIntrinsicsProperty();
54 
55  CameraIntrinsicsProperty(const CameraIntrinsicsProperty&);
56 
57  CameraIntrinsicsProperty( mitk::CameraIntrinsics::Pointer value );
58 
59 private:
60 
61  // purposely not implemented
62  CameraIntrinsicsProperty& operator=(const CameraIntrinsicsProperty&);
63 
64  virtual itk::LightObject::Pointer InternalClone() const override;
65 
66  virtual bool IsEqual(const BaseProperty& property) const override;
67  virtual bool Assign(const BaseProperty& property) override;
68 };
69 
70 #ifdef _MSC_VER
71 # pragma warning(pop)
72 #endif
73 
74 } // namespace mitk
75 
76 #endif // MITKCAMERAINTRINSICSPROPERTY_H
itk::SmartPointer< Self > Pointer
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
class representing camera intrinsics and related functions
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
mitk::CameraIntrinsics::Pointer ValueType
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44