VTK
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 =========================================================================*/
33 #ifndef vtkExtractSelectedThresholds_h
34 #define vtkExtractSelectedThresholds_h
35 
36 #include "vtkFiltersExtractionModule.h" // For export macro
38 
39 class vtkDataArray;
40 class vtkSelection;
41 class vtkSelectionNode;
42 class vtkTable;
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
52 
54 
58  static int EvaluateValue(vtkDataArray *scalars,
59  vtkIdType id, vtkDataArray *lims)
60  {
61  return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
62  }
64 
66 
70  static int EvaluateValue(vtkDataArray *array,
71  int array_component_no,
72  vtkIdType id, vtkDataArray *lims);
74 
76 
82  static int EvaluateValue(vtkDataArray *scalars, vtkIdType id,
83  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
84  {
86  id, lims, AboveCount, BelowCount, InsideCount);
87  }
89 
91 
95  static int EvaluateValue(vtkDataArray *scalars,
96  int array_component_no,
97  vtkIdType id,
98  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount);
100 
101 protected:
104 
105  // Usual data generation method
109 
110  int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
111  vtkDataSet *output,
112  int usePointScalars);
113  int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
114  vtkDataSet *output);
115 
116  int ExtractRows(vtkSelectionNode* sel, vtkTable* input, vtkTable* output);
117 private:
119  void operator=(const vtkExtractSelectedThresholds&); // Not implemented.
120 };
121 
122 #endif
A node in a selection tree. Used to store selection results.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
static vtkDataObjectAlgorithm * New()
abstract base class for all extract selection filters.
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
int vtkIdType
Definition: vtkType.h:275
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims)
void PrintSelf(ostream &os, vtkIndent indent)
static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
#define VTKFILTERSEXTRACTION_EXPORT
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
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.