Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkCameraIntrinsicsProperty_h
14 #define mitkCameraIntrinsicsProperty_h
15 
16 #include "mitkBaseProperty.h"
17 #include "mitkCameraIntrinsics.h"
18 
19 
20 namespace mitk {
21 
22 #ifdef _MSC_VER
23 # pragma warning(push)
24 # pragma warning(disable: 4522)
25 #endif
26 
27 class MITKCAMERACALIBRATION_EXPORT CameraIntrinsicsProperty : public BaseProperty
28 {
29 public:
30 
31  typedef mitk::CameraIntrinsics::Pointer ValueType;
32 
34 
35  itkFactorylessNewMacro(Self);
36 
37  itkCloneMacro(Self)
38  mitkNewMacro1Param(CameraIntrinsicsProperty, mitk::CameraIntrinsics::Pointer);
39 
40  itkSetMacro(Value, mitk::CameraIntrinsics::Pointer );
41  itkGetConstMacro(Value, mitk::CameraIntrinsics::Pointer );
42 
43  std::string GetValueAsString() const override;
44 
45  using BaseProperty::operator=;
46 
47 protected:
48  mitk::CameraIntrinsics::Pointer m_Value;
49 
51 
53 
54  CameraIntrinsicsProperty( mitk::CameraIntrinsics::Pointer value );
55 
56 private:
57 
58  // purposely not implemented
60 
61  itk::LightObject::Pointer InternalClone() const override;
62 
63  bool IsEqual(const BaseProperty& property) const override;
64  bool Assign(const BaseProperty& property) override;
65 };
66 
67 #ifdef _MSC_VER
68 # pragma warning(pop)
69 #endif
70 
71 } // namespace mitk
72 
73 #endif
mitk::CameraIntrinsicsProperty::m_Value
mitk::CameraIntrinsics::Pointer m_Value
Definition: mitkCameraIntrinsicsProperty.h:48
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:35
mitkCameraIntrinsics.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::CameraIntrinsicsProperty
Definition: mitkCameraIntrinsicsProperty.h:27
mitk::CameraIntrinsicsProperty::ValueType
mitk::CameraIntrinsics::Pointer ValueType
Definition: mitkCameraIntrinsicsProperty.h:31
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitkBaseProperty.h