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

Method GetBucketIds

Common/DataModel/vtkStaticPointLocator.cxx:1996–2013  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Given a bucket, return the ids in the bucket.

Source from the content-addressed store, hash-verified

1994//------------------------------------------------------------------------------
1995// Given a bucket, return the ids in the bucket.
1996void vtkStaticPointLocator::GetBucketIds(vtkIdType bNum, vtkIdList* bList)
1997{
1998 this->BuildLocator(); // will subdivide if modified; otherwise returns
1999 if (!this->Buckets)
2000 {
2001 bList->Reset();
2002 return;
2003 }
2004
2005 if (this->LargeIds)
2006 {
2007 static_cast<BucketList<vtkIdType>*>(this->Buckets)->GetIds(bNum, bList);
2008 }
2009 else
2010 {
2011 static_cast<BucketList<int>*>(this->Buckets)->GetIds(bNum, bList);
2012 }
2013}
2014
2015//------------------------------------------------------------------------------
2016// Return the center a specified bucket/bin.

Callers 3

RequestDataMethod · 0.45
BuildTileMethod · 0.45
operator()Method · 0.45

Calls 3

BuildLocatorMethod · 0.95
ResetMethod · 0.45
GetIdsMethod · 0.45

Tested by

no test coverage detected