37 #ifndef vtkThreshold_h
38 #define vtkThreshold_h
41 #include "vtkFiltersCoreModule.h"
44 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
45 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
46 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
49 #define VTK_COMPONENT_MODE_USE_SELECTED 0
50 #define VTK_COMPONENT_MODE_USE_ALL 1
51 #define VTK_COMPONENT_MODE_USE_ANY 2
71 THRESHOLD_BETWEEN = 0,
89 void ThresholdByLower(
double lower);
95 void ThresholdByUpper(
double upper);
102 "Use 'SetLowerThreshold', 'SetUpperThreshold' and 'SetThresholdFunction' instead.")
103 void ThresholdBetween(
double lower,
double upper);
110 vtkSetMacro(UpperThreshold,
double);
111 vtkSetMacro(LowerThreshold,
double);
112 vtkGetMacro(UpperThreshold,
double);
113 vtkGetMacro(LowerThreshold,
double);
124 vtkSetMacro(AttributeMode,
int);
125 vtkGetMacro(AttributeMode,
int);
145 vtkGetMacro(ComponentMode,
int);
158 vtkGetMacro(SelectedComponent,
int);
207 vtkSetMacro(Invert,
bool);
208 vtkGetMacro(Invert,
bool);
209 vtkBooleanMacro(Invert,
bool);
254 int AttributeMode = -1;
256 int SelectedComponent = 0;
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(vtkDataArray *scalars, vtkIdList *cellPts, int numCellPts)
const char * GetComponentModeAsString()
Control how the decision of in / out is made with multi-component data.
void SetAttributeModeToUsePointData()
Control how the filter works with scalar point data and cell attribute data.
void SetPointsDataType(int type)
Set the data type of the output points (See the data types defined in vtkType.h).
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.
const char * GetAttributeModeAsString()
Control how the filter works with scalar point data and cell attribute data.
ThresholdType
Possible values for the threshold function:
void SetComponentModeToUseAll()
Control how the decision of in / out is made with multi-component data.
int GetOutputPointsPrecision() const
Set/get the desired precision for the output types.
void SetPointsDataTypeToDouble()
Set the data type of the output points (See the data types defined in vtkType.h).
void SetAttributeModeToUseCellData()
Control how the filter works with scalar point data and cell attribute data.
int EvaluateComponents(vtkDataArray *scalars, vtkIdType id)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int GetPointsDataType()
Set the data type of the output points (See the data types defined in vtkType.h).
void SetPointsDataTypeToFloat()
Set the data type of the output points (See the data types defined in vtkType.h).
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output types.
static vtkThreshold * New()
int Upper(double s) const
Methods used for thresholding.
int Between(double s) const
Methods used for thresholding.
int EvaluateCell(vtkDataArray *scalars, int c, vtkIdList *cellPts, int numCellPts)
int Lower(double s) const
Methods used for thresholding.
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.
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_DEPRECATED_IN_9_1_0(reason)
#define VTK_COMPONENT_MODE_USE_SELECTED
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
#define VTK_ATTRIBUTE_MODE_DEFAULT
#define VTK_COMPONENT_MODE_USE_ALL
#define VTK_COMPONENT_MODE_USE_ANY
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA