19 #ifndef vtkThresholdPoints_h
20 #define vtkThresholdPoints_h
23 #include "vtkFiltersCoreModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
43 THRESHOLD_BETWEEN = 0,
52 void SetThresholdFunction(
int function);
53 int GetThresholdFunction();
60 void ThresholdByLower(
double lower);
66 void ThresholdByUpper(
double upper);
73 "Use 'SetLowerThreshold', 'SetUpperThreshold' and 'SetThresholdFunction' instead.")
74 void ThresholdBetween(
double lower,
double upper);
81 vtkSetMacro(UpperThreshold,
double);
82 vtkGetMacro(UpperThreshold,
double);
83 vtkSetMacro(LowerThreshold,
double);
84 vtkGetMacro(LowerThreshold,
double);
92 vtkSetMacro(InputArrayComponent,
int);
93 vtkGetMacro(InputArrayComponent,
int);
102 vtkSetMacro(OutputPointsPrecision,
int);
103 vtkGetMacro(OutputPointsPrecision,
int);
108 ~vtkThresholdPoints() override = default;
113 int FillInputPortInformation(
int port, vtkInformation*
info) override;
115 double LowerThreshold = -
std::numeric_limits<
double>::infinity();
116 double UpperThreshold =
std::numeric_limits<
double>::infinity();
117 int InputArrayComponent = 0;
118 int OutputPointsPrecision = DEFAULT_PRECISION;
120 int (vtkThresholdPoints::*ThresholdFunction)(
double s) = &vtkThresholdPoints::Between;
122 int Lower(
double s) {
return (s <= this->LowerThreshold ? 1 : 0); }
123 int Upper(
double s) {
return (s >= this->UpperThreshold ? 1 : 0); }
126 return ((s >= this->LowerThreshold && s <= this->UpperThreshold) ? 1 : 0);
134 VTK_ABI_NAMESPACE_END
static vtkPolyDataAlgorithm * New()
#define VTK_DEPRECATED_IN_9_6_0(reason)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
ThresholdType
Possible values for the threshold function:
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.