Medical Imaging Interaction Toolkit  2025.12.02
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 
60 
62 
63  using BaseProperty::operator=;
64 
65  protected:
70 
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
#define MITKCORE_EXPORT
VtkScalarModeProperty(const IdType &value)
Sets the scalar mode to the given value. If it is not valid, the scalar mode is set to default (0).
VtkScalarModeProperty(const std::string &value)
Sets the scalar mode to the given value. If it is not valid, the representation is set to default (0)...
virtual void SetScalarModeToDefault()
virtual void SetScalarModeToCellData()
virtual void SetScalarModeToPointFieldData()
mitkNewMacro1Param(VtkScalarModeProperty, const IdType &)
mitkClassMacro(VtkScalarModeProperty, EnumerationProperty)
mitkNewMacro1Param(VtkScalarModeProperty, const std::string &)
virtual void AddInterpolationTypes()
bool AddEnum(const std::string &name, const IdType &id) override
virtual int GetVtkScalarMode()
virtual void SetScalarModeToCellFieldData()
virtual void SetScalarModeToPointData()
Find image slices visible on a given plane.