VTK
9.2.6
Filters
Extraction
vtkExtractCellsByType.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractCellsByType.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
49
50
#ifndef vtkExtractCellsByType_h
51
#define vtkExtractCellsByType_h
52
53
#include "
vtkDataSetAlgorithm.h
"
54
#include "vtkFiltersExtractionModule.h"
// For export macro
55
56
struct
vtkCellTypeSet;
57
class
vtkIdTypeArray
;
58
59
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractCellsByType
:
public
vtkDataSetAlgorithm
60
{
61
public
:
63
66
static
vtkExtractCellsByType
*
New
();
67
vtkTypeMacro(
vtkExtractCellsByType
,
vtkDataSetAlgorithm
);
68
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
70
72
77
void
AddCellType
(
unsigned
int
type);
78
void
AddAllCellTypes
();
79
void
RemoveCellType
(
unsigned
int
type);
80
void
RemoveAllCellTypes
();
81
bool
ExtractCellType
(
unsigned
int
type);
83
84
protected
:
85
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
86
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
87
88
void
ExtractUnstructuredData
(
vtkDataSet
* inDS,
vtkDataSet
* outDS);
89
void
ExtractPolyDataCells
(
90
vtkDataSet
* inDS,
vtkDataSet
* outDS,
vtkIdType
* ptMap,
vtkIdType
& numNewPts);
91
void
ExtractUnstructuredGridCells
(
92
vtkDataSet
* inDS,
vtkDataSet
* outDS,
vtkIdType
* ptMap,
vtkIdType
& numNewPts);
93
94
vtkExtractCellsByType
();
95
~vtkExtractCellsByType
()
override
;
96
97
private
:
98
vtkExtractCellsByType
(
const
vtkExtractCellsByType
&) =
delete
;
99
void
operator=(
const
vtkExtractCellsByType
&) =
delete
;
100
101
vtkCellTypeSet* CellTypes;
102
};
103
104
#endif
vtkDataSetAlgorithm::vtkDataSetAlgorithm
vtkDataSetAlgorithm()
vtkDataSet
abstract class to specify dataset behavior
Definition
vtkDataSet.h:63
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:39
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkDataSetAlgorithm.h
vtkIdType
int vtkIdType
Definition
vtkType.h:332
Generated on Sun Mar 2 2025 00:00:00 for VTK by
1.13.2