VTK
dox/Filters/Extraction/vtkExtractSelectedIds.h
Go to the documentation of this file.
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 "vtkFiltersExtractionModule.h" // For export macro
00034 #include "vtkExtractSelectionBase.h"
00035 
00036 class vtkSelection;
00037 class vtkSelectionNode;
00038 
00039 class VTKFILTERSEXTRACTION_EXPORT vtkExtractSelectedIds : public vtkExtractSelectionBase
00040 {
00041 public:
00042   static vtkExtractSelectedIds *New();
00043   vtkTypeMacro(vtkExtractSelectedIds, vtkExtractSelectionBase);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00046 protected:
00047   vtkExtractSelectedIds();
00048   ~vtkExtractSelectedIds();
00049 
00050   // Overridden to indicate that the input must be a vtkDataSet.
00051   virtual int FillInputPortInformation(int port, vtkInformation* info);
00052 
00053   // Usual data generation method
00054   virtual int RequestData(vtkInformation *,
00055                           vtkInformationVector **,
00056                           vtkInformationVector *);
00057 
00058 
00059   int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input,
00060                    vtkDataSet *output);
00061   int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input,
00062                     vtkDataSet *output);
00063 
00064 private:
00065   vtkExtractSelectedIds(const vtkExtractSelectedIds&);  // Not implemented.
00066   void operator=(const vtkExtractSelectedIds&);  // Not implemented.
00067 };
00068 
00069 #endif