Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
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 (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 
13 #ifndef mitkVtkScalarModeProperty_h
14 #define mitkVtkScalarModeProperty_h
15 
17 
18 namespace mitk
19 {
20 #ifdef _MSC_VER
21 #pragma warning(push)
22 #pragma warning(disable : 4522)
23 #endif
24 
35  {
36  public:
38 
39  itkFactorylessNewMacro(Self);
40 
41  itkCloneMacro(Self);
42 
44 
46 
51  virtual int GetVtkScalarMode();
52 
53  virtual void SetScalarModeToDefault();
54 
55  virtual void SetScalarModeToPointData();
56 
57  virtual void SetScalarModeToCellData();
58 
59  virtual void SetScalarModeToPointFieldData();
60 
61  virtual void SetScalarModeToCellFieldData();
62 
63  using BaseProperty::operator=;
64 
65  protected:
70 
76  VtkScalarModeProperty(const IdType &value);
77 
83  VtkScalarModeProperty(const std::string &value);
84 
89  bool AddEnum(const std::string &name, const IdType &id) override;
90 
95  virtual void AddInterpolationTypes();
96 
97  private:
98  // purposely not implemented
99  VtkScalarModeProperty &operator=(const VtkScalarModeProperty &);
100 
101  itk::LightObject::Pointer InternalClone() const override;
102  };
103 
104 #ifdef _MSC_VER
105 #pragma warning(pop)
106 #endif
107 
108 } // end of namespace mitk
109 
110 #endif
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
mitk::EnumerationProperty
Definition: mitkEnumerationProperty.h:43
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::EnumerationProperty::IdType
unsigned int IdType
Definition: mitkEnumerationProperty.h:48
mitkEnumerationProperty.h
mitk::VtkScalarModeProperty
Definition: mitkVtkScalarModeProperty.h:34
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15