42 #ifndef __vtkThreshold_h
43 #define __vtkThreshold_h
47 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
48 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
49 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
52 #define VTK_COMPONENT_MODE_USE_SELECTED 0
53 #define VTK_COMPONENT_MODE_USE_ALL 1
54 #define VTK_COMPONENT_MODE_USE_ANY 2
67 void ThresholdByLower(
double lower);
71 void ThresholdByUpper(
double upper);
75 void ThresholdBetween(
double lower,
double upper);
79 vtkGetMacro(UpperThreshold,
double);
80 vtkGetMacro(LowerThreshold,
double);
90 vtkSetMacro(AttributeMode,
int);
91 vtkGetMacro(AttributeMode,
int);
98 const char *GetAttributeModeAsString();
108 vtkSetClampMacro(ComponentMode,
int,
111 vtkGetMacro(ComponentMode,
int);
118 const char *GetComponentModeAsString();
124 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
125 vtkGetMacro(SelectedComponent,
int);
133 vtkSetMacro(AllScalars,
int);
134 vtkGetMacro(AllScalars,
int);
135 vtkBooleanMacro(AllScalars,
int);
143 vtkSetMacro( PointsDataType,
int );
144 vtkGetMacro( PointsDataType,
int );
171 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
172 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
173 int Between(
double s) {
return ( s >= this->LowerThreshold ?
174 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};