VTK  9.2.6
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
56struct vtkCellTypeSet;
57class vtkIdTypeArray;
58
59class VTKFILTERSEXTRACTION_EXPORT vtkExtractCellsByType : public vtkDataSetAlgorithm
60{
61public:
63
68 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
77 void AddCellType(unsigned int type);
79 void RemoveCellType(unsigned int type);
81 bool ExtractCellType(unsigned int type);
83
84protected:
86 int FillInputPortInformation(int port, vtkInformation* info) override;
87
90 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
92 vtkDataSet* inDS, vtkDataSet* outDS, vtkIdType* ptMap, vtkIdType& numNewPts);
93
96
97private:
99 void operator=(const vtkExtractCellsByType&) = delete;
100
101 vtkCellTypeSet* CellTypes;
102};
103
104#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
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:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:332