annotate TaskManager/Test/test_render/SceneGraphIterator.h @ 341:2a0fad8a817d

add param gid [SceneGraph.h], func [SceneGraphIterator]
author aaa
date Mon, 29 Jun 2009 20:28:42 +0900
parents 3f4c6a75d7e0
children 25c820b6060e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
201
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
1 #ifndef INCLUDED_SCENE_GRAPH_ITERATOR
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
2 #define INCLUDED_SCENE_GRAPH_ITERATOR
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
3
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #ifndef INCLUDED_SCENE_GRAPH
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 # include "SceneGraph.h"
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6 #endif
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
7
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
8 class SceneGraphIterator {
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 public:
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
10 // 走査する SceneGraphList
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11 SceneGraphPtr list;
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13 // 現在参照中の SceneGraph
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
14 SceneGraphPtr cur;
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
15
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16 void set(SceneGraphPtr list);
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
17 int hasNext(void);
202
3f4c6a75d7e0 fix SceneGraphIterator::hasNext(), next()
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 201
diff changeset
18 int hasNext(int id);
341
2a0fad8a817d add param gid [SceneGraph.h], func [SceneGraphIterator]
aaa
parents: 202
diff changeset
19 int hasNextGroup(int id);
201
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 void next(void);
202
3f4c6a75d7e0 fix SceneGraphIterator::hasNext(), next()
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 201
diff changeset
21 void next(int id);
341
2a0fad8a817d add param gid [SceneGraph.h], func [SceneGraphIterator]
aaa
parents: 202
diff changeset
22 void nextGroup(int id);
201
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
23 void remove(void);
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
24 SceneGraphPtr get(void);
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
25 };
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
26
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
27 typedef SceneGraphIterator *SceneGraphIteratorPtr;
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28
b257e27d995c add SceneGraphIterator
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
29 #endif