42 #ifndef vtkThreshold_h
43 #define vtkThreshold_h
45 #include "vtkFiltersCoreModule.h"
49 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
50 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
51 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
54 #define VTK_COMPONENT_MODE_USE_SELECTED 0
55 #define VTK_COMPONENT_MODE_USE_ALL 1
56 #define VTK_COMPONENT_MODE_USE_ANY 2
58 VTK_ABI_NAMESPACE_BEGIN
77 THRESHOLD_BETWEEN = 0,
87 void SetThresholdFunction(
int function);
88 int GetThresholdFunction();
96 vtkSetMacro(UpperThreshold,
double);
97 vtkSetMacro(LowerThreshold,
double);
98 vtkGetMacro(UpperThreshold,
double);
99 vtkGetMacro(LowerThreshold,
double);
112 vtkGetMacro(ComponentMode,
int);
116 const char* GetComponentModeAsString();
126 vtkSetClampMacro(SelectedComponent,
int, 0,
VTK_INT_MAX);
127 vtkGetMacro(SelectedComponent,
int);
153 vtkBooleanMacro(UseContinuousCellRange,
vtkTypeBool);
162 vtkSetMacro(Invert,
bool);
163 vtkGetMacro(Invert,
bool);
164 vtkBooleanMacro(Invert,
bool);
173 vtkSetMacro(OutputPointsPrecision,
int);
174 vtkGetMacro(OutputPointsPrecision,
int);
191 int Lower(
double s)
const;
192 int Upper(
double s)
const;
193 int Between(
double s)
const;
209 int AttributeMode = -1;
211 int SelectedComponent = 0;
216 template <
typename TScalarArray>
218 struct EvaluateCellsWorker;
220 template <
typename TScalarsArray>
221 int EvaluateComponents(TScalarsArray& scalars,
vtkIdType id);
222 template <
typename TScalarsArray>
223 int EvaluateCell(TScalarsArray& scalars,
const vtkIdType* cellPts,
vtkIdType numCellPts);
224 template <
typename TScalarsArray>
225 int EvaluateCell(TScalarsArray& scalars,
int c,
const vtkIdType* cellPts,
vtkIdType numCellPts);
233 template <
typename TScalarsArray>
234 bool ComputeMagnitude(
double& magnitude,
const TScalarsArray& scalars,
vtkIdType id);
239 int NumberOfComponents;
242 VTK_ABI_NAMESPACE_END
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.
a simple class to control print indentation
#define VTK_COMPONENT_MODE_USE_SELECTED
list of point or cell ids
abstract superclass for arrays of numeric data
#define VTK_COMPONENT_MODE_USE_ALL
Superclass for algorithms that produce only unstructured grid as output.
void SetComponentModeToUseSelected()
Control how the decision of in / out is made with multi-component data.
void SetComponentModeToUseAll()
Control how the decision of in / out is made with multi-component data.
#define VTK_COMPONENT_MODE_USE_ANY
int Between(double s) const
Methods used for thresholding.
ThresholdType
Possible values for the threshold function:
void SetComponentModeToUseAny()
Control how the decision of in / out is made with multi-component data.