Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | 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 
00041 #ifndef __vtkExtractCells_h
00042 #define __vtkExtractCells_h
00043 
00044 #include "vtkDataSetToUnstructuredGridFilter.h"
00045 
00046 class vtkIdList;
00047 class vtkExtractCellsSTLCloak;
00048 
00049 class VTK_PARALLEL_EXPORT vtkExtractCells : public vtkDataSetToUnstructuredGridFilter
00050 {
00051 public:
00052   vtkTypeRevisionMacro(vtkExtractCells, vtkDataSetToUnstructuredGridFilter);
00053   virtual void PrintSelf(ostream &os, vtkIndent indent);
00054 
00055   static vtkExtractCells *New();
00056 
00061   void SetCellList(vtkIdList *l); 
00062 
00066   void AddCellList(vtkIdList *l);
00067 
00071   void AddCellRange(vtkIdType from, vtkIdType to);
00072 
00073 protected:
00074 
00075   virtual void Execute();
00076 
00077   vtkExtractCells();
00078   ~vtkExtractCells();
00079 
00080 private:
00081 
00082   void Copy();
00083   static vtkIdType findInSortedList(vtkIdList *idList, vtkIdType id);
00084   vtkIdList *reMapPointIds(vtkDataSet *grid);
00085 
00086   void CopyCellsDataSet(vtkIdList *ptMap);
00087   void CopyCellsUnstructuredGrid(vtkIdList *ptMap);
00088 
00089   vtkExtractCellsSTLCloak *CellList;
00090 
00091   int SubSetUGridCellArraySize;
00092   char InputIsUgrid;
00093 
00094   vtkExtractCells(const vtkExtractCells&); // Not implemented
00095   void operator=(const vtkExtractCells&); // Not implemented
00096 };
00097 
00098 #endif