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);
100 const char *GetAttributeModeAsString();
120 const char *GetComponentModeAsString();
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 vtkGetMacro(name, type)
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetPointsDataTypeToDouble()
static vtkUnstructuredGridAlgorithm * New()
#define vtkSetClampMacro(name, type, min, max)
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetAttributeModeToUseCellData()
#define vtkTypeMacro(thisClass, superclass)
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
#define vtkBooleanMacro(name, type)
void SetAttributeModeToDefault()
int OutputPointsPrecision
void SetComponentModeToUseAny()
#define vtkSetMacro(name, type)