VTK
dox/Filters/Extraction/vtkExtractSelectedThresholds.h
Go to the documentation of this file.
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 
00043 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase
00044 {
00045 public:
00046   vtkTypeMacro(vtkExtractSelectedThresholds, vtkExtractSelectionBase);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   static vtkExtractSelectedThresholds *New();
00051 
00053 
00057   static int EvaluateValue(vtkDataArray *scalars,
00058     vtkIdType id, vtkDataArray *lims)
00059     {
00060     return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0, id, lims);
00061     }
00063 
00065 
00069   static int EvaluateValue(vtkDataArray *array,
00070     int array_component_no,
00071     vtkIdType id, vtkDataArray *lims);
00073 
00075 
00081   static int EvaluateValue(vtkDataArray *scalars, vtkIdType id,
00082     vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount)
00083     {
00084     return vtkExtractSelectedThresholds::EvaluateValue(scalars, 0,
00085       id, lims, AboveCount, BelowCount, InsideCount);
00086     }
00088 
00090 
00094   static int EvaluateValue(vtkDataArray *scalars,
00095     int array_component_no,
00096     vtkIdType id,
00097     vtkDataArray *lims, int *AboveCount, int *BelowCount, int *InsideCount);
00099 
00100 protected:
00101   vtkExtractSelectedThresholds();
00102   ~vtkExtractSelectedThresholds();
00103 
00104   // Usual data generation method
00105   int RequestData(vtkInformation *,
00106                   vtkInformationVector **,
00107                   vtkInformationVector *);
00108 
00109   int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
00110                    vtkDataSet *output,
00111                    int usePointScalars);
00112   int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
00113                     vtkDataSet *output);
00114 
00115 private:
00116   vtkExtractSelectedThresholds(const vtkExtractSelectedThresholds&);  // Not implemented.
00117   void operator=(const vtkExtractSelectedThresholds&);  // Not implemented.
00118 };
00119 
00120 #endif