VTK  9.3.0
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
36 #include "vtkPolyDataAlgorithm.h"
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 class vtkCellArray;
40 class vtkDataArray;
41 class vtkPoints;
42 class vtkPolyData;
43 class vtkIdTypeArray;
44 
45 class VTKFILTERSGENERAL_EXPORT vtkRemovePolyData : public vtkPolyDataAlgorithm
46 {
47 public:
49 
55  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
62 
64 
67  vtkPolyData* GetInput(int idx);
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 
109 protected:
111  ~vtkRemovePolyData() override;
112 
113  // Usual data generation related methods
117 
118 private:
119  vtkIdTypeArray* CellIds;
120  vtkIdTypeArray* PointIds;
121  bool ExactMatch;
122 
123  vtkRemovePolyData(const vtkRemovePolyData&) = delete;
124  void operator=(const vtkRemovePolyData&) = delete;
125 };
126 
127 VTK_ABI_NAMESPACE_END
128 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:176
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:45
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:29
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:80
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.
void SetPointIds(vtkIdTypeArray *)
Set/Get the list of points ids to delete.
vtkPolyData * GetInput(int idx)
Get any input of this filter.
static vtkRemovePolyData * New()
Standard methods to instantiate, obtain information, and print information.
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.
vtkPolyData * GetInput()
Get any input of this filter.