42 #ifndef vtkThreshold_h
43 #define vtkThreshold_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
69 void ThresholdByLower(
double lower);
73 void ThresholdByUpper(
double upper);
77 void ThresholdBetween(
double lower,
double upper);
81 vtkGetMacro(UpperThreshold,
double);
82 vtkGetMacro(LowerThreshold,
double);
92 vtkSetMacro(AttributeMode,
int);
93 vtkGetMacro(AttributeMode,
int);
100 const char *GetAttributeModeAsString();
110 vtkSetClampMacro(ComponentMode,
int,
113 vtkGetMacro(ComponentMode,
int);
120 const char *GetComponentModeAsString();
126 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
127 vtkGetMacro(SelectedComponent,
int);
135 vtkSetMacro(AllScalars,
int);
136 vtkGetMacro(AllScalars,
int);
137 vtkBooleanMacro(AllScalars,
int);
147 vtkSetMacro(UseContinuousCellRange,
int);
148 vtkGetMacro(UseContinuousCellRange,
int);
149 vtkBooleanMacro(UseContinuousCellRange,
int);
159 void SetPointsDataType(
int type);
160 int GetPointsDataType();
167 void SetOutputPointsPrecision(
int precision);
168 int GetOutputPointsPrecision()
const;
194 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
195 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
196 int Between(
double s) {
return ( s >= this->LowerThreshold ?
197 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetPointsDataTypeToDouble()
static vtkUnstructuredGridAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetAttributeModeToUseCellData()
extracts cells where scalar value in cell satisfies threshold criterion
void SetAttributeModeToUsePointData()
void SetPointsDataTypeToFloat()
a simple class to control print indentation
#define VTK_COMPONENT_MODE_USE_SELECTED
list of point or cell ids
abstract superclass for arrays of numeric data
#define VTK_COMPONENT_MODE_USE_ALL
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_ATTRIBUTE_MODE_DEFAULT
Superclass for algorithms that produce only unstructured grid as output.
void SetComponentModeToUseSelected()
void SetComponentModeToUseAll()
#define VTK_COMPONENT_MODE_USE_ANY
int UseContinuousCellRange
void SetAttributeModeToDefault()
int OutputPointsPrecision
void SetComponentModeToUseAny()