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 );};
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#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
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
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetAttributeModeToDefault()
void SetComponentModeToUseAny()