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 =========================================================================*/
34 #ifndef vtkExtractSelectedThresholds_h
35 #define vtkExtractSelectedThresholds_h
36 
37 #include "vtkFiltersExtractionModule.h" // For export macro
39 
40 class vtkDataArray;
41 class vtkSelection;
42 class vtkSelectionNode;
43 class vtkTable;
44 
45 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
55 
62  static int EvaluateValue(vtkDataArray *scalars,
63  vtkIdType id, vtkDataArray *lims)
64  {
65  return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
66  }
67 
73  static int EvaluateValue(vtkDataArray *array,
74  int array_component_no,
75  vtkIdType id, vtkDataArray *lims);
76 
85  static int EvaluateValue(vtkDataArray *scalars, vtkIdType id,
86  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
87  {
89  id, lims, AboveCount, BelowCount, InsideCount);
90  }
91 
97  static int EvaluateValue(vtkDataArray *scalars,
98  int array_component_no,
99  vtkIdType id,
100  vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount);
101 
102 protected:
105 
106  // Usual data generation method
110 
112  vtkDataSet *output,
113  int usePointScalars);
115  vtkDataSet *output);
116 
117  int ExtractRows(vtkSelectionNode* sel, vtkTable* input, vtkTable* output);
118 private:
120  void operator=(const vtkExtractSelectedThresholds&) VTK_DELETE_FUNCTION;
121 };
122 
123 #endif
vtkExtractSelectionBase.h
vtkSelectionNode
A node in a selection tree.
Definition: vtkSelectionNode.h:68
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
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:85
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkSelection
A node in a selection tree.
Definition: vtkSelection.h:44
vtkExtractSelectedThresholds::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkExtractSelectedThresholds
extract a cells or points from a dataset that have values within a set of thresholds.
Definition: vtkExtractSelectedThresholds.h:46
vtkExtractSelectedThresholds::~vtkExtractSelectedThresholds
~vtkExtractSelectedThresholds()
vtkExtractSelectedThresholds::ExtractPoints
int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
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:62
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...
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkExtractSelectedThresholds::New
static vtkExtractSelectedThresholds * New()
Constructor.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkExtractSelectedThresholds::ExtractRows
int ExtractRows(vtkSelectionNode *sel, vtkTable *input, vtkTable *output)
vtkExtractSelectionBase
abstract base class for all extract selection filters.
Definition: vtkExtractSelectionBase.h:31
vtkExtractSelectedThresholds::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkExtractSelectedThresholds::vtkExtractSelectedThresholds
vtkExtractSelectedThresholds()
vtkExtractSelectedThresholds::ExtractCells
int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, vtkDataSet *output, int usePointScalars)
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...