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

Method BuildLocator

Common/DataModel/vtkStaticPointLocator2D.cxx:1611–1631  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1609
1610//------------------------------------------------------------------------------
1611void vtkStaticPointLocator2D::BuildLocator()
1612{
1613 // Short circuit mtime query process in tight loops
1614 if (this->Static)
1615 {
1616 return;
1617 }
1618 // don't rebuild if build time is newer than modified and dataset modified time
1619 if (this->Buckets && this->BuildTime > this->MTime && this->BuildTime > this->DataSet->GetMTime())
1620 {
1621 return;
1622 }
1623 // don't rebuild if UseExistingSearchStructure is ON and a search structure already exists
1624 if (this->Buckets && this->UseExistingSearchStructure)
1625 {
1626 this->BuildTime.Modified();
1627 vtkDebugMacro(<< "BuildLocator exited - UseExistingSearchStructure");
1628 return;
1629 }
1630 this->BuildLocatorInternal();
1631}
1632
1633//------------------------------------------------------------------------------
1634void vtkStaticPointLocator2D::ForceBuildLocator()

Callers 10

FindClosestPointMethod · 0.95
FindClosestNPointsMethod · 0.95
FindNPointsInAnnulusMethod · 0.95
IntersectWithLineMethod · 0.95
MergePointsMethod · 0.95
BuildLocatorInternalMethod · 0.45

Calls 3

BuildLocatorInternalMethod · 0.95
GetMTimeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected