VTK  9.1.0
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
47#ifndef vtkExtractCellsByType_h
48#define vtkExtractCellsByType_h
49
50#include "vtkDataSetAlgorithm.h"
51#include "vtkFiltersExtractionModule.h" // For export macro
52
53struct vtkCellTypeSet;
54class vtkIdTypeArray;
55
56class VTKFILTERSEXTRACTION_EXPORT vtkExtractCellsByType : public vtkDataSetAlgorithm
57{
58public:
60
65 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
74 void AddCellType(unsigned int type);
76 void RemoveCellType(unsigned int type);
78 bool ExtractCellType(unsigned int type);
80
81protected:
84
87 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
89 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
90
93
94private:
96 void operator=(const vtkExtractCellsByType&) = delete;
97
98 vtkCellTypeSet* CellTypes;
99};
100
101#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.
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ type
Definition: vtkX3D.h:522
int vtkIdType
Definition: vtkType.h:332