19 #ifndef vtkThresholdPoints_h
20 #define vtkThresholdPoints_h
22 #include "vtkFiltersCoreModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
36 void ThresholdByLower(
double lower);
41 void ThresholdByUpper(
double upper);
47 void ThresholdBetween(
double lower,
double upper);
53 vtkSetMacro(UpperThreshold,
double);
54 vtkGetMacro(UpperThreshold,
double);
61 vtkSetMacro(LowerThreshold,
double);
62 vtkGetMacro(LowerThreshold,
double);
70 vtkSetMacro(InputArrayComponent,
int);
71 vtkGetMacro(InputArrayComponent,
int);
80 vtkSetMacro(OutputPointsPrecision,
int);
81 vtkGetMacro(OutputPointsPrecision,
int);
100 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
101 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
104 return (s >= this->LowerThreshold ? (s <= this->UpperThreshold ? 1 : 0) : 0);
112 VTK_ABI_NAMESPACE_END
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
extracts points whose scalar value satisfies threshold criterion
int OutputPointsPrecision
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.