28 #ifndef vtkThresholdPoints_h
29 #define vtkThresholdPoints_h
31 #include "vtkFiltersCoreModule.h"
44 void ThresholdByLower(
double lower);
49 void ThresholdByUpper(
double upper);
55 void ThresholdBetween(
double lower,
double upper);
61 vtkSetMacro(UpperThreshold,
double);
62 vtkGetMacro(UpperThreshold,
double);
69 vtkSetMacro(LowerThreshold,
double);
70 vtkGetMacro(LowerThreshold,
double);
79 vtkSetMacro(OutputPointsPrecision,
int);
80 vtkGetMacro(OutputPointsPrecision,
int);
98 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
99 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
102 return (s >= this->LowerThreshold ? (s <= this->UpperThreshold ? 1 : 0) : 0);