VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractSelectedLocations.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 =========================================================================*/ 00028 #ifndef __vtkExtractSelectedLocations_h 00029 #define __vtkExtractSelectedLocations_h 00030 00031 #include "vtkFiltersExtractionModule.h" // For export macro 00032 #include "vtkExtractSelectionBase.h" 00033 00034 class vtkSelection; 00035 class vtkSelectionNode; 00036 00037 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedLocations : public vtkExtractSelectionBase 00038 { 00039 public: 00040 static vtkExtractSelectedLocations *New(); 00041 vtkTypeMacro(vtkExtractSelectedLocations, vtkExtractSelectionBase); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00044 protected: 00045 vtkExtractSelectedLocations(); 00046 ~vtkExtractSelectedLocations(); 00047 00048 // Usual data generation method 00049 int RequestData(vtkInformation *, 00050 vtkInformationVector **, 00051 vtkInformationVector *); 00052 00053 int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, 00054 vtkDataSet *output); 00055 int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, 00056 vtkDataSet *output); 00057 00058 private: 00059 vtkExtractSelectedLocations(const vtkExtractSelectedLocations&); // Not implemented. 00060 void operator=(const vtkExtractSelectedLocations&); // Not implemented. 00061 }; 00062 00063 #endif