Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkTransferFunctionProperty.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 
14 
15 namespace mitk
16 {
17  bool TransferFunctionProperty::IsEqual(const BaseProperty &property) const
18  {
19  return *(this->m_Value) == *(static_cast<const Self &>(property).m_Value);
20  }
21 
22  bool TransferFunctionProperty::Assign(const BaseProperty &property)
23  {
24  this->m_Value = static_cast<const Self &>(property).m_Value;
25  return true;
26  }
27 
29  {
30  std::stringstream myStr;
31  myStr << GetValue();
32  return myStr.str();
33  }
34 
37  : BaseProperty(other), m_Value(other.m_Value->Clone())
38  {
39  }
40 
42  : BaseProperty(), m_Value(value)
43  {
44  }
45 
46  itk::LightObject::Pointer TransferFunctionProperty::InternalClone() const
47  {
48  itk::LightObject::Pointer result(new Self(*this));
49  result->UnRegister();
50  return result;
51  }
52 
53 } // namespace mitk
The TransferFunctionProperty class Property class for the mitk::TransferFunction. ...
The TransferFunction class A wrapper class for VTK scalar opacity, gradient opacity, and color transfer functions.Holds a copy of each of the three standard VTK transfer functions (scalar opacity, gradient opacity, color) and provides an interface for manipulating their control points. Each original function can be retrieved by a Get() method.
DataCollection - Class to facilitate loading/accessing structured data.
virtual mitk::TransferFunction::Pointer GetValue() const
mitk::TransferFunction::Pointer m_Value
Abstract base class for properties.
std::string GetValueAsString() const override