VTK  9.1.0
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
36class VTKCOMMONDATAMODEL_EXPORT vtkCellLocatorStrategy : public vtkFindCellStrategy
37{
38public:
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
74protected:
77
79 bool OwnsLocator; // was the locator specified? or taken from associated point set
80
81private:
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
static vtkCellLocatorStrategy * New()
Construct a vtkFindCellStrategy subclass.
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.
abstract class to specify cell behavior
Definition: vtkCell.h:147
helper class to manage the vtkPointSet::FindCell() METHOD
provides thread-safe access to cells
a simple class to control print indentation
Definition: vtkIndent.h:113
concrete class for storing a set of points
Definition: vtkPointSet.h:106
int vtkIdType
Definition: vtkType.h:332