VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
43 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
51 
53 
57  static int EvaluateValue(vtkDataArray *scalars,
58  vtkIdType id, vtkDataArray *lims)
59  {
60  return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
61  }
63 
65 
69  static int EvaluateValue(vtkDataArray *array,
70  int array_component_no,
71  vtkIdType id, vtkDataArray *lims);
73 
75 
81  static int EvaluateValue(vtkDataArray *scalars, vtkIdType id,
82  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
83  {
85  id, lims, AboveCount, BelowCount, InsideCount);
86  }
88 
90 
94  static int EvaluateValue(vtkDataArray *scalars,
95  int array_component_no,
96  vtkIdType id,
97  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount);
99 
100 protected:
103 
104  // Usual data generation method
105  int RequestData(vtkInformation *,
106  vtkInformationVector **,
107  vtkInformationVector *);
108 
109  int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
110  vtkDataSet *output,
111  int usePointScalars);
112  int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
113  vtkDataSet *output);
114 
115 private:
117  void operator=(const vtkExtractSelectedThresholds&); // Not implemented.
118 };
119 
120 #endif
A node in a selection tree. Used to store selection results.
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
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)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
extract a cells or points from a dataset that have values within a set of thresholds.