 |
VTK
9.0.1
|
Go to the documentation of this file.
37 #ifndef vtkThreshold_h
38 #define vtkThreshold_h
40 #include "vtkFiltersCoreModule.h"
43 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
44 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
45 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
48 #define VTK_COMPONENT_MODE_USE_SELECTED 0
49 #define VTK_COMPONENT_MODE_USE_ALL 1
50 #define VTK_COMPONENT_MODE_USE_ANY 2
82 vtkGetMacro(UpperThreshold,
double);
83 vtkGetMacro(LowerThreshold,
double);
94 vtkSetMacro(AttributeMode,
int);
95 vtkGetMacro(AttributeMode,
int);
115 vtkGetMacro(ComponentMode,
int);
128 vtkGetMacro(SelectedComponent,
int);
177 vtkSetMacro(Invert,
bool);
178 vtkGetMacro(Invert,
bool);
179 vtkBooleanMacro(Invert,
bool);
const char * GetAttributeModeAsString()
void SetAttributeModeToDefault()
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetComponentModeToUseAny()
void ThresholdByUpper(double upper)
Criterion is cells whose scalars are greater or equal to upper threshold.
#define VTK_COMPONENT_MODE_USE_ALL
void SetAttributeModeToUsePointData()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetPointsDataTypeToFloat()
abstract superclass for arrays of numeric data
int EvaluateComponents(vtkDataArray *scalars, vtkIdType id)
void SetPointsDataTypeToDouble()
Set the data type of the output points (See the data types defined in vtkType.h).
int EvaluateCell(vtkDataArray *scalars, vtkIdList *cellPts, int numCellPts)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetComponentModeToUseSelected()
const char * GetComponentModeAsString()
vtkTypeBool UseContinuousCellRange
void ThresholdBetween(double lower, double upper)
Criterion is cells whose scalars are between lower and upper thresholds (inclusive of the end values)...
void SetComponentModeToUseAll()
a simple class to control print indentation
extracts cells where scalar value in cell satisfies threshold criterion
void SetAttributeModeToUseCellData()
int GetOutputPointsPrecision() const
list of point or cell ids
int Lower(double s) const
Methods used for thresholding.
void SetPointsDataType(int type)
#define VTK_ATTRIBUTE_MODE_DEFAULT
int Between(double s) const
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_COMPONENT_MODE_USE_SELECTED
int OutputPointsPrecision
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Superclass for algorithms that produce only unstructured grid as output.
void SetOutputPointsPrecision(int precision)
Set/get the desired precision for the output types.
int EvaluateCell(vtkDataArray *scalars, int c, vtkIdList *cellPts, int numCellPts)
void ThresholdByLower(double lower)
Criterion is cells whose scalars are less or equal to lower threshold.
#define VTK_COMPONENT_MODE_USE_ANY
static vtkThreshold * New()
int Upper(double s) const