VTK
vtkHyperOctreePointsGrabber.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreePointsGrabber.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 =========================================================================*/
29 #ifndef vtkHyperOctreePointsGrabber_h
30 #define vtkHyperOctreePointsGrabber_h
31 
32 #include "vtkCommonDataModelModule.h" // For export macro
33 #include "vtkObject.h"
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkHyperOctreePointsGrabber : public vtkObject
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
45  int GetDimension();
46 
52  virtual void SetDimension(int dim)=0;
53 
62  virtual void InitPointInsertion()=0;
63 
64 
70  virtual void InsertPoint(vtkIdType ptId,
71  double pt[3],
72  double pcoords[3],
73  int ijk[3])=0;
74 
78  virtual void InsertPointWithMerge(vtkIdType ptId,
79  double pt[3],
80  double pcoords[3],
81  int ijk[3])=0;
82 
86  virtual void InsertPoint2D(double pt[3],
87  int ijk[3])=0;
88 
89 protected:
90  // Constructor with default bounds (0,1, 0,1, 0,1).
93 
94  int Dimension;
95 
96 private:
97  vtkHyperOctreePointsGrabber(const vtkHyperOctreePointsGrabber&) VTK_DELETE_FUNCTION;
98  void operator=(const vtkHyperOctreePointsGrabber&) VTK_DELETE_FUNCTION;
99 };
100 
101 #endif
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkHyperOctreePointsGrabber::~vtkHyperOctreePointsGrabber
~vtkHyperOctreePointsGrabber() override
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkHyperOctreePointsGrabber::SetDimension
virtual void SetDimension(int dim)=0
Set the dimension of the hyperoctree.
vtkHyperOctreePointsGrabber
An object used by filters to store points computed on face or edge of an hyperoctant.
Definition: vtkHyperOctreePointsGrabber.h:36
vtkHyperOctreePointsGrabber::GetDimension
int GetDimension()
Return the dimension of the hyperoctree.
vtkHyperOctreePointsGrabber::InsertPointWithMerge
virtual void InsertPointWithMerge(vtkIdType ptId, double pt[3], double pcoords[3], int ijk[3])=0
Insert a point using a locator.
vtkHyperOctreePointsGrabber::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkHyperOctreePointsGrabber::InsertPoint2D
virtual void InsertPoint2D(double pt[3], int ijk[3])=0
Insert a point in the quadtree case.
vtkObject.h
vtkHyperOctreePointsGrabber::InsertPoint
virtual void InsertPoint(vtkIdType ptId, double pt[3], double pcoords[3], int ijk[3])=0
Insert a point, assuming the point is unique and does not require a locator.
vtkHyperOctreePointsGrabber::vtkHyperOctreePointsGrabber
vtkHyperOctreePointsGrabber()
vtkHyperOctreePointsGrabber::InitPointInsertion
virtual void InitPointInsertion()=0
Initialize the points insertion scheme.