MCPcopy Create free account
hub / github.com/Kitware/VTK / SetCellLocator

Method SetCellLocator

Common/DataModel/vtkCellLocatorStrategy.cxx:32–51  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

30
31//------------------------------------------------------------------------------
32void vtkCellLocatorStrategy::SetCellLocator(vtkAbstractCellLocator* cL)
33{
34 if (cL != this->CellLocator)
35 {
36 if (this->CellLocator != nullptr && this->OwnsLocator)
37 {
38 this->CellLocator->Delete();
39 }
40
41 this->CellLocator = cL;
42
43 if (cL != nullptr)
44 {
45 cL->Register(this);
46 }
47
48 this->OwnsLocator = true;
49 this->Modified();
50 }
51}
52
53//------------------------------------------------------------------------------
54int vtkCellLocatorStrategy::Initialize(vtkPointSet* ps)

Callers 14

~vtkPointSetMethod · 0.80
SetInterpolatorTypeMethod · 0.80
ShallowCopyMethod · 0.80
InitializeMethod · 0.80
TestCellLocatorsFunction · 0.80
UpdateLocatorsMethod · 0.80
~vtkBinCellDataFilterMethod · 0.80
CreateDefaultLocatorMethod · 0.80

Calls 3

DeleteMethod · 0.65
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by 2

TestCellLocatorsFunction · 0.64
TestBinCellDataFilterFunction · 0.64