VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractSelectedThresholds.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00033 #ifndef vtkExtractSelectedThresholds_h 00034 #define vtkExtractSelectedThresholds_h 00035 00036 #include "vtkFiltersExtractionModule.h" // For export macro 00037 #include "vtkExtractSelectionBase.h" 00038 00039 class vtkDataArray; 00040 class vtkSelection; 00041 class vtkSelectionNode; 00042 class vtkTable; 00043 00044 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase 00045 { 00046 public: 00047 vtkTypeMacro(vtkExtractSelectedThresholds, vtkExtractSelectionBase); 00048 void PrintSelf(ostream& os, vtkIndent indent); 00049 00051 static vtkExtractSelectedThresholds *New(); 00052 00054 00058 static int EvaluateValue(vtkDataArray *scalars, 00059 vtkIdType id, vtkDataArray *lims) 00060 { 00061 return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims); 00062 } 00064 00066 00070 static int EvaluateValue(vtkDataArray *array, 00071 int array_component_no, 00072 vtkIdType id, vtkDataArray *lims); 00074 00076 00082 static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, 00083 vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount) 00084 { 00085 return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, 00086 id, lims, AboveCount, BelowCount, InsideCount); 00087 } 00089 00091 00095 static int EvaluateValue(vtkDataArray *scalars, 00096 int array_component_no, 00097 vtkIdType id, 00098 vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount); 00100 00101 protected: 00102 vtkExtractSelectedThresholds(); 00103 ~vtkExtractSelectedThresholds(); 00104 00105 // Usual data generation method 00106 int RequestData(vtkInformation *, 00107 vtkInformationVector **, 00108 vtkInformationVector *); 00109 00110 int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, 00111 vtkDataSet *output, 00112 int usePointScalars); 00113 int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, 00114 vtkDataSet *output); 00115 00116 int ExtractRows(vtkSelectionNode* sel, vtkTable* input, vtkTable* output); 00117 private: 00118 vtkExtractSelectedThresholds(const vtkExtractSelectedThresholds&); // Not implemented. 00119 void operator=(const vtkExtractSelectedThresholds&); // Not implemented. 00120 }; 00121 00122 #endif