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

Method SetPointLocator

Common/DataModel/vtkClosestPointStrategy.cxx:38–57  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36
37//------------------------------------------------------------------------------
38void vtkClosestPointStrategy::SetPointLocator(vtkAbstractPointLocator* pL)
39{
40 if (pL != this->PointLocator)
41 {
42 if (this->PointLocator != nullptr && this->OwnsLocator)
43 {
44 this->PointLocator->Delete();
45 }
46
47 this->PointLocator = pL;
48
49 if (pL != nullptr)
50 {
51 pL->Register(this);
52 }
53
54 this->OwnsLocator = true;
55 this->Modified();
56 }
57}
58
59//------------------------------------------------------------------------------
60int vtkClosestPointStrategy::Initialize(vtkPointSet* ps)

Callers 4

~vtkPointSetMethod · 0.80
InitializeMethod · 0.80

Calls 3

DeleteMethod · 0.65
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected