VTK  9.2.6
vtkExtractSelectedThresholds.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSelectedThresholds.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
49 #ifndef vtkExtractSelectedThresholds_h
50 #define vtkExtractSelectedThresholds_h
51 
52 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
54 #include "vtkFiltersExtractionModule.h" // For export macro
55 
56 class vtkDataArray;
57 class vtkSelection;
58 class vtkSelectionNode;
59 class vtkTable;
60 
62  VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
72 
79  static int EvaluateValue(vtkDataArray* scalars, vtkIdType id, vtkDataArray* lims)
80  {
81  return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
82  }
83 
89  static int EvaluateValue(
90  vtkDataArray* array, int array_component_no, vtkIdType id, vtkDataArray* lims);
91 
100  static int EvaluateValue(vtkDataArray* scalars, vtkIdType id, vtkDataArray* lims, int* AboveCount,
101  int* BelowCount, int* InsideCount)
102  {
104  scalars, 0, id, lims, AboveCount, BelowCount, InsideCount);
105  }
106 
112  static int EvaluateValue(vtkDataArray* scalars, int array_component_no, vtkIdType id,
113  vtkDataArray* lims, int* AboveCount, int* BelowCount, int* InsideCount);
114 
115 protected:
117  ~vtkExtractSelectedThresholds() override;
118 
119  // Usual data generation method
121 
122  int ExtractCells(
123  vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output, int usePointScalars);
124  int ExtractPoints(vtkSelectionNode* sel, vtkDataSet* input, vtkDataSet* output);
125 
126  int ExtractRows(vtkSelectionNode* sel, vtkTable* input, vtkTable* output);
127 
128 private:
130  void operator=(const vtkExtractSelectedThresholds&) = delete;
131 };
132 
133 #endif
134 
135 // VTK-HeaderTest-Exclude: vtkExtractSelectedThresholds.h
a node in a vtkSelection the defines the selection criteria.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
static vtkDataObjectAlgorithm * New()
#define VTK_DEPRECATED_IN_9_2_0(reason)
abstract base class for all extract selection filters.
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:59
int vtkIdType
Definition: vtkType.h:332
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...
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...
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
extract a subset from a vtkDataSet.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:73
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
extract a cells or points from a dataset that have values within a set of thresholds.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.