MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkCameraIntrinsicsProperty.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13
15
16
17namespace mitk {
18
19bool CameraIntrinsicsProperty::IsEqual(const BaseProperty& property) const
20{
21 return this->m_Value->Equals(static_cast<const Self&>(property).m_Value.GetPointer());
22}
23
24bool CameraIntrinsicsProperty::Assign(const BaseProperty& property)
25{
26 this->m_Value = static_cast<const Self&>(property).m_Value;
27 return true;
28}
29
31{
32 std::stringstream myStr;
33 myStr << GetValue();
34 return myStr.str();
35}
36
40
42 : BaseProperty(other)
43{
44
45}
46
47CameraIntrinsicsProperty::CameraIntrinsicsProperty( mitk::CameraIntrinsics::Pointer value )
48 : BaseProperty(), m_Value( value )
49{}
50
51itk::LightObject::Pointer CameraIntrinsicsProperty::InternalClone() const
52{
53 itk::LightObject::Pointer result(new Self(*this));
54 result->UnRegister();
55 return result;
56}
57
58bool CameraIntrinsicsProperty::ToJSON(nlohmann::json&) const
59{
60 return false;
61}
62
63bool CameraIntrinsicsProperty::FromJSON(const nlohmann::json&)
64{
65 return false;
66}
67
68}
69// namespace mitk
std::string GetValueAsString() const override
mitk::CameraIntrinsics::Pointer m_Value
bool ToJSON(nlohmann::json &j) const override
bool FromJSON(const nlohmann::json &j) override
IGT Exceptions.