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