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 
48  void PrintSelf(ostream &os, vtkIndent indent) override;
49  static vtkExtractCells *New();
51 
57  void SetCellList(vtkIdList *l);
58 
63  void AddCellList(vtkIdList *l);
64 
69  void AddCellRange(vtkIdType from, vtkIdType to);
70 
75  vtkMTimeType GetMTime() override;
76 
77 protected:
80 
82  ~vtkExtractCells() override;
83 
84 private:
85  void Copy(vtkDataSet *input, vtkUnstructuredGrid *output);
86  vtkIdType reMapPointIds(vtkDataSet *grid);
87 
88  void CopyCellsDataSet(vtkDataSet *input,
89  vtkUnstructuredGrid *output);
90  void CopyCellsUnstructuredGrid(vtkDataSet *input,
91  vtkUnstructuredGrid *output);
92 
93  vtkExtractCellsSTLCloak *CellList;
94 
95  vtkIdType SubSetUGridCellArraySize;
96  char InputIsUgrid;
97 
98  vtkExtractCells(const vtkExtractCells&) = delete;
99  void operator=(const vtkExtractCells&) = delete;
100 };
101 
102 #endif
vtkExtractCells
subset a vtkDataSet to create a vtkUnstructuredGrid
Definition: vtkExtractCells.h:40
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkX3D::port
Definition: vtkX3D.h:447
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkUnstructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302