Medical Imaging Interaction Toolkit  2018.4.99-08619e4f
Medical Imaging Interaction Toolkit
mitkCameraIntrinsicsProperty.cpp
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 
15 
16 
17 namespace mitk {
18 
19 bool CameraIntrinsicsProperty::IsEqual(const BaseProperty& property) const
20 {
21  return this->m_Value->Equals(static_cast<const Self&>(property).m_Value.GetPointer());
22 }
23 
24 bool 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 
38  : BaseProperty()
39 {}
40 
42  : BaseProperty(other)
43 {
44 
45 }
46 
47 CameraIntrinsicsProperty::CameraIntrinsicsProperty( mitk::CameraIntrinsics::Pointer value )
48  : BaseProperty(), m_Value( value )
49 {}
50 
51 itk::LightObject::Pointer CameraIntrinsicsProperty::InternalClone() const
52 {
53  itk::LightObject::Pointer result(new Self(*this));
54  result->UnRegister();
55  return result;
56 }
57 
58 }
59 // namespace mitk
virtual mitk::CameraIntrinsics::Pointer GetValue() const
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
mitk::CameraIntrinsics::Pointer m_Value
std::string GetValueAsString() const override