28 #ifndef vtkThresholdPoints_h
29 #define vtkThresholdPoints_h
31 #include "vtkFiltersCoreModule.h"
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);
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
extracts points whose scalar value satisfies threshold criterion
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ThresholdByLower(double lower)
Criterion is cells whose scalars are less or equal to lower threshold.
static vtkThresholdPoints * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkThresholdPoints() override
void ThresholdBetween(double lower, double upper)
Criterion is cells whose scalars are between lower and upper thresholds (inclusive of the end values)...
void ThresholdByUpper(double upper)
Criterion is cells whose scalars are greater or equal to upper threshold.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int OutputPointsPrecision