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

Method deserialize

Serialization/Manager/Testing/Python/TestSilhouette.py:68–93  ·  view source on GitHub ↗
(status: dict)

Source from the content-addressed store, hash-verified

66 return status
67
68 def deserialize(status: dict):
69
70 if not len(status.get('ids')):
71 return
72
73 deser_om.PruneUnusedBlobs()
74
75 for object_id in status.get('ids'):
76 new_mtime = status.get('mtimes').get(object_id)
77 last_mtime = last_mtimes.get(object_id)
78 if last_mtime is not None and new_mtime is not None:
79 if last_mtime < new_mtime:
80 deser_om.UnRegisterState(object_id)
81 deser_om.RegisterState(ser_om.GetState(object_id))
82 elif last_mtime is None:
83 deser_om.RegisterState(ser_om.GetState(object_id))
84 last_mtimes.update({object_id: new_mtime})
85 for hash_text, blob in status.get('hashes').items():
86 deser_om.RegisterBlob(hash_text, blob)
87
88 deser_om.UpdateObjectsFromStates()
89 active_ids = deser_om.GetAllDependencies(0)
90
91 renderWindow = deser_om.GetObjectAtId(id_rwi).GetRenderWindow()
92 renderWindow.SetPosition(400, 1)
93 renderWindow.Render()
94
95 id_rwi = ser_om.RegisterObject(rwi)
96

Callers

nothing calls this directly

Calls 14

RenderMethod · 0.65
getMethod · 0.45
PruneUnusedBlobsMethod · 0.45
UnRegisterStateMethod · 0.45
RegisterStateMethod · 0.45
GetStateMethod · 0.45
updateMethod · 0.45
itemsMethod · 0.45
RegisterBlobMethod · 0.45
GetAllDependenciesMethod · 0.45
GetRenderWindowMethod · 0.45

Tested by

no test coverage detected