43 #ifndef vtkThreshold_h
44 #define vtkThreshold_h
47 #include "vtkFiltersCoreModule.h"
50 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
51 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
52 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
55 #define VTK_COMPONENT_MODE_USE_SELECTED 0
56 #define VTK_COMPONENT_MODE_USE_ALL 1
57 #define VTK_COMPONENT_MODE_USE_ANY 2
77 THRESHOLD_BETWEEN = 0,
87 void SetThresholdFunction(
int function);
88 int GetThresholdFunction();
95 void ThresholdByLower(
double lower);
101 void ThresholdByUpper(
double upper);
108 "Use 'SetLowerThreshold', 'SetUpperThreshold' and 'SetThresholdFunction' instead.")
109 void ThresholdBetween(
double lower,
double upper);
116 vtkSetMacro(UpperThreshold,
double);
117 vtkSetMacro(LowerThreshold,
double);
118 vtkGetMacro(UpperThreshold,
double);
119 vtkGetMacro(LowerThreshold,
double);
130 vtkSetMacro(AttributeMode,
int);
131 vtkGetMacro(AttributeMode,
int);
138 const char* GetAttributeModeAsString();
151 vtkGetMacro(ComponentMode,
int);
155 const char* GetComponentModeAsString();
163 vtkSetClampMacro(SelectedComponent,
int, 0,
VTK_INT_MAX);
164 vtkGetMacro(SelectedComponent,
int);
190 vtkBooleanMacro(UseContinuousCellRange,
vtkTypeBool);
203 void SetPointsDataType(
int type);
204 int GetPointsDataType();
213 vtkSetMacro(Invert,
bool);
214 vtkGetMacro(Invert,
bool);
215 vtkBooleanMacro(Invert,
bool);
224 void SetOutputPointsPrecision(
int precision);
225 int GetOutputPointsPrecision()
const;
242 int Lower(
double s)
const;
243 int Upper(
double s)
const;
244 int Between(
double s)
const;
260 int AttributeMode = -1;
262 int SelectedComponent = 0;
#define VTK_DEPRECATED_IN_9_1_0(reason)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetPointsDataTypeToDouble()
Set the data type of the output points (See the data types defined in vtkType.h). ...
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetAttributeModeToUseCellData()
Control how the filter works with scalar point data and cell attribute data.
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 SetAttributeModeToUsePointData()
Control how the filter works with scalar point data and cell attribute data.
void SetPointsDataTypeToFloat()
Set the data type of the output points (See the data types defined in vtkType.h). ...
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
#define VTK_ATTRIBUTE_MODE_DEFAULT
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.