VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
24 #ifndef __vtkHyperOctreeClipCutPointsGrabber_h
25 #define __vtkHyperOctreeClipCutPointsGrabber_h
26 
27 #include "vtkFiltersHyperTreeModule.h" // For export macro
28 #include "vtkHyperOctreePointsGrabber.h"
29 
30 class vtkHyperOctreeIdSet; // Pimpl idiom
31 class vtkPolygon;
32 class vtkOrderedTriangulator;
33 
34 
35 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeClipCutPointsGrabber : public vtkHyperOctreePointsGrabber
36 {
37 public:
39 
40  vtkTypeMacro(vtkHyperOctreeClipCutPointsGrabber,vtkHyperOctreePointsGrabber);
41 
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
46  virtual void SetDimension(int dim);
47 
53  virtual void InitPointInsertion();
54 
56 
59  virtual void InsertPoint(vtkIdType ptId,
60  double pt[3],
61  double pcoords[3],
62  int ijk[3]);
64 
66 
67  virtual void InsertPointWithMerge(vtkIdType ptId,
68  double pt[3],
69  double pcoords[3],
70  int ijk[3]);
72 
74 
75  virtual void InsertPoint2D(double pt[3],
76  int ijk[3]);
78 
80  vtkOrderedTriangulator *GetTriangulator();
81 
83  vtkPolygon *GetPolygon();
84 
85 
86 protected:
87  // Constructor with default bounds (0,1, 0,1, 0,1).
90 
91  vtkOrderedTriangulator *Triangulator;
92  vtkPolygon *Polygon;
93  vtkHyperOctreeIdSet *IdSet;
94 
95 private:
97  void operator=(const vtkHyperOctreeClipCutPointsGrabber&); // Not implemented.
98 };
99 
100 #endif
A concrete implementation of vtkHyperOctreePointsGrabber used by vtkClipHyperOctree and vtkHyperOctre...