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