49 #ifndef vtkThreshold_h
50 #define vtkThreshold_h
53 #include "vtkFiltersCoreModule.h"
56 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
57 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
58 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
61 #define VTK_COMPONENT_MODE_USE_SELECTED 0
62 #define VTK_COMPONENT_MODE_USE_ALL 1
63 #define VTK_COMPONENT_MODE_USE_ANY 2
65 VTK_ABI_NAMESPACE_BEGIN
84 THRESHOLD_BETWEEN = 0,
103 vtkSetMacro(UpperThreshold,
double);
104 vtkSetMacro(LowerThreshold,
double);
105 vtkGetMacro(UpperThreshold,
double);
106 vtkGetMacro(LowerThreshold,
double);
118 vtkSetMacro(AttributeMode,
int);
121 vtkGetMacro(AttributeMode,
int);
124 void SetAttributeModeToDefault();
127 void SetAttributeModeToUsePointData();
130 void SetAttributeModeToUseCellData();
133 const
char* GetAttributeModeAsString();
146 vtkGetMacro(ComponentMode,
int);
159 vtkGetMacro(SelectedComponent,
int);
197 void SetPointsDataTypeToDouble();
200 void SetPointsDataTypeToFloat();
203 void SetPointsDataType(
int type);
206 int GetPointsDataType();
215 vtkSetMacro(Invert,
bool);
216 vtkGetMacro(Invert,
bool);
217 vtkBooleanMacro(Invert,
bool);
226 vtkSetMacro(OutputPointsPrecision,
int);
227 vtkGetMacro(OutputPointsPrecision,
int);
244 int Lower(
double s) const;
245 int Upper(
double s) const;
246 int Between(
double s) const;
257 double LowerThreshold;
258 double UpperThreshold;
262 int AttributeMode = -1;
264 int SelectedComponent = 0;
265 int OutputPointsPrecision = DEFAULT_PRECISION;
269 template <typename TScalarArray>
271 struct EvaluateCellsWorker;
273 template <typename TScalarsArray>
274 int EvaluateComponents(TScalarsArray& scalars,
vtkIdType id);
275 template <typename TScalarsArray>
277 template <typename TScalarsArray>
284 int NumberOfComponents;
287 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