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 
31 #ifndef vtkExtractCells_h
32 #define vtkExtractCells_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
36 
37 class vtkIdList;
38 class vtkExtractCellsSTLCloak;
39 
40 class VTKFILTERSEXTRACTION_EXPORT vtkExtractCells : public vtkUnstructuredGridAlgorithm
41 {
42 public:
44  virtual void PrintSelf(ostream &os, vtkIndent indent);
45 
46  static vtkExtractCells *New();
47 
55 
62 
69 
70 protected:
71 
74 
77 
78 private:
79 
80  void Copy(vtkDataSet *input, vtkUnstructuredGrid *output);
81  static vtkIdType findInSortedList(vtkIdList *idList, vtkIdType id);
82  vtkIdList *reMapPointIds(vtkDataSet *grid);
83 
84  void CopyCellsDataSet(vtkIdList *ptMap, vtkDataSet *input,
85  vtkUnstructuredGrid *output);
86  void CopyCellsUnstructuredGrid(vtkIdList *ptMap, vtkDataSet *input,
87  vtkUnstructuredGrid *output);
88 
89  vtkExtractCellsSTLCloak *CellList;
90 
91  int SubSetUGridCellArraySize;
92  char InputIsUgrid;
93 
94  vtkExtractCells(const vtkExtractCells&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkExtractCells&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
vtkExtractCells
subset a vtkDataSet to create a vtkUnstructuredGrid
Definition: vtkExtractCells.h:41
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkExtractCells::New
static vtkExtractCells * New()
vtkExtractCells::SetCellList
void SetCellList(vtkIdList *l)
Set the list of cell IDs that the output vtkUnstructuredGrid will be composed of.
vtkExtractCells::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkExtractCells::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:37
vtkExtractCells::AddCellList
void AddCellList(vtkIdList *l)
Add the supplied list of cell IDs to those that will be included in the output vtkUnstructuredGrid.
vtkExtractCells::vtkExtractCells
vtkExtractCells()
vtkExtractCells::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkUnstructuredGridAlgorithm.h
vtkExtractCells::AddCellRange
void AddCellRange(vtkIdType from, vtkIdType to)
Add this range of cell IDs to those that will be included in the output vtkUnstructuredGrid.
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:41
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:83
vtkExtractCells::~vtkExtractCells
~vtkExtractCells()