VTK
9.5.20251211
Filters
Extraction
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
37
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
55
static
vtkExtractCellsByType
*
New
();
56
vtkTypeMacro(
vtkExtractCellsByType
,
vtkDataSetAlgorithm
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
59
61
66
void
AddCellType
(
unsigned
int
type);
67
void
AddAllCellTypes
();
68
void
RemoveCellType
(
unsigned
int
type);
69
void
RemoveAllCellTypes
();
70
bool
ExtractCellType
(
unsigned
int
type);
72
73
protected
:
74
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
75
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
76
77
void
ExtractUnstructuredData
(
vtkDataSet
* inDS,
vtkDataSet
* outDS);
78
void
ExtractPolyDataCells
(
79
vtkDataSet
* inDS,
vtkDataSet
* outDS,
vtkIdType
* ptMap,
vtkIdType
& numNewPts);
80
void
ExtractUnstructuredGridCells
(
81
vtkDataSet
* inDS,
vtkDataSet
* outDS,
vtkIdType
* ptMap,
vtkIdType
& numNewPts);
82
83
vtkExtractCellsByType
();
84
~vtkExtractCellsByType
()
override
;
85
86
private
:
87
vtkExtractCellsByType
(
const
vtkExtractCellsByType
&) =
delete
;
88
void
operator=(
const
vtkExtractCellsByType
&) =
delete
;
89
90
vtkCellTypeSet* CellTypes;
91
};
92
93
VTK_ABI_NAMESPACE_END
94
#endif
vtkDataSetAlgorithm::vtkDataSetAlgorithm
vtkDataSetAlgorithm()
vtkDataSet
abstract class to specify dataset behavior
Definition
vtkDataSet.h:166
vtkExtractCellsByType::RemoveCellType
void RemoveCellType(unsigned int type)
Specify the cell types to extract.
vtkExtractCellsByType::AddCellType
void AddCellType(unsigned int type)
Specify the cell types to extract.
vtkExtractCellsByType::New
static vtkExtractCellsByType * New()
Standard methods for construction, type info, and printing.
vtkExtractCellsByType::ExtractCellType
bool ExtractCellType(unsigned int type)
Specify the cell types to extract.
vtkExtractCellsByType::RemoveAllCellTypes
void RemoveAllCellTypes()
Specify the cell types to extract.
vtkExtractCellsByType::vtkExtractCellsByType
vtkExtractCellsByType()
vtkExtractCellsByType::~vtkExtractCellsByType
~vtkExtractCellsByType() override
vtkExtractCellsByType::AddAllCellTypes
void AddAllCellTypes()
Specify the cell types to extract.
vtkExtractCellsByType::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractCellsByType::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for construction, type info, and printing.
vtkExtractCellsByType::ExtractPolyDataCells
void ExtractPolyDataCells(vtkDataSet *inDS, vtkDataSet *outDS, vtkIdType *ptMap, vtkIdType &numNewPts)
vtkExtractCellsByType::ExtractUnstructuredData
void ExtractUnstructuredData(vtkDataSet *inDS, vtkDataSet *outDS)
vtkExtractCellsByType::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkExtractCellsByType::ExtractUnstructuredGridCells
void ExtractUnstructuredGridCells(vtkDataSet *inDS, vtkDataSet *outDS, vtkIdType *ptMap, vtkIdType &numNewPts)
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition
vtkIdTypeArray.h:137
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:142
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:173
vtkDataSetAlgorithm.h
vtkIdType
int vtkIdType
Definition
vtkType.h:367
Generated on Thu Dec 11 2025 14:22:57 for VTK by
1.13.2