18 #include <vtkAbstractMapper.h>
28 AddInterpolationTypes();
29 if (IsValidEnumerationValue(value))
35 SetScalarModeToDefault();
41 AddInterpolationTypes();
42 if (IsValidEnumerationValue(value))
48 SetScalarModeToDefault();
54 return static_cast<int>(GetValueAsId());
59 SetValue(static_cast<IdType>(VTK_SCALAR_MODE_DEFAULT));
64 SetValue(static_cast<IdType>(VTK_SCALAR_MODE_USE_POINT_DATA));
69 SetValue(static_cast<IdType>(VTK_SCALAR_MODE_USE_CELL_DATA));
74 SetValue(static_cast<IdType>(VTK_SCALAR_MODE_USE_POINT_FIELD_DATA));
79 SetValue(static_cast<IdType>(VTK_SCALAR_MODE_USE_CELL_FIELD_DATA));
84 AddEnum(
"Default", static_cast<IdType>(VTK_SCALAR_MODE_DEFAULT));
85 AddEnum(
"PointData", static_cast<IdType>(VTK_SCALAR_MODE_USE_POINT_DATA));
86 AddEnum(
"CellData", static_cast<IdType>(VTK_SCALAR_MODE_USE_CELL_DATA));
87 AddEnum(
"PointFieldData", static_cast<IdType>(VTK_SCALAR_MODE_USE_POINT_FIELD_DATA));
88 AddEnum(
"CellFieldData", static_cast<IdType>(VTK_SCALAR_MODE_USE_CELL_FIELD_DATA));
93 return Superclass::AddEnum(name,
id);
itk::SmartPointer< Self > Pointer
virtual void SetScalarModeToPointData()
virtual bool AddEnum(const std::string &name, const IdType &id) override
virtual void SetScalarModeToDefault()
virtual int GetVtkScalarMode()
virtual void SetScalarModeToCellData()
virtual void SetScalarModeToPointFieldData()
virtual void AddInterpolationTypes()
virtual void SetScalarModeToCellFieldData()