Mercurial > MadButterfly
diff pyink/MBScene.py @ 1203:b90a1e2eb9ec
Add document for methods
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 03 Jan 2011 14:18:03 +0800 |
parents | 2f3d523a3871 |
children | 78925515836f |
line wrap: on
line diff
--- a/pyink/MBScene.py Mon Jan 03 14:06:18 2011 +0800 +++ b/pyink/MBScene.py Mon Jan 03 14:18:03 2011 +0800 @@ -249,6 +249,10 @@ return pass + ## \brief Collect ID of nodes in the document. + # + # It is used to implement a fast mapping from an ID to the respective node. + # def _collect_node_ids(self): self._id2node = {} root = self._root @@ -269,9 +273,13 @@ pass pass + ## \brief Return the node with given ID. + # def get_node(self, node_id): return self._id2node[node_id] + ## \brief Return a scene node corresponding to a scene group of given ID. + # def get_scene(self, group_id): return self._group2scene[group_id]