42 #ifndef __vtkThreshold_h
43 #define __vtkThreshold_h
45 #include "vtkFiltersCoreModule.h"
48 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
49 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
50 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
53 #define VTK_COMPONENT_MODE_USE_SELECTED 0
54 #define VTK_COMPONENT_MODE_USE_ALL 1
55 #define VTK_COMPONENT_MODE_USE_ANY 2
68 void ThresholdByLower(
double lower);
72 void ThresholdByUpper(
double upper);
76 void ThresholdBetween(
double lower,
double upper);
80 vtkGetMacro(UpperThreshold,
double);
81 vtkGetMacro(LowerThreshold,
double);
91 vtkSetMacro(AttributeMode,
int);
92 vtkGetMacro(AttributeMode,
int);
93 void SetAttributeModeToDefault()
95 void SetAttributeModeToUsePointData()
97 void SetAttributeModeToUseCellData()
99 const char *GetAttributeModeAsString();
109 vtkSetClampMacro(ComponentMode,
int,
112 vtkGetMacro(ComponentMode,
int);
113 void SetComponentModeToUseSelected()
115 void SetComponentModeToUseAll()
117 void SetComponentModeToUseAny()
119 const char *GetComponentModeAsString();
125 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
126 vtkGetMacro(SelectedComponent,
int);
134 vtkSetMacro(AllScalars,
int);
135 vtkGetMacro(AllScalars,
int);
136 vtkBooleanMacro(AllScalars,
int);
146 void SetPointsDataType(
int type);
147 int GetPointsDataType();
154 void SetOuputPointsPrecision(
int precision);
155 int GetOutputPointsPrecision()
const;
182 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
183 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
184 int Between(
double s) {
return ( s >= this->LowerThreshold ?
185 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};