VTK  9.0.1
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:
42  static vtkCellLocatorStrategy* New();
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 
70  virtual void SetCellLocator(vtkAbstractCellLocator*);
71  vtkGetObjectMacro(CellLocator, vtkAbstractCellLocator);
73 
74 protected:
76  ~vtkCellLocatorStrategy() override;
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
vtkAbstractCellLocator * CellLocator
an abstract base class for locators which find cells
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
virtual int Initialize(vtkPointSet *ps)
All subclasses of this class must provide an initialize method.
int vtkIdType
Definition: vtkType.h:338
provides thread-safe access to cells
helper class to manage the vtkPointSet::FindCell() METHOD
abstract class to specify cell behavior
Definition: vtkCell.h:56
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methdos for type information and printing.
virtual vtkIdType FindCell(double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)=0
Virtual method for finding a cell.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
implement a specific vtkPointSet::FindCell() strategy based on using a cell locator ...