Medical Imaging Interaction Toolkit  2023.12.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  bool ToJSON(nlohmann::json& j) const override;
46  bool FromJSON(const nlohmann::json& j) override;
47 
48  using BaseProperty::operator=;
49 
50 protected:
51  mitk::CameraIntrinsics::Pointer m_Value;
52 
54 
56 
57  CameraIntrinsicsProperty( mitk::CameraIntrinsics::Pointer value );
58 
59 private:
60 
61  // purposely not implemented
63 
64  itk::LightObject::Pointer InternalClone() const override;
65 
66  bool IsEqual(const BaseProperty& property) const override;
67  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
mitk::CameraIntrinsicsProperty::m_Value
mitk::CameraIntrinsics::Pointer m_Value
Definition: mitkCameraIntrinsicsProperty.h:51
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitkCameraIntrinsics.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
json
nlohmann::json json
Definition: mitkModelTestFixture.h:29
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