VTK: Filters/Extraction/vtkExtractSelectedThresholds.h Source File

| VTK 9.3.1

vtkExtractSelectedThresholds.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
37 #ifndef vtkExtractSelectedThresholds_h
38 #define vtkExtractSelectedThresholds_h
39
40 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
41 #include "vtkExtractSelectionBase.h"
42 #include "vtkFiltersExtractionModule.h" // For export macro
43
44 VTK_ABI_NAMESPACE_BEGIN
45 class vtkDataArray;
46 class vtkSelection;
47 class vtkSelectionNode;
48 class vtkTable;
49
50 class VTK_DEPRECATED_IN_9_2_0("Use vtkExtractSelection instead of vtkExtractSelectedThresholds.")
51 VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase
52 {
53 public:
54 vtkTypeMacro(vtkExtractSelectedThresholds, vtkExtractSelectionBase);
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
60 static vtkExtractSelectedThresholds* New();
61
68 static int EvaluateValue(vtkDataArray* scalars, vtkIdType id, vtkDataArray* lims)
69 {
70 return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
71 }
72
78 static int EvaluateValue(
79 vtkDataArray* array, int array_component_no, vtkIdType id, vtkDataArray* lims);
80
89 static int EvaluateValue(vtkDataArray* scalars, vtkIdType id, vtkDataArray* lims, int* AboveCount,
90 int* BelowCount, int* InsideCount)
91 {
92 return vtkExtractSelectedThresholds::EvaluateValue(
93 scalars, 0, id, lims, AboveCount, BelowCount, InsideCount);
94 }
95
101 static int EvaluateValue(vtkDataArray* scalars, int array_component_no, vtkIdType id,
102 vtkDataArray* lims, int* AboveCount, int* BelowCount, int* InsideCount);
103
104 protected:
105 vtkExtractSelectedThresholds();
106 ~vtkExtractSelectedThresholds() override;
107
108 // Usual data generation method
109 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
110
111 int ExtractCells(
112 vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output, int usePointScalars);
113 int ExtractPoints(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
114
115 int ExtractRows(vtkSelectionNode* sel, vtkTable* input, vtkTable* output);
116
117 private:
118 vtkExtractSelectedThresholds(const vtkExtractSelectedThresholds&) = delete;
119 void operator=(const vtkExtractSelectedThresholds&) = delete;
120 };
121
122 VTK_ABI_NAMESPACE_END
123 #endif
124
125 // VTK-HeaderTest-Exclude: vtkExtractSelectedThresholds.h
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkExtractSelectedThresholds
extract a cells or points from a dataset that have values within a set of thresholds.
Definition: vtkExtractSelectedThresholds.h:52
vtkExtractSelectedThresholds::vtkExtractSelectedThresholds
vtkExtractSelectedThresholds()
vtkExtractSelectedThresholds::ExtractRows
int ExtractRows(vtkSelectionNode *sel, vtkTable *input, vtkTable *output)
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *scalars, int array_component_no, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
Same as the other EvaluateValue except that the component to be compared can be picked using array_co...
vtkExtractSelectedThresholds::~vtkExtractSelectedThresholds
~vtkExtractSelectedThresholds() override
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *array, int array_component_no, vtkIdType id, vtkDataArray *lims)
Same as the other EvaluateValue except that the component to be compared can be picked using array_co...
vtkExtractSelectedThresholds::New
static vtkExtractSelectedThresholds * New()
Constructor.
vtkExtractSelectedThresholds::ExtractPoints
int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output)
vtkExtractSelectedThresholds::ExtractCells
int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output, int usePointScalars)
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
Function for determining whether a value in a data array passes the threshold test(s) provided in lim...
Definition: vtkExtractSelectedThresholds.h:89
vtkExtractSelectedThresholds::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkExtractSelectedThresholds::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedThresholds::EvaluateValue
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims)
Function for determining whether a value in a data array passes the threshold test(s) provided in lim...
Definition: vtkExtractSelectedThresholds.h:68
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:20
vtkExtractSelection
extract a subset from a vtkDataSet.
Definition: vtkExtractSelection.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkSelectionNode
a node in a vtkSelection the defines the selection criteria.
Definition: vtkSelectionNode.h:242
vtkSelection
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkDeprecation.h
VTK_DEPRECATED_IN_9_2_0
#define VTK_DEPRECATED_IN_9_2_0(reason)
Definition: vtkDeprecation.h:108
vtkExtractSelectionBase.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315