VTK  9.4.20250215
vtkExtractCellsByType.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
38#ifndef vtkExtractCellsByType_h
39#define vtkExtractCellsByType_h
40
41#include "vtkDataSetAlgorithm.h"
42#include "vtkFiltersExtractionModule.h" // For export macro
43
44VTK_ABI_NAMESPACE_BEGIN
45struct vtkCellTypeSet;
46class vtkIdTypeArray;
47
48class VTKFILTERSEXTRACTION_EXPORT vtkExtractCellsByType : public vtkDataSetAlgorithm
49{
50public:
52
57 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
66 void AddCellType(unsigned int type);
68 void RemoveCellType(unsigned int type);
70 bool ExtractCellType(unsigned int type);
72
73protected:
75 int FillInputPortInformation(int port, vtkInformation* info) override;
76
79 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
81 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
82
85
86private:
88 void operator=(const vtkExtractCellsByType&) = delete;
89
90 vtkCellTypeSet* CellTypes;
91};
92
93VTK_ABI_NAMESPACE_END
94#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
extract cells of a specified type
void RemoveCellType(unsigned int type)
Specify the cell types to extract.
void AddCellType(unsigned int type)
Specify the cell types to extract.
static vtkExtractCellsByType * New()
Standard methods for construction, type info, and printing.
bool ExtractCellType(unsigned int type)
Specify the cell types to extract.
void RemoveAllCellTypes()
Specify the cell types to extract.
~vtkExtractCellsByType() override
void AddAllCellTypes()
Specify the cell types to extract.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
void ExtractPolyDataCells(vtkDataSet *inDS, vtkDataSet *outDS, vtkIdType *ptMap, vtkIdType &numNewPts)
void ExtractUnstructuredData(vtkDataSet *inDS, vtkDataSet *outDS)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void ExtractUnstructuredGridCells(vtkDataSet *inDS, vtkDataSet *outDS, vtkIdType *ptMap, vtkIdType &numNewPts)
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:315