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