32 #ifndef __vtkThresholdPoints_h
33 #define __vtkThresholdPoints_h
35 #include "vtkFiltersCoreModule.h"
36 #include "vtkPolyDataAlgorithm.h"
43 void PrintSelf(ostream& os, vtkIndent indent);
47 void ThresholdByLower(
double lower);
51 void ThresholdByUpper(
double upper);
55 void ThresholdBetween(
double lower,
double upper);
59 vtkSetMacro(UpperThreshold,
double);
60 vtkGetMacro(UpperThreshold,
double);
65 vtkSetMacro(LowerThreshold,
double);
66 vtkGetMacro(LowerThreshold,
double);
74 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
76 virtual int FillInputPortInformation(
int port, vtkInformation *info);
85 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
86 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
87 int Between(
double s) {
return ( s >= this->LowerThreshold ?
88 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
extracts points whose scalar value satisfies threshold criterion