VTK  9.2.6
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
43#ifndef vtkExtractCells_h
44#define vtkExtractCells_h
45
46#include "vtkFiltersExtractionModule.h" // For export macro
48
49class vtkIdList;
50class vtkExtractCellsSTLCloak;
51
52class VTKFILTERSEXTRACTION_EXPORT vtkExtractCells : public vtkUnstructuredGridAlgorithm
53{
54public:
56
60 void PrintSelf(ostream& os, vtkIndent indent) override;
63
70
76
82
84
87 void SetCellIds(const vtkIdType* ptr, vtkIdType numValues);
88 void AddCellIds(const vtkIdType* ptr, vtkIdType numValues);
90
92
98 vtkSetMacro(ExtractAllCells, bool);
99 vtkGetMacro(ExtractAllCells, bool);
100 vtkBooleanMacro(ExtractAllCells, bool);
102
104
109 vtkSetMacro(AssumeSortedAndUniqueIds, bool);
110 vtkGetMacro(AssumeSortedAndUniqueIds, bool);
111 vtkBooleanMacro(AssumeSortedAndUniqueIds, bool);
113protected:
116
118 int FillInputPortInformation(int port, vtkInformation* info) override;
119 bool Copy(vtkDataSet* input, vtkUnstructuredGrid* output);
120
121 vtkExtractCellsSTLCloak* CellList = nullptr;
122 vtkIdType SubSetUGridCellArraySize = 0;
123 vtkIdType SubSetUGridFacesArraySize = 0;
124 bool ExtractAllCells = false;
125 bool AssumeSortedAndUniqueIds = false;
126
127private:
128 vtkExtractCells(const vtkExtractCells&) = delete;
129 void operator=(const vtkExtractCells&) = delete;
130};
131
132#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:72
subset a vtkDataSet to create a vtkUnstructuredGrid
void SetCellIds(const vtkIdType *ptr, vtkIdType numValues)
Another way to provide ids using a pointer to vtkIdType array.
void SetCellList(vtkIdList *l)
Set the list of cell IDs that the output vtkUnstructuredGrid will be composed of.
~vtkExtractCells() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
void AddCellList(vtkIdList *l)
Add the supplied list of cell IDs to those that will be included in the output vtkUnstructuredGrid.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void AddCellIds(const vtkIdType *ptr, vtkIdType numValues)
Another way to provide ids using a pointer to vtkIdType array.
void AddCellRange(vtkIdType from, vtkIdType to)
Add this range of cell IDs to those that will be included in the output vtkUnstructuredGrid.
bool Copy(vtkDataSet *input, vtkUnstructuredGrid *output)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkExtractCells * New()
Standard methods for construction, type info, and printing.
list of point or cell ids
Definition vtkIdList.h:43
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
int vtkIdType
Definition vtkType.h:332