43 #ifndef vtkThreshold_h
44 #define vtkThreshold_h
46 #include "vtkFiltersCoreModule.h"
49 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
50 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
51 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
54 #define VTK_COMPONENT_MODE_USE_SELECTED 0
55 #define VTK_COMPONENT_MODE_USE_ALL 1
56 #define VTK_COMPONENT_MODE_USE_ANY 2
71 void ThresholdByLower(
double lower);
76 void ThresholdByUpper(
double upper);
82 void ThresholdBetween(
double lower,
double upper);
88 vtkGetMacro(UpperThreshold,
double);
89 vtkGetMacro(LowerThreshold,
double);
101 vtkGetMacro(AttributeMode,
int);
108 const char *GetAttributeModeAsString();
120 vtkSetClampMacro(ComponentMode,
int,
123 vtkGetMacro(ComponentMode,
int);
130 const char *GetComponentModeAsString();
138 vtkSetClampMacro(SelectedComponent,
int,0,
VTK_INT_MAX);
139 vtkGetMacro(SelectedComponent,
int);
150 vtkGetMacro(AllScalars,
int);
164 vtkGetMacro(UseContinuousCellRange,
int);
178 void SetPointsDataType(
int type);
179 int GetPointsDataType();
188 void SetOutputPointsPrecision(
int precision);
189 int GetOutputPointsPrecision()
const;
199 int FillInputPortInformation(
int port, vtkInformation *
info) VTK_OVERRIDE;
203 double LowerThreshold;
204 double UpperThreshold;
207 int SelectedComponent;
208 int OutputPointsPrecision;
209 int UseContinuousCellRange;
213 int Lower(
double s) {
return ( s <= this->LowerThreshold ? 1 : 0 );};
214 int Upper(
double s) {
return ( s >= this->UpperThreshold ? 1 : 0 );};
215 int Between(
double s) {
return ( s >= this->LowerThreshold ?
216 ( s <= this->UpperThreshold ? 1 : 0 ) : 0 );};
223 void operator=(const
vtkThreshold&) VTK_DELETE_FUNCTION;
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetPointsDataTypeToDouble()
Set the data type of the output points (See the data types defined in vtkType.h). ...
static vtkUnstructuredGridAlgorithm * New()
void SetAttributeModeToUseCellData()
Control how the filter works with scalar point data and cell attribute data.
extracts cells where scalar value in cell satisfies threshold criterion
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetAttributeModeToUsePointData()
Control how the filter works with scalar point data and cell attribute data.
void SetPointsDataTypeToFloat()
Set the data type of the output points (See the data types defined in vtkType.h). ...
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
#define VTK_ATTRIBUTE_MODE_DEFAULT
Superclass for algorithms that produce only unstructured grid as output.
void SetComponentModeToUseSelected()
Control how the decision of in / out is made with multi-component data.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetComponentModeToUseAll()
Control how the decision of in / out is made with multi-component data.
#define VTK_COMPONENT_MODE_USE_ANY
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetAttributeModeToDefault()
Control how the filter works with scalar point data and cell attribute data.
void SetComponentModeToUseAny()
Control how the decision of in / out is made with multi-component data.