VTK
vtkHyperOctreeClipCutPointsGrabber.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreeClipCutPointsGrabber.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 =========================================================================*/
25 #ifndef vtkHyperOctreeClipCutPointsGrabber_h
26 #define vtkHyperOctreeClipCutPointsGrabber_h
27 
28 #include "vtkFiltersHyperTreeModule.h" // For export macro
30 
31 class vtkHyperOctreeIdSet; // Pimpl idiom
32 class vtkPolygon;
34 
35 
36 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeClipCutPointsGrabber : public vtkHyperOctreePointsGrabber
37 {
38 public:
40 
42 
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
50  void SetDimension(int dim) VTK_OVERRIDE;
51 
60  void InitPointInsertion() VTK_OVERRIDE;
61 
67  void InsertPoint(vtkIdType ptId,
68  double pt[3],
69  double pcoords[3],
70  int ijk[3]) VTK_OVERRIDE;
71 
75  void InsertPointWithMerge(vtkIdType ptId,
76  double pt[3],
77  double pcoords[3],
78  int ijk[3]) VTK_OVERRIDE;
79 
83  void InsertPoint2D(double pt[3],
84  int ijk[3]) VTK_OVERRIDE;
85 
89  vtkOrderedTriangulator *GetTriangulator();
90 
94  vtkPolygon *GetPolygon();
95 
96 
97 protected:
98  // Constructor with default bounds (0,1, 0,1, 0,1).
100  ~vtkHyperOctreeClipCutPointsGrabber() VTK_OVERRIDE;
101 
102  vtkOrderedTriangulator *Triangulator;
103  vtkPolygon *Polygon;
104  vtkHyperOctreeIdSet *IdSet;
105 
106 private:
108  void operator=(const vtkHyperOctreeClipCutPointsGrabber&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
An object used by filters to store points computed on face or edge of an hyperoctant.
helper class to generate triangulations
A concrete implementation of vtkHyperOctreePointsGrabber used by vtkClipHyperOctree and vtkHyperOctre...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkIdType
Definition: vtkType.h:345
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual void SetDimension(int dim)=0
Set the dimension of the hyperoctree.
a cell that represents an n-sided polygon
Definition: vtkPolygon.h:39
virtual void InitPointInsertion()=0
Initialize the points insertion scheme.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...