Medical Imaging Interaction Toolkit  2026.06.00
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 {
31  {
32  public:
34 
35  itkFactorylessNewMacro(Self);
36 
37  itkCloneMacro(Self);
38 
40 
42 
48  virtual int GetVtkScalarMode();
49 
51  virtual void SetScalarModeToDefault();
52 
54  virtual void SetScalarModeToPointData();
55 
57  virtual void SetScalarModeToCellData();
58 
61 
64 
65  using BaseProperty::operator=;
66 
67  protected:
72 
82 
91  VtkScalarModeProperty(const std::string &value);
92 
95 
106  bool AddEnum(const std::string &name, const IdType &id) override;
107 
111  virtual void AddInterpolationTypes();
112 
114 
115  private:
116  // purposely not implemented
117  VtkScalarModeProperty &operator=(const VtkScalarModeProperty &);
118  };
119 
120 
121 } // end of namespace mitk
122 
123 #endif
#define MITKCORE_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
Encapsulates the VTK scalar mode enumeration as an EnumerationProperty.
VtkScalarModeProperty(const IdType &value)
Construct with an integer scalar mode value.
VtkScalarModeProperty(const std::string &value)
Construct with a string scalar mode value.
virtual void SetScalarModeToDefault()
Set the scalar mode to VTK_SCALAR_MODE_DEFAULT.
VtkScalarModeProperty()
Default constructor. Sets the scalar mode to VTK_SCALAR_MODE_DEFAULT.
virtual void SetScalarModeToCellData()
Set the scalar mode to VTK_SCALAR_MODE_USE_CELL_DATA.
virtual void SetScalarModeToPointFieldData()
Set the scalar mode to VTK_SCALAR_MODE_USE_POINT_FIELD_DATA.
VtkScalarModeProperty(const VtkScalarModeProperty &other)
Copy constructor.
mitkNewMacro1Param(VtkScalarModeProperty, const IdType &)
mitkClassMacro(VtkScalarModeProperty, EnumerationProperty)
mitkNewMacro1Param(VtkScalarModeProperty, const std::string &)
virtual void AddInterpolationTypes()
Populate the enumeration with the VTK-defined scalar mode types.
bool AddEnum(const std::string &name, const IdType &id) override
Add an enumeration value.
mitkCloneMacro(VtkScalarModeProperty)
virtual int GetVtkScalarMode()
Return the current scalar mode value as defined by VTK constants.
virtual void SetScalarModeToCellFieldData()
Set the scalar mode to VTK_SCALAR_MODE_USE_CELL_FIELD_DATA.
virtual void SetScalarModeToPointData()
Set the scalar mode to VTK_SCALAR_MODE_USE_POINT_DATA.
Find image slices visible on a given plane.