VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkExtractSelectedThresholds.h,v $ 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 "vtkExtractSelectionBase.h" 00037 00038 class vtkDataArray; 00039 class vtkDoubleArray; 00040 class vtkSelection; 00041 class vtkSelectionNode; 00042 00043 class VTK_GRAPHICS_EXPORT vtkExtractSelectedThresholds : public vtkExtractSelectionBase 00044 { 00045 public: 00046 vtkTypeRevisionMacro(vtkExtractSelectedThresholds, vtkExtractSelectionBase); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 static vtkExtractSelectedThresholds *New(); 00051 00055 static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDoubleArray *lims); 00056 00062 static int EvaluateValue(vtkDataArray *scalars, vtkIdType id, vtkDoubleArray *lims, int *AboveCount, int *BelowCount, int *InsideCount); 00063 00064 protected: 00065 vtkExtractSelectedThresholds(); 00066 ~vtkExtractSelectedThresholds(); 00067 00068 // Usual data generation method 00069 int RequestData(vtkInformation *, 00070 vtkInformationVector **, 00071 vtkInformationVector *); 00072 00073 int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, 00074 vtkDataSet *output, 00075 int usePointScalars); 00076 int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, 00077 vtkDataSet *output); 00078 00079 private: 00080 vtkExtractSelectedThresholds(const vtkExtractSelectedThresholds&); // Not implemented. 00081 void operator=(const vtkExtractSelectedThresholds&); // Not implemented. 00082 }; 00083 00084 #endif