VTK  9.3.1
vtkCoincidentPoints.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-NVIDIA-USGov
14 #ifndef vtkCoincidentPoints_h
15 #define vtkCoincidentPoints_h
16 
17 #include "vtkFiltersGeneralModule.h" // For export macro
18 #include "vtkObject.h"
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkIdList;
22 class vtkPoints;
23 
24 class VTKFILTERSGENERAL_EXPORT vtkCoincidentPoints : public vtkObject
25 {
26 public:
27  static vtkCoincidentPoints* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
38  void AddPoint(vtkIdType Id, const double point[3]);
39 
44  vtkIdList* GetCoincidentPointIds(const double point[3]);
45 
50  vtkIdList* GetNextCoincidentPointIds();
51 
55  void InitTraversal();
56 
61  void RemoveNonCoincidentPoints();
62 
67  void Clear();
68 
69  class implementation;
70  implementation* GetImplementation() { return this->Implementation; }
71 
77  static void SpiralPoints(vtkIdType num, vtkPoints* offsets);
78 
79 protected:
81  ~vtkCoincidentPoints() override;
82 
83 private:
85  void operator=(const vtkCoincidentPoints&) = delete;
86 
87  implementation* Implementation;
88 
89  friend class implementation;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif // vtkCoincidentPoints_h
contains an octree of labels
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
implementation * GetImplementation()
int vtkIdType
Definition: vtkType.h:315
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
Definition: vtkPoints.h:28