161 #ifndef vtkThreshold_h
162 #define vtkThreshold_h
165 #include "vtkFiltersCoreModule.h"
168 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
169 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
170 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
173 #define VTK_COMPONENT_MODE_USE_SELECTED 0
174 #define VTK_COMPONENT_MODE_USE_ALL 1
175 #define VTK_COMPONENT_MODE_USE_ANY 2
177 VTK_ABI_NAMESPACE_BEGIN
196 THRESHOLD_BETWEEN = 0,
215 vtkSetMacro(UpperThreshold,
double);
216 vtkSetMacro(LowerThreshold,
double);
217 vtkGetMacro(UpperThreshold,
double);
218 vtkGetMacro(LowerThreshold,
double);
230 vtkSetMacro(AttributeMode,
int);
233 vtkGetMacro(AttributeMode,
int);
236 void SetAttributeModeToDefault();
239 void SetAttributeModeToUsePointData();
242 void SetAttributeModeToUseCellData();
245 const
char* GetAttributeModeAsString();
258 vtkGetMacro(ComponentMode,
int);
271 vtkGetMacro(SelectedComponent,
int);
309 void SetPointsDataTypeToDouble();
312 void SetPointsDataTypeToFloat();
315 void SetPointsDataType(
int type);
318 int GetPointsDataType();
327 vtkSetMacro(Invert,
bool);
328 vtkGetMacro(Invert,
bool);
329 vtkBooleanMacro(Invert,
bool);
338 vtkSetMacro(OutputPointsPrecision,
int);
339 vtkGetMacro(OutputPointsPrecision,
int);
356 int Lower(
double s) const;
357 int Upper(
double s) const;
358 int Between(
double s) const;
369 double LowerThreshold;
370 double UpperThreshold;
374 int AttributeMode = -1;
376 int SelectedComponent = 0;
377 int OutputPointsPrecision = DEFAULT_PRECISION;
381 template <typename TScalarArray>
383 struct EvaluateCellsWorker;
385 template <typename TScalarsArray>
386 int EvaluateComponents(TScalarsArray& scalars,
vtkIdType id);
387 template <typename TScalarsArray>
389 template <typename TScalarsArray>
396 int NumberOfComponents;
399 VTK_ABI_NAMESPACE_END
abstract superclass for arrays of numeric data
list of point or cell ids
a simple class to control print indentation
extracts cells where scalar value in cell satisfies threshold criterion
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetComponentModeAsString()
Control how the decision of in / out is made with multi-component data.
void SetThresholdFunction(int function)
Get/Set the threshold method, defining which threshold bounds to use.
void SetComponentModeToUseAny()
Control how the decision of in / out is made with multi-component data.
ThresholdType
Possible values for the threshold function:
void SetComponentModeToUseAll()
Control how the decision of in / out is made with multi-component data.
static vtkThreshold * New()
int GetThresholdFunction()
Get/Set the threshold method, defining which threshold bounds to use.
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_DEPRECATED_IN_9_3_0(reason)
#define VTK_COMPONENT_MODE_USE_SELECTED
#define VTK_COMPONENT_MODE_USE_ALL
#define VTK_COMPONENT_MODE_USE_ANY