VTK  9.1.0
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 =========================================================================*/
41 #ifndef vtkRemovePolyData_h
42 #define vtkRemovePolyData_h
43 
44 #include "vtkFiltersGeneralModule.h" // For export macro
45 #include "vtkPolyDataAlgorithm.h"
46 
47 class vtkCellArray;
48 class vtkDataArray;
49 class vtkPoints;
50 class vtkPolyData;
51 class vtkIdTypeArray;
52 
53 class VTKFILTERSGENERAL_EXPORT vtkRemovePolyData : public vtkPolyDataAlgorithm
54 {
55 public:
57 
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
70 
72 
75  vtkPolyData* GetInput(int idx);
76  vtkPolyData* GetInput() { return this->GetInput(0); }
78 
80 
87  vtkGetObjectMacro(CellIds, vtkIdTypeArray);
89 
91 
96  vtkGetObjectMacro(PointIds, vtkIdTypeArray);
98 
100 
112  vtkSetMacro(ExactMatch, bool);
113  vtkGetMacro(ExactMatch, bool);
114  vtkBooleanMacro(ExactMatch, bool);
116 
117 protected:
119  ~vtkRemovePolyData() override;
120 
121  // Usual data generation related methods
125 
126 private:
127  vtkIdTypeArray* CellIds;
128  vtkIdTypeArray* PointIds;
129  bool ExactMatch;
130 
131 private:
132  vtkRemovePolyData(const vtkRemovePolyData&) = delete;
133  void operator=(const vtkRemovePolyData&) = delete;
134 };
135 
136 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:143
vtkRemovePolyData
Removes vtkPolyData cells from an input vtkPolyData.
Definition: vtkRemovePolyData.h:54
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
vtkRemovePolyData::~vtkRemovePolyData
~vtkRemovePolyData() override
vtkRemovePolyData::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkPolyDataAlgorithm.h
vtkRemovePolyData::vtkRemovePolyData
vtkRemovePolyData()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:290
vtkRemovePolyData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate, obtain information, and print information.
vtkRemovePolyData::SetPointIds
void SetPointIds(vtkIdTypeArray *)
Set/Get the list of points ids to delete.
vtkRemovePolyData::RemoveInputData
void RemoveInputData(vtkPolyData *)
Remove a vtkPolyData dataset from the list of data.
vtkRemovePolyData::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:145
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
vtkRemovePolyData::SetCellIds
void SetCellIds(vtkIdTypeArray *)
Set/Get the list of cell ids to delete.
vtkRemovePolyData::New
static vtkRemovePolyData * New()
Standard methods to instantiate, obtain information, and print information.
vtkRemovePolyData::GetInput
vtkPolyData * GetInput(int idx)
Get any input of this filter.
vtkRemovePolyData::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkRemovePolyData::GetInput
vtkPolyData * GetInput()
Get any input of this filter.
Definition: vtkRemovePolyData.h:76
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:151