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 
33 #include "vtkFiltersExtractionModule.h" // For export macro
35 
36 class vtkIdList;
37 class vtkExtractCellsSTLCloak;
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  void CopyCellsDataSet(vtkIdList *ptMap, vtkDataSet *input,
78  vtkUnstructuredGrid *output);
79  void CopyCellsUnstructuredGrid(vtkIdList *ptMap, vtkDataSet *input,
80  vtkUnstructuredGrid *output);
81 
82  vtkExtractCellsSTLCloak *CellList;
83 
84  int SubSetUGridCellArraySize;
85  char InputIsUgrid;
86 
87  vtkExtractCells(const vtkExtractCells&); // Not implemented
88  void operator=(const vtkExtractCells&); // Not implemented
89 };
90 
91 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
static vtkUnstructuredGridAlgorithm * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
int vtkIdType
Definition: vtkType.h:275
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKFILTERSEXTRACTION_EXPORT
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
subset a vtkDataSet to create a vtkUnstructuredGrid