VTK  9.4.20241222
vtkRemovePolyData.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
32#ifndef vtkRemovePolyData_h
33#define vtkRemovePolyData_h
34
35#include "vtkFiltersGeneralModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkCellArray;
40class vtkDataArray;
41class vtkPoints;
42class vtkPolyData;
43class vtkIdTypeArray;
44
45class VTKFILTERSGENERAL_EXPORT vtkRemovePolyData : public vtkPolyDataAlgorithm
46{
47public:
49
55 void PrintSelf(ostream& os, vtkIndent indent) override;
57
62
64
68 vtkPolyData* GetInput() { return this->GetInput(0); }
70
72
79 vtkGetObjectMacro(CellIds, vtkIdTypeArray);
81
83
88 vtkGetObjectMacro(PointIds, vtkIdTypeArray);
90
92
104 vtkSetMacro(ExactMatch, bool);
105 vtkGetMacro(ExactMatch, bool);
106 vtkBooleanMacro(ExactMatch, bool);
108
109protected:
112
113 // Usual data generation related methods
117
118private:
119 vtkIdTypeArray* CellIds;
120 vtkIdTypeArray* PointIds;
121 bool ExactMatch;
122
123 vtkRemovePolyData(const vtkRemovePolyData&) = delete;
124 void operator=(const vtkRemovePolyData&) = delete;
125};
126
127VTK_ABI_NAMESPACE_END
128#endif
object to represent cell connectivity
abstract superclass for arrays of numeric data
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.
represent and manipulate 3D points
Definition vtkPoints.h:139
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Removes vtkPolyData cells from an input vtkPolyData.
void SetCellIds(vtkIdTypeArray *)
Set/Get the list of cell ids to delete.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, obtain information, and print information.
static vtkRemovePolyData * New()
Standard methods to instantiate, obtain information, and print information.
void SetPointIds(vtkIdTypeArray *)
Set/Get the list of points ids to delete.
vtkPolyData * GetInput()
Get any input of this filter.
vtkPolyData * GetInput(int idx)
Get any input of this filter.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkRemovePolyData() override
void RemoveInputData(vtkPolyData *)
Remove a vtkPolyData dataset from the list of data.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.