Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/Application.cc @ 453:dc50a62ffd96
Chain extends Application. add Application to Viewer.
author | kazz@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 23:51:55 +0900 |
parents | 1f35fc0a3472 |
children | 99a92f6a1c59 |
rev | line source |
---|---|
452 | 1 #include "Application.h" |
2 | |
3 // void | |
4 // Application::set_move_func(move_func new_move) | |
5 // { | |
6 // this->move = new_move; | |
7 // } | |
8 | |
9 // void | |
10 // Application::set_move_coll(coll_func new_coll) | |
11 // { | |
12 // this->coll = new_coll; | |
13 // } | |
14 | |
15 Application::Application(){} | |
16 Application::~Application(){} | |
17 // void | |
18 // Application::apply_property(PropertyPtr p, SceneGraphPtr sgptr) | |
19 // { | |
20 // sgptr->xyz[0] = p->xyz[0]; | |
21 // sgptr->xyz[1] = p->xyz[1]; | |
22 // sgptr->xyz[2] = p->xyz[2]; | |
23 | |
24 // sgptr->angle[0] = p->angle[0]; | |
25 // sgptr->angle[1] = p->angle[1]; | |
26 // sgptr->angle[2] = p->angle[2]; | |
27 | |
28 // sgptr->frame++; | |
29 | |
30 // } | |
31 | |
32 SceneGraphPtr | |
33 Application::scenegraph_factory(void *p, int size) | |
34 { | |
35 //SceneGraphPtr sgptr = p->scenegraph; | |
36 //apply_property(p, sgptr); | |
37 | |
38 return NULL; | |
39 } | |
40 | |
41 SceneGraphPtr | |
42 Application::scenegraph_connector(void *p, int size, SceneGraphPtr sg, | |
43 SceneGraphPtr sg_available_list) | |
44 { | |
45 // SceneGraphPtr last = sg_available_list; | |
46 | |
47 // if (!last) { | |
48 // sg_available_list = sg; | |
49 // } else { | |
50 // while (last->next) { | |
51 // last = last->next; | |
52 // } | |
53 // last->next = sg; | |
54 // sg->prev = last; | |
55 // } | |
56 | |
57 // PropertyPtr p_curent = (PropertyPtr)sg->propertyPtr; | |
58 // PropertyPtr p_parent = p[p_curent->parent_id]; | |
59 // SceneGraphPtr s_parent = p_parent->scenegraph; | |
60 | |
61 // /* childrenのリストの最後に加える (brother として)*/ | |
62 // if (s_parent->lastChild != NULL) { | |
63 // SceneGraphPtr last = s_parent->lastChild; | |
64 // last->brother = sg; | |
65 // } | |
66 | |
67 // s_parent->lastChild = sg; | |
68 | |
69 // if (s_parent->children == NULL) { | |
70 // s_parent->children = sg; | |
71 // } | |
72 | |
73 // sg->parent = s_parent; | |
74 return NULL; | |
75 } | |
76 | |
77 | |
78 void Application::init(TaskManager *manager, int w, int h) { | |
79 } | |
80 | |
81 int Application::move_task_id() { | |
453
dc50a62ffd96
Chain extends Application. add Application to Viewer.
kazz@henri.cr.ie.u-ryukyu.ac.jp
parents:
452
diff
changeset
|
82 return move_task_id_; |
452 | 83 } |
84 |