Documentation for vtkThreshold

vtkThreshold - extracts cells where scalar value in cell satisfies threshold criterion

Super Class: vtkDataSetToUnstructuredGridFilter

Description:

vtkThreshold is a filter that extracts cells from any dataset type that satisfy a threshold criterion. A cell satisfies the criterion if the scalar value of (every or any) point satisfies the criterion. The criterion can take three forms: 1) greater than a particular value; 2) less than a particular value; or 3) between two values. The output of this filter is an unstructured grid. Note that scalar values are available from the point and cell attribute data. By default, point data is used to obtain scalars, but you can control this behavior. See the AttributeMode ivar below.

 

See Also:

vtkThresholdPoints vtkThresholdTextureCoords

 

Methods:

void vtkThreshold ()
static vtkThreshold *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void ThresholdByLower (float )
void ThresholdByUpper (float )
void ThresholdBetween (float ,float )
float GetUpperThreshold ()
float GetLowerThreshold ()
void SetAttributeMode (int )
int GetAttributeMode ()
void SetAttributeModeToDefault ()
void SetAttributeModeToUsePointData ()
void SetAttributeModeToUseCellData ()
char *GetAttributeModeAsString ()
void SetAllScalars (int )
int GetAllScalars ()
void AllScalarsOn ()
void AllScalarsOff ()
void Execute ()
int Lower (float )
int Upper (float )
int Between (float )

 

Detailed Method Descriptions:

Criterion is cells whose scalars are less or equal to lower threshold.

void ThresholdByLower (float )

Criterion is cells whose scalars are greater or equal to upper threshold.

void ThresholdByUpper (float )

Criterion is cells whose scalars are between lower and upper thresholds.

void ThresholdBetween (float ,float )

Get the Upper and Lower thresholds.

float GetUpperThreshold ()
float GetLowerThreshold ()

Control how the filter works with scalar point data and cell attribute data. By default (AttributeModeToDefault), the filter will use point data, and if no point data is available, then cell data is used. Alternatively you can explicitly set the filter to use point data (AttributeModeToUsePointData) or cell data (AttributeModeToUseCellData).

void SetAttributeMode (int )
int GetAttributeMode ()
void SetAttributeModeToDefault ()
void SetAttributeModeToUsePointData ()
void SetAttributeModeToUseCellData ()
char *GetAttributeModeAsString ()

If using scalars from point data, all scalars for all points in a cell must satisfy the threshold criterion if AllScalars is set. Otherwise, just a single scalar value satisfying the threshold criterion enables will extract the cell.

void SetAllScalars (int )
int GetAllScalars ()
void AllScalarsOn ()
void AllScalarsOff ()