27 #ifndef vtkThresholdPoints_h 28 #define vtkThresholdPoints_h 30 #include "vtkFiltersCoreModule.h" 43 void ThresholdByLower(
double lower);
48 void ThresholdByUpper(
double upper);
54 void ThresholdBetween(
double lower,
double upper);
61 vtkGetMacro(UpperThreshold,
double);
69 vtkGetMacro(LowerThreshold,
double);
79 vtkGetMacro(OutputPointsPrecision,
int);
97 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
98 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
99 int Between(
double s) {
return ( s >= this->LowerThreshold ?
100 ( 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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int OutputPointsPrecision
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkThresholdPoints() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.