Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
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 
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 // MITKCAMERAINTRINSICSPROPERTY_H
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:72
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKCAMERACALIBRATION_EXPORT
mitk::CameraIntrinsics::Pointer ValueType
Abstract base class for properties.
mitk::CameraIntrinsics::Pointer m_Value
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40