151#ifndef vtkThreshold_h
152#define vtkThreshold_h
154#include "vtkFiltersCoreModule.h"
158#define VTK_ATTRIBUTE_MODE_DEFAULT 0
159#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
160#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
163#define VTK_COMPONENT_MODE_USE_SELECTED 0
164#define VTK_COMPONENT_MODE_USE_ALL 1
165#define VTK_COMPONENT_MODE_USE_ANY 2
167VTK_ABI_NAMESPACE_BEGIN
186 THRESHOLD_BETWEEN = 0,
205 vtkSetMacro(UpperThreshold,
double);
206 vtkSetMacro(LowerThreshold,
double);
207 vtkGetMacro(UpperThreshold,
double);
208 vtkGetMacro(LowerThreshold,
double);
221 vtkGetMacro(ComponentMode,
int);
236 vtkGetMacro(SelectedComponent,
int);
271 vtkSetMacro(Invert,
bool);
272 vtkGetMacro(Invert,
bool);
273 vtkBooleanMacro(Invert,
bool);
282 vtkSetMacro(OutputPointsPrecision,
int);
283 vtkGetMacro(OutputPointsPrecision,
int);
318 int AttributeMode = -1;
320 int SelectedComponent = 0;
325 template <
typename TScalarArray>
327 struct EvaluateCellsWorker;
329 template <
typename TScalarsArray>
331 template <
typename TScalarsArray>
333 template <
typename TScalarsArray>
342 template <
typename TScalarsArray>
343 bool ComputeMagnitude(
double& magnitude,
const TScalarsArray& scalars,
vtkIdType id);
348 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.
int EvaluateCell(TScalarsArray &scalars, const vtkIdType *cellPts, vtkIdType numCellPts)
void SetThresholdFunction(int function)
Get/Set the threshold method, defining which threshold bounds to use.
void SetComponentModeToUseSelected()
Control how the decision of in / out is made with multi-component data.
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 FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int EvaluateComponents(TScalarsArray &scalars, vtkIdType id)
int Upper(double s) const
Methods used for thresholding.
int Between(double s) const
Methods used for thresholding.
int Lower(double s) const
Methods used for thresholding.
int EvaluateCell(TScalarsArray &scalars, int c, const vtkIdType *cellPts, vtkIdType numCellPts)
int GetThresholdFunction()
Get/Set the threshold method, defining which threshold bounds to use.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkThreshold * New()
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_COMPONENT_MODE_USE_SELECTED
#define VTK_COMPONENT_MODE_USE_ALL
#define VTK_COMPONENT_MODE_USE_ANY