Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
mitkTransferFunctionProperty.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 #ifndef MITKTRANFERFUNCTIONPROPERTY_H_HEADER_INCLUDED
13 #define MITKTRANFERFUNCTIONPROPERTY_H_HEADER_INCLUDED
14 
15 #include "mitkBaseProperty.h"
16 #include "mitkTransferFunction.h"
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
37  {
38  public:
40 
42 
43  itkFactorylessNewMacro(Self);
44 
45  itkCloneMacro(Self)
47 
48  itkSetMacro(Value, mitk::TransferFunction::Pointer);
49  itkGetConstMacro(Value, mitk::TransferFunction::Pointer);
50 
51  std::string GetValueAsString() const override;
52 
53  using BaseProperty::operator=;
54 
55  protected:
56  mitk::TransferFunction::Pointer m_Value;
57 
58  TransferFunctionProperty();
59  TransferFunctionProperty(const TransferFunctionProperty &other);
60 
61  TransferFunctionProperty(mitk::TransferFunction::Pointer value);
62 
63  private:
64  // purposely not implemented
65  TransferFunctionProperty &operator=(const TransferFunctionProperty &);
66 
67  itk::LightObject::Pointer InternalClone() const override;
68 
69  bool IsEqual(const BaseProperty &property) const override;
70  bool Assign(const BaseProperty &property) override;
71  };
72 
73 #ifdef _MSC_VER
74 #pragma warning(pop)
75 #endif
76 
77 } // namespace mitk
78 
79 #endif /* MITKTRANFERFUNCTIONPROPERTY_H_HEADER_INCLUDED */
The TransferFunctionProperty class Property class for the mitk::TransferFunction. ...
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
STL namespace.
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.
Abstract base class for properties.
mitk::TransferFunction::Pointer ValueType
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36