150#ifndef vtkThreshold_h
151#define vtkThreshold_h
154#include "vtkFiltersCoreModule.h"
157#define VTK_ATTRIBUTE_MODE_DEFAULT 0
158#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
159#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
162#define VTK_COMPONENT_MODE_USE_SELECTED 0
163#define VTK_COMPONENT_MODE_USE_ALL 1
164#define VTK_COMPONENT_MODE_USE_ANY 2
166VTK_ABI_NAMESPACE_BEGIN
185 THRESHOLD_BETWEEN = 0,
204 vtkSetMacro(UpperThreshold,
double);
205 vtkSetMacro(LowerThreshold,
double);
206 vtkGetMacro(UpperThreshold,
double);
207 vtkGetMacro(LowerThreshold,
double);
219 vtkSetMacro(AttributeMode,
int);
222 vtkGetMacro(AttributeMode,
int);
225 void SetAttributeModeToDefault();
228 void SetAttributeModeToUsePointData();
231 void SetAttributeModeToUseCellData();
234 const
char* GetAttributeModeAsString();
247 vtkGetMacro(ComponentMode,
int);
262 vtkGetMacro(SelectedComponent,
int);
300 void SetPointsDataTypeToDouble();
303 void SetPointsDataTypeToFloat();
306 void SetPointsDataType(
int type);
309 int GetPointsDataType();
318 vtkSetMacro(Invert,
bool);
319 vtkGetMacro(Invert,
bool);
320 vtkBooleanMacro(Invert,
bool);
329 vtkSetMacro(OutputPointsPrecision,
int);
330 vtkGetMacro(OutputPointsPrecision,
int);
347 int Lower(
double s) const;
348 int Upper(
double s) const;
349 int Between(
double s) const;
360 double LowerThreshold;
361 double UpperThreshold;
365 int AttributeMode = -1;
367 int SelectedComponent = 0;
368 int OutputPointsPrecision = DEFAULT_PRECISION;
372 template <typename TScalarArray>
374 struct EvaluateCellsWorker;
376 template <typename TScalarsArray>
377 int EvaluateComponents(TScalarsArray& scalars,
vtkIdType id);
378 template <typename TScalarsArray>
380 template <typename TScalarsArray>
389 template <typename TScalarsArray>
390 bool ComputeMagnitude(
double& magnitude, const TScalarsArray& scalars,
vtkIdType id);
395 int NumberOfComponents;
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.
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.
const char * GetComponentModeAsString()
Control how the decision of in / out is made with multi-component data.
int GetThresholdFunction()
Get/Set the threshold method, defining which threshold bounds to use.
static vtkThreshold * New()
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