VTK
vtkExtractCells.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractCells.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
30 #ifndef __vtkExtractCells_h
31 #define __vtkExtractCells_h
32 
34 
35 class vtkIdList;
36 class vtkExtractCellsSTLCloak;
37 class vtkModelMetadata;
38 
40 {
41 public:
43  virtual void PrintSelf(ostream &os, vtkIndent indent);
44 
45  static vtkExtractCells *New();
46 
51  void SetCellList(vtkIdList *l);
52 
56  void AddCellList(vtkIdList *l);
57 
61  void AddCellRange(vtkIdType from, vtkIdType to);
62 
63 protected:
64 
67 
69  ~vtkExtractCells();
70 
71 private:
72 
73  void Copy(vtkDataSet *input, vtkUnstructuredGrid *output);
74  static vtkIdType findInSortedList(vtkIdList *idList, vtkIdType id);
75  vtkIdList *reMapPointIds(vtkDataSet *grid);
76 
77  vtkModelMetadata *ExtractMetadata(vtkDataSet *input);
78 
79  void CopyCellsDataSet(vtkIdList *ptMap, vtkDataSet *input,
80  vtkUnstructuredGrid *output);
81  void CopyCellsUnstructuredGrid(vtkIdList *ptMap, vtkDataSet *input,
82  vtkUnstructuredGrid *output);
83 
84  vtkExtractCellsSTLCloak *CellList;
85 
86  int SubSetUGridCellArraySize;
87  char InputIsUgrid;
88 
89  vtkExtractCells(const vtkExtractCells&); // Not implemented
90  void operator=(const vtkExtractCells&); // Not implemented
91 };
92 
93 #endif