VTK  9.0.3
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 =========================================================================*/
28 #ifndef vtkCellLocatorStrategy_h
29 #define vtkCellLocatorStrategy_h
30 
31 #include "vtkCommonDataModelModule.h" // For export macro
32 #include "vtkFindCellStrategy.h"
33 
35 
36 class VTKCOMMONDATAMODEL_EXPORT vtkCellLocatorStrategy : public vtkFindCellStrategy
37 {
38 public:
43 
45 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
56  int Initialize(vtkPointSet* ps) override;
57 
61  vtkIdType FindCell(double x[3], vtkCell* cell, vtkGenericCell* gencell, vtkIdType cellId,
62  double tol2, int& subId, double pcoords[3], double* weights) override;
63 
65 
71  vtkGetObjectMacro(CellLocator, vtkAbstractCellLocator);
73 
74 protected:
77 
79  bool OwnsLocator; // was the locator specified? or taken from associated point set
80 
81 private:
83  void operator=(const vtkCellLocatorStrategy&) = delete;
84 };
85 
86 #endif
an abstract base class for locators which find cells
implement a specific vtkPointSet::FindCell() strategy based on using a cell locator
vtkAbstractCellLocator * CellLocator
virtual void SetCellLocator(vtkAbstractCellLocator *)
Set / get an instance of vtkAbstractCellLocator which is used to implement the strategy for FindCell(...
~vtkCellLocatorStrategy() override
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
Methods invoked by print to print information about the object including superclasses.
static vtkCellLocatorStrategy * New()
Construct a vtkFindCellStrategy subclass.
abstract class to specify cell behavior
Definition: vtkCell.h:57
helper class to manage the vtkPointSet::FindCell() METHOD
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:34
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:63
int vtkIdType
Definition: vtkType.h:338