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

Method mapIdToObject

Web/Python/vtkmodules/web/protocols.py:42–50  ·  view source on GitHub ↗

Maps global-id for a vtkObject to the vtkObject instance. May return None if the id is not valid.

(self, id)

Source from the content-addressed store, hash-verified

40 pass
41
42 def mapIdToObject(self, id):
43 """
44 Maps global-id for a vtkObject to the vtkObject instance. May return None if the
45 id is not valid.
46 """
47 id = int(id)
48 if id <= 0:
49 return None
50 return self.getApplication().GetObjectIdMap().GetVTKObject(id)
51
52 def getGlobalId(self, obj):
53 """

Callers 1

getViewMethod · 0.95

Calls 3

getApplicationMethod · 0.95
GetObjectIdMapMethod · 0.80
GetVTKObjectMethod · 0.45

Tested by

no test coverage detected