128#ifndef vtkThresholdPoints_h
129#define vtkThresholdPoints_h
132#include "vtkFiltersCoreModule.h"
136VTK_ABI_NAMESPACE_BEGIN
152 THRESHOLD_BETWEEN = 0,
169 void ThresholdByLower(
double lower);
175 void ThresholdByUpper(
double upper);
182 "Use 'SetLowerThreshold', 'SetUpperThreshold' and 'SetThresholdFunction' instead.")
183 void ThresholdBetween(
double lower,
double upper);
190 vtkSetMacro(UpperThreshold,
double);
191 vtkGetMacro(UpperThreshold,
double);
192 vtkSetMacro(LowerThreshold,
double);
193 vtkGetMacro(LowerThreshold,
double);
201 vtkSetMacro(InputArrayComponent,
int);
202 vtkGetMacro(InputArrayComponent,
int);
211 vtkSetMacro(OutputPointsPrecision,
int);
212 vtkGetMacro(OutputPointsPrecision,
int);
224 double LowerThreshold = -
std::numeric_limits<
double>::infinity();
225 double UpperThreshold =
std::numeric_limits<
double>::infinity();
226 int InputArrayComponent = 0;
227 int OutputPointsPrecision = DEFAULT_PRECISION;
231 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
232 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
235 return ((s >= this->LowerThreshold && s <= this->UpperThreshold) ? 1 : 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.
static vtkThresholdPoints * New()
int GetThresholdFunction()
Set/Get the threshold method.
void SetThresholdFunction(int function)
Set/Get the threshold method.
ThresholdType
Possible values for the threshold function:
#define VTK_DEPRECATED_IN_9_5_0(reason)