VTK  9.2.5
vtkCellLocatorStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellLocatorStrategy.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 =========================================================================*/
31 #ifndef vtkCellLocatorStrategy_h
32 #define vtkCellLocatorStrategy_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkFindCellStrategy.h"
36 
38 
39 class VTKCOMMONDATAMODEL_EXPORT vtkCellLocatorStrategy : public vtkFindCellStrategy
40 {
41 public:
46 
48 
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
59  int Initialize(vtkPointSet* ps) override;
60 
64  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
65  double tol2, int& subId, double pcoords[3], double* weights) override;
66 
70  vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3],
71  vtkGenericCell* cell, vtkIdType& cellId, int& subId, double& dist2, int& inside) override;
72 
76  bool InsideCellBounds(double x[3], vtkIdType cellId) override;
77 
79 
85  vtkGetObjectMacro(CellLocator, vtkAbstractCellLocator);
87 
94  void CopyParameters(vtkFindCellStrategy* from) override;
95 
96 protected:
99 
101 
102 private:
104  void operator=(const vtkCellLocatorStrategy&) = delete;
105 };
106 
107 #endif
an abstract base class for locators which find cells
implement a specific vtkPointSet::FindCell() strategy based on using a cell locator
bool InsideCellBounds(double x[3], vtkIdType cellId) override
Implement the specific strategy.
vtkAbstractCellLocator * CellLocator
virtual void SetCellLocator(vtkAbstractCellLocator *)
Set / get an instance of vtkAbstractCellLocator which is used to implement the strategy for FindCell(...
~vtkCellLocatorStrategy() override
void CopyParameters(vtkFindCellStrategy *from) override
Copy essential parameters between instances of this class.
int Initialize(vtkPointSet *ps) override
Provide necessary initialization method (see superclass for more information).
vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) override
Implement the specific strategy.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
static vtkCellLocatorStrategy * New()
Construct a vtkFindCellStrategy subclass.
vtkIdType FindClosestPointWithinRadius(double x[3], double radius, double closestPoint[3], vtkGenericCell *cell, vtkIdType &cellId, int &subId, double &dist2, int &inside) override
Implement the specific strategy.
abstract class to specify cell behavior
Definition: vtkCell.h:150
helper class to manage the vtkPointSet::FindCell() METHOD
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:119
concrete class for storing a set of points
Definition: vtkPointSet.h:109
@ radius
Definition: vtkX3D.h:258
int vtkIdType
Definition: vtkType.h:332