43 #ifndef vtkThreshold_h
44 #define vtkThreshold_h
46 #include "vtkFiltersCoreModule.h"
49 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
50 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
51 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
54 #define VTK_COMPONENT_MODE_USE_SELECTED 0
55 #define VTK_COMPONENT_MODE_USE_ALL 1
56 #define VTK_COMPONENT_MODE_USE_ANY 2
71 void ThresholdByLower(
double lower);
76 void ThresholdByUpper(
double upper);
82 void ThresholdBetween(
double lower,
double upper);
88 vtkGetMacro(UpperThreshold,
double);
89 vtkGetMacro(LowerThreshold,
double);
100 vtkSetMacro(AttributeMode,
int);
101 vtkGetMacro(AttributeMode,
int);
108 const char *GetAttributeModeAsString();
120 vtkSetClampMacro(ComponentMode,
int,
123 vtkGetMacro(ComponentMode,
int);
130 const char *GetComponentModeAsString();
138 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
139 vtkGetMacro(SelectedComponent,
int);
165 vtkBooleanMacro(UseContinuousCellRange,
vtkTypeBool);
178 void SetPointsDataType(
int type);
179 int GetPointsDataType();
188 vtkSetMacro(Invert,
bool);
189 vtkGetMacro(Invert,
bool);
190 vtkBooleanMacro(Invert,
bool);
199 void SetOutputPointsPrecision(
int precision);
200 int GetOutputPointsPrecision()
const;
225 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
226 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
227 int Between(
double s) {
return ( s >= this->LowerThreshold ?
228 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};