Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
19 
20 
21 namespace mitk {
22 
23 bool CameraIntrinsicsProperty::IsEqual(const BaseProperty& property) const
24 {
25  return this->m_Value->Equals(static_cast<const Self&>(property).m_Value.GetPointer());
26 }
27 
28 bool CameraIntrinsicsProperty::Assign(const BaseProperty& property)
29 {
30  this->m_Value = static_cast<const Self&>(property).m_Value;
31  return true;
32 }
33 
35 {
36  std::stringstream myStr;
37  myStr << GetValue();
38  return myStr.str();
39 }
40 
42  : BaseProperty()
43 {}
44 
46  : BaseProperty(other)
47 {
48 
49 }
50 
52  : BaseProperty(), m_Value( value )
53 {}
54 
55 itk::LightObject::Pointer CameraIntrinsicsProperty::InternalClone() const
56 {
57  itk::LightObject::Pointer result(new Self(*this));
58  result->UnRegister();
59  return result;
60 }
61 
62 }
63 // namespace mitk
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
virtual mitk::CameraIntrinsics::Pointer GetValue() const
Abstract base class for properties.
mitk::CameraIntrinsics::Pointer m_Value
std::string GetValueAsString() const override