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
88 vtkGetMacro(UpperThreshold,
double);
89 vtkGetMacro(LowerThreshold,
double);
101 vtkGetMacro(AttributeMode,
int);
120 vtkSetClampMacro(ComponentMode,
int,
123 vtkGetMacro(ComponentMode,
int);
139 vtkGetMacro(SelectedComponent,
int);
150 vtkGetMacro(AllScalars,
int);
164 vtkGetMacro(UseContinuousCellRange,
int);
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;
abstract superclass for arrays of numeric data
list of point or cell ids
a simple class to control print indentation
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.
int EvaluateCell(vtkDataArray *scalars, vtkIdList *cellPts, int numCellPts)
const char * GetComponentModeAsString()
void ThresholdBetween(double lower, double upper)
Criterion is cells whose scalars are between lower and upper thresholds (inclusive of the end values)...
void SetAttributeModeToUsePointData()
void SetPointsDataType(int type)
void SetComponentModeToUseSelected()
void SetComponentModeToUseAny()
const char * GetAttributeModeAsString()
void SetComponentModeToUseAll()
int GetOutputPointsPrecision() const
void SetPointsDataTypeToDouble()
Set the data type of the output points (See the data types defined in vtkType.h).
void SetAttributeModeToUseCellData()
int EvaluateComponents(vtkDataArray *scalars, vtkIdType id)
void SetPointsDataTypeToFloat()
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output types.
void SetAttributeModeToDefault()
void ThresholdByLower(double lower)
Criterion is cells whose scalars are less or equal to lower threshold.
static vtkThreshold * New()
void ThresholdByUpper(double upper)
Criterion is cells whose scalars are greater or equal to upper threshold.
int EvaluateCell(vtkDataArray *scalars, int c, vtkIdList *cellPts, int numCellPts)
Superclass for algorithms that produce only unstructured grid as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_COMPONENT_MODE_USE_SELECTED
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
#define VTK_ATTRIBUTE_MODE_DEFAULT
#define VTK_COMPONENT_MODE_USE_ALL
#define VTK_COMPONENT_MODE_USE_ANY
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA