VTK  9.2.6
vtkRemovePolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRemovePolyData.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 =========================================================================*/
44 #ifndef vtkRemovePolyData_h
45 #define vtkRemovePolyData_h
46 
47 #include "vtkFiltersGeneralModule.h" // For export macro
48 #include "vtkPolyDataAlgorithm.h"
49 
50 class vtkCellArray;
51 class vtkDataArray;
52 class vtkPoints;
53 class vtkPolyData;
54 class vtkIdTypeArray;
55 
56 class VTKFILTERSGENERAL_EXPORT vtkRemovePolyData : public vtkPolyDataAlgorithm
57 {
58 public:
60 
66  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
73 
75 
78  vtkPolyData* GetInput(int idx);
79  vtkPolyData* GetInput() { return this->GetInput(0); }
81 
83 
90  vtkGetObjectMacro(CellIds, vtkIdTypeArray);
92 
94 
99  vtkGetObjectMacro(PointIds, vtkIdTypeArray);
101 
103 
115  vtkSetMacro(ExactMatch, bool);
116  vtkGetMacro(ExactMatch, bool);
117  vtkBooleanMacro(ExactMatch, bool);
119 
120 protected:
122  ~vtkRemovePolyData() override;
123 
124  // Usual data generation related methods
128 
129 private:
130  vtkIdTypeArray* CellIds;
131  vtkIdTypeArray* PointIds;
132  bool ExactMatch;
133 
134 private:
135  vtkRemovePolyData(const vtkRemovePolyData&) = delete;
136  void operator=(const vtkRemovePolyData&) = delete;
137 };
138 
139 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:296
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:165
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:149
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
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.