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

Method GetGlobalId

Web/Core/vtkObjectIdMap.cxx:48–64  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

46
47//------------------------------------------------------------------------------
48vtkTypeUInt32 vtkObjectIdMap::GetGlobalId(vtkObject* obj)
49{
50 if (obj == nullptr)
51 {
52 return 0;
53 }
54
55 auto iter = this->Internals->GlobalId.find(obj);
56 if (iter == this->Internals->GlobalId.end())
57 {
58 vtkTypeUInt32 globalId = this->Internals->NextAvailableId++;
59 this->Internals->GlobalId[obj] = globalId;
60 this->Internals->Object[globalId] = obj;
61 return globalId;
62 }
63 return iter->second;
64}
65
66//------------------------------------------------------------------------------
67vtkObject* vtkObjectIdMap::GetVTKObject(vtkTypeUInt32 globalId)

Callers 8

SetActiveObjectMethod · 0.95
getGlobalIdMethod · 0.80
addViewObserverMethod · 0.80
removeViewObserverMethod · 0.80
getViewStateMethod · 0.80
StillRenderMethod · 0.80
GetWebGLSceneMetaDataMethod · 0.80
testObjIdMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 1

testObjIdMethod · 0.64