#include <vtkExtractSelectedThresholds.h>
vtkExtractSelectedThresholds extracts all cells and points with attribute values that lie within a vtkSelection's THRESHOLD contents. The selecion can specify to threshold a particular array within either the point or cell attribute data of the input. This is similar to vtkThreshold but allows mutliple thresholds ranges. This filter adds a scalar array called vtkOriginalCellIds that says what input cell produced each output cell. This is an example of a Pedigree ID which helps to trace back results.
Definition at line 42 of file vtkExtractSelectedThresholds.h.
Public Types | |
typedef vtkExtractSelectionBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkExtractSelectedThresholds * | SafeDownCast (vtkObject *o) |
static vtkExtractSelectedThresholds * | New () |
static int | EvaluateValue (vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims) |
static int | EvaluateValue (vtkDataArray *array, int array_component_no, vtkIdType id, vtkDataArray *lims) |
static int | EvaluateValue (vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount) |
static int | EvaluateValue (vtkDataArray *scalars, int array_component_no, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount) |
Protected Member Functions | |
vtkExtractSelectedThresholds () | |
~vtkExtractSelectedThresholds () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
int | ExtractCells (vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output, int usePointScalars) |
int | ExtractPoints (vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output) |
Reimplemented from vtkExtractSelectionBase.
Definition at line 45 of file vtkExtractSelectedThresholds.h.
vtkExtractSelectedThresholds::vtkExtractSelectedThresholds | ( | ) | [protected] |
vtkExtractSelectedThresholds::~vtkExtractSelectedThresholds | ( | ) | [protected] |
virtual const char* vtkExtractSelectedThresholds::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkExtractSelectionBase.
static int vtkExtractSelectedThresholds::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkExtractSelectionBase.
virtual int vtkExtractSelectedThresholds::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkExtractSelectionBase.
static vtkExtractSelectedThresholds* vtkExtractSelectedThresholds::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkExtractSelectionBase.
void vtkExtractSelectedThresholds::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkExtractSelectionBase.
static vtkExtractSelectedThresholds* vtkExtractSelectedThresholds::New | ( | ) | [static] |
Constructor
Reimplemented from vtkDataObjectAlgorithm.
static int vtkExtractSelectedThresholds::EvaluateValue | ( | vtkDataArray * | scalars, | |
vtkIdType | id, | |||
vtkDataArray * | lims | |||
) | [inline, static] |
Function for determining whether a value in a data array passes the threshold test(s) provided in lims. Returns 1 if the value passes at least one of the threshold tests. If scalars
is NULL, then the id itself is used as the scalar value.
Definition at line 56 of file vtkExtractSelectedThresholds.h.
static int vtkExtractSelectedThresholds::EvaluateValue | ( | vtkDataArray * | array, | |
int | array_component_no, | |||
vtkIdType | id, | |||
vtkDataArray * | lims | |||
) | [static] |
Same as the other EvaluateValue except that the component to be compared can be picked using array_component_no (use -1 for magnitude). If scalars
is NULL, then the id itself is used as the scalar value.
static int vtkExtractSelectedThresholds::EvaluateValue | ( | vtkDataArray * | scalars, | |
vtkIdType | id, | |||
vtkDataArray * | lims, | |||
int * | AboveCount, | |||
int * | BelowCount, | |||
int * | InsideCount | |||
) | [inline, static] |
Function for determining whether a value in a data array passes the threshold test(s) provided in lims. Returns 1 if the value passes at least one of the threshold tests. Also returns in AboveCount, BelowCount and InsideCount the number of tests where the value was above, below or inside the interval. If scalars
is NULL, then the id itself is used as the scalar value.
Definition at line 80 of file vtkExtractSelectedThresholds.h.
static int vtkExtractSelectedThresholds::EvaluateValue | ( | vtkDataArray * | scalars, | |
int | array_component_no, | |||
vtkIdType | id, | |||
vtkDataArray * | lims, | |||
int * | AboveCount, | |||
int * | BelowCount, | |||
int * | InsideCount | |||
) | [static] |
Same as the other EvaluateValue except that the component to be compared can be picked using array_component_no (use -1 for magnitude). If scalars
is NULL, then the id itself is used as the scalar value.
int vtkExtractSelectedThresholds::RequestData | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
Reimplemented from vtkDataObjectAlgorithm.
int vtkExtractSelectedThresholds::ExtractCells | ( | vtkSelectionNode * | sel, | |
vtkDataSet * | input, | |||
vtkDataSet * | output, | |||
int | usePointScalars | |||
) | [protected] |
int vtkExtractSelectedThresholds::ExtractPoints | ( | vtkSelectionNode * | sel, | |
vtkDataSet * | input, | |||
vtkDataSet * | output | |||
) | [protected] |