Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkExtractCells.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractCells.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 =========================================================================*/
00015 /*----------------------------------------------------------------------------
00016  Copyright (c) Sandia Corporation
00017  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00018 ----------------------------------------------------------------------------*/
00019 
00030 #ifndef __vtkExtractCells_h
00031 #define __vtkExtractCells_h
00032 
00033 #include "vtkUnstructuredGridAlgorithm.h"
00034 
00035 class vtkIdList;
00036 class vtkExtractCellsSTLCloak;
00037 class vtkModelMetadata;
00038 
00039 class VTK_GRAPHICS_EXPORT vtkExtractCells : public vtkUnstructuredGridAlgorithm
00040 {
00041 public:
00042   vtkTypeRevisionMacro(vtkExtractCells, vtkUnstructuredGridAlgorithm);
00043   virtual void PrintSelf(ostream &os, vtkIndent indent);
00044 
00045   static vtkExtractCells *New();
00046 
00051   void SetCellList(vtkIdList *l); 
00052 
00056   void AddCellList(vtkIdList *l);
00057 
00061   void AddCellRange(vtkIdType from, vtkIdType to);
00062 
00063 protected:
00064 
00065   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00066   virtual int FillInputPortInformation(int port, vtkInformation *info);
00067 
00068   vtkExtractCells();
00069   ~vtkExtractCells();
00070 
00071 private:
00072 
00073   void Copy(vtkDataSet *input, vtkUnstructuredGrid *output);
00074   static vtkIdType findInSortedList(vtkIdList *idList, vtkIdType id);
00075   vtkIdList *reMapPointIds(vtkDataSet *grid);
00076 
00077   vtkModelMetadata *ExtractMetadata(vtkDataSet *input);
00078 
00079   void CopyCellsDataSet(vtkIdList *ptMap, vtkDataSet *input,
00080                         vtkUnstructuredGrid *output);
00081   void CopyCellsUnstructuredGrid(vtkIdList *ptMap, vtkDataSet *input,
00082                                  vtkUnstructuredGrid *output);
00083 
00084   vtkExtractCellsSTLCloak *CellList;
00085 
00086   int SubSetUGridCellArraySize;
00087   char InputIsUgrid;
00088 
00089   vtkExtractCells(const vtkExtractCells&); // Not implemented
00090   void operator=(const vtkExtractCells&); // Not implemented
00091 };
00092 
00093 #endif

Generated on Mon Jan 21 23:07:24 2008 for VTK by  doxygen 1.4.3-20050530