VTK
dox/Graphics/vtkExtractSelectedLocations.h
Go to the documentation of this file.
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 "vtkExtractSelectionBase.h"
00032 
00033 class vtkSelection;
00034 class vtkSelectionNode;
00035 
00036 class VTK_GRAPHICS_EXPORT vtkExtractSelectedLocations : public vtkExtractSelectionBase
00037 {
00038 public:
00039   static vtkExtractSelectedLocations *New();
00040   vtkTypeMacro(vtkExtractSelectedLocations, vtkExtractSelectionBase);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00043 protected:
00044   vtkExtractSelectedLocations();
00045   ~vtkExtractSelectedLocations();
00046 
00047   // Usual data generation method
00048   int RequestData(vtkInformation *, 
00049                   vtkInformationVector **, 
00050                   vtkInformationVector *);
00051 
00052   int ExtractCells(vtkSelectionNode *sel, vtkDataSet *input, 
00053                    vtkDataSet *output);
00054   int ExtractPoints(vtkSelectionNode *sel, vtkDataSet *input, 
00055                     vtkDataSet *output);
00056 
00057 private:
00058   vtkExtractSelectedLocations(const vtkExtractSelectedLocations&);  // Not implemented.
00059   void operator=(const vtkExtractSelectedLocations&);  // Not implemented.
00060 };
00061 
00062 #endif