31 #ifndef vtkThresholdPoints_h
32 #define vtkThresholdPoints_h
34 #include "vtkFiltersCoreModule.h"
47 void ThresholdByLower(
double lower);
52 void ThresholdByUpper(
double upper);
58 void ThresholdBetween(
double lower,
double upper);
64 vtkSetMacro(UpperThreshold,
double);
65 vtkGetMacro(UpperThreshold,
double);
72 vtkSetMacro(LowerThreshold,
double);
73 vtkGetMacro(LowerThreshold,
double);
81 vtkSetMacro(InputArrayComponent,
int);
82 vtkGetMacro(InputArrayComponent,
int);
91 vtkSetMacro(OutputPointsPrecision,
int);
92 vtkGetMacro(OutputPointsPrecision,
int);
111 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
112 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
115 return (s >= this->LowerThreshold ? (s <= this->UpperThreshold ? 1 : 0) : 0);
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.