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
35class VTKCOMMONDATAMODEL_EXPORT vtkHyperOctreePointsGrabber : public vtkObject
36{
37public:
39 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40
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
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
89protected:
90 // Constructor with default bounds (0,1, 0,1, 0,1).
93
94 int Dimension;
95
96private:
98 void operator=(const vtkHyperOctreePointsGrabber&) VTK_DELETE_FUNCTION;
99};
100
101#endif
An object used by filters to store points computed on face or edge of an hyperoctant.
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.
virtual void SetDimension(int dim)=0
Set the dimension of the hyperoctree.
~vtkHyperOctreePointsGrabber() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void InsertPoint2D(double pt[3], int ijk[3])=0
Insert a point in the quadtree case.
int GetDimension()
Return the dimension of the hyperoctree.
virtual void InitPointInsertion()=0
Initialize the points insertion scheme.
virtual void InsertPointWithMerge(vtkIdType ptId, double pt[3], double pcoords[3], int ijk[3])=0
Insert a point using a locator.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
int vtkIdType
Definition: vtkType.h:287