VTK  9.3.20240416
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 
44 VTK_ABI_NAMESPACE_BEGIN
45 struct vtkCellTypeSet;
46 class vtkIdTypeArray;
47 
48 class VTKFILTERSEXTRACTION_EXPORT vtkExtractCellsByType : public vtkDataSetAlgorithm
49 {
50 public:
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 
73 protected:
76 
79  vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
81  vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
82 
85 
86 private:
88  void operator=(const vtkExtractCellsByType&) = delete;
89 
90  vtkCellTypeSet* CellTypes;
91 };
92 
93 VTK_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:166
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.
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)
static vtkExtractCellsByType * New()
Standard methods for construction, type info, and printing.
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ type
Definition: vtkX3D.h:516
int vtkIdType
Definition: vtkType.h:315