 |
VTK
9.1.0
|
Go to the documentation of this file.
146 #ifndef vtkThreshold_h
147 #define vtkThreshold_h
150 #include "vtkFiltersCoreModule.h"
153 #define VTK_ATTRIBUTE_MODE_DEFAULT 0
154 #define VTK_ATTRIBUTE_MODE_USE_POINT_DATA 1
155 #define VTK_ATTRIBUTE_MODE_USE_CELL_DATA 2
158 #define VTK_COMPONENT_MODE_USE_SELECTED 0
159 #define VTK_COMPONENT_MODE_USE_ALL 1
160 #define VTK_COMPONENT_MODE_USE_ANY 2
180 THRESHOLD_BETWEEN = 0,
198 void ThresholdByLower(
double lower);
204 void ThresholdByUpper(
double upper);
211 "Use 'SetLowerThreshold', 'SetUpperThreshold' and 'SetThresholdFunction' instead.")
212 void ThresholdBetween(
double lower,
double upper);
219 vtkSetMacro(UpperThreshold,
double);
220 vtkSetMacro(LowerThreshold,
double);
221 vtkGetMacro(UpperThreshold,
double);
222 vtkGetMacro(LowerThreshold,
double);
233 vtkSetMacro(AttributeMode,
int);
234 vtkGetMacro(AttributeMode,
int);
254 vtkGetMacro(ComponentMode,
int);
267 vtkGetMacro(SelectedComponent,
int);
316 vtkSetMacro(Invert,
bool);
317 vtkGetMacro(Invert,
bool);
318 vtkBooleanMacro(Invert,
bool);
363 int AttributeMode = -1;
365 int SelectedComponent = 0;
const char * GetAttributeModeAsString()
Control how the filter works with scalar point data and cell attribute data.
void SetThresholdFunction(int function)
Get/Set the threshold method, defining which threshold bounds to use.
ThresholdType
Possible values for the threshold function:
#define VTK_ATTRIBUTE_MODE_USE_POINT_DATA
void SetComponentModeToUseAny()
Control how the decision of in / out is made with multi-component data.
#define VTK_COMPONENT_MODE_USE_ALL
#define VTK_DEPRECATED_IN_9_1_0(reason)
void SetAttributeModeToUsePointData()
Control how the filter works with scalar point data and cell attribute data.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetPointsDataTypeToFloat()
Set the data type of the output points (See the data types defined in vtkType.h).
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()
Control how the decision of in / out is made with multi-component data.
const char * GetComponentModeAsString()
Control how the decision of in / out is made with multi-component data.
void SetComponentModeToUseAll()
Control how the decision of in / out is made with multi-component data.
a simple class to control print indentation
extracts cells where scalar value in cell satisfies threshold criterion
void SetAttributeModeToUseCellData()
Control how the filter works with scalar point data and cell attribute data.
int GetOutputPointsPrecision() const
Set/get the desired precision for the output types.
list of point or cell ids
int GetThresholdFunction()
Get/Set the threshold method, defining which threshold bounds to use.
int Lower(double s) const
Methods used for thresholding.
void SetPointsDataType(int type)
Set the data type of the output points (See the data types defined in vtkType.h).
#define VTK_ATTRIBUTE_MODE_DEFAULT
int Between(double s) const
Methods used for thresholding.
#define VTK_ATTRIBUTE_MODE_USE_CELL_DATA
#define VTK_COMPONENT_MODE_USE_SELECTED
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)
int GetPointsDataType()
Set the data type of the output points (See the data types defined in vtkType.h).
#define VTK_COMPONENT_MODE_USE_ANY
static vtkThreshold * New()
int Upper(double s) const
Methods used for thresholding.