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