Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkVtkScalarModeProperty.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 
17 #ifndef _MITK_VTK_SCALARMODE_PROPERTY__H_
18 #define _MITK_VTK_SCALARMODE_PROPERTY__H_
19 
21 
22 namespace mitk
23 {
24 #ifdef _MSC_VER
25 #pragma warning(push)
26 #pragma warning(disable : 4522)
27 #endif
28 
39  {
40  public:
42 
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
46 
47  mitkNewMacro1Param(VtkScalarModeProperty, const std::string &);
48 
53  virtual int GetVtkScalarMode();
54 
55  virtual void SetScalarModeToDefault();
56 
57  virtual void SetScalarModeToPointData();
58 
59  virtual void SetScalarModeToCellData();
60 
61  virtual void SetScalarModeToPointFieldData();
62 
63  virtual void SetScalarModeToCellFieldData();
64 
65  using BaseProperty::operator=;
66 
67  protected:
71  VtkScalarModeProperty();
72 
78  VtkScalarModeProperty(const IdType &value);
79 
85  VtkScalarModeProperty(const std::string &value);
86 
91  virtual bool AddEnum(const std::string &name, const IdType &id) override;
92 
97  virtual void AddInterpolationTypes();
98 
99  private:
100  // purposely not implemented
101  VtkScalarModeProperty &operator=(const VtkScalarModeProperty &);
102 
103  virtual itk::LightObject::Pointer InternalClone() const override;
104  };
105 
106 #ifdef _MSC_VER
107 #pragma warning(pop)
108 #endif
109 
110 } // end of namespace mitk
111 
112 #endif //_MITK_VTK_SCALARMODE_PROPERTY__H_
#define MITKCORE_EXPORT
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:76
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44