vtkExtractCells.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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&);
00095 void operator=(const vtkExtractCells&);
00096 };
00097
00098 #endif