37 #ifndef vtkThreshold_h
38 #define vtkThreshold_h
40 #include "vtkFiltersCoreModule.h"
43 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
44 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
45 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
48 #define VTK_COMPONENT_MODE_USE_SELECTED 0
49 #define VTK_COMPONENT_MODE_USE_ALL 1
50 #define VTK_COMPONENT_MODE_USE_ANY 2
65 void ThresholdByLower(
double lower);
70 void ThresholdByUpper(
double upper);
76 void ThresholdBetween(
double lower,
double upper);
82 vtkGetMacro(UpperThreshold,
double);
83 vtkGetMacro(LowerThreshold,
double);
94 vtkSetMacro(AttributeMode,
int);
95 vtkGetMacro(AttributeMode,
int);
102 const char *GetAttributeModeAsString();
114 vtkSetClampMacro(ComponentMode,
int,
117 vtkGetMacro(ComponentMode,
int);
124 const char *GetComponentModeAsString();
132 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
133 vtkGetMacro(SelectedComponent,
int);
159 vtkBooleanMacro(UseContinuousCellRange,
vtkTypeBool);
172 void SetPointsDataType(
int type);
173 int GetPointsDataType();
182 void SetOutputPointsPrecision(
int precision);
183 int GetOutputPointsPrecision()
const;
207 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
208 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
209 int Between(
double s) {
return ( s >= this->LowerThreshold ?
210 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};