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 
37 
38 class vtkDataArray;
39 class vtkSelection;
40 class vtkSelectionNode;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
50 
52 
56  static int EvaluateValue(vtkDataArray *scalars,
57  vtkIdType id, vtkDataArray *lims)
58  {
59  return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
60  }
62 
64 
68  static int EvaluateValue(vtkDataArray *array,
69  int array_component_no,
70  vtkIdType id, vtkDataArray *lims);
72 
74 
80  static int EvaluateValue(vtkDataArray *scalars, vtkIdType id,
81  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
82  {
84  id, lims, AboveCount, BelowCount, InsideCount);
85  }
87 
89 
93  static int EvaluateValue(vtkDataArray *scalars,
94  int array_component_no,
95  vtkIdType id,
96  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount);
98 
99 protected:
102 
103  // Usual data generation method
107 
108  int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
109  vtkDataSet *output,
110  int usePointScalars);
111  int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
112  vtkDataSet *output);
113 
114 private:
116  void operator=(const vtkExtractSelectedThresholds&); // Not implemented.
117 };
118 
119 #endif