This repository was archived by the owner on Apr 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadvanced_inline.html
More file actions
148 lines (118 loc) · 4.39 KB
/
advanced_inline.html
File metadata and controls
148 lines (118 loc) · 4.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mobile Widgets</title>
<link rel="stylesheet" href="style/style.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="js/StructureElts.js"></script>
<script type="text/javascript" src="js/Structure.js"></script>
<script type="text/javascript" src="js/DocElements.js"></script>
</head>
<body>
<script type="text/javascript">
<!--
idCurrentPage = "advanced_inline";
beginPage();
//-->
</script>
<h1 class="title">inlining</h1>
<script type="text/javascript">
<!--
addIndex();
//-->
</script>
<script type="text/javascript">addTitle("Inline mechanism and memory benefits", 1);</script>
<p>
<a href="development_node_Inline.html">Inline node</a> dynamically load and
display a subscene file.<br/>
</p>
<p>
<a href="development_node_Inline.html">Inline node</a> can be use with the
<a href="development_node_Switch.html">Switch node</a>.<br/>
Advantage, only the displayed node is loaded in memory. Other subscenes are not
loader.<br/>
Inconvenience, change the subscene is slower (when <b>whichChoice</b> attribute
of Swith node change). Inline node must load and construct the new subscene.
</p>
<p>
The other possibility to define and display subscene: create and use a prototype
by sub scene.<br/>
Advantage, change the subscene is fast (subscene is already loaded).<br/>
Inconvenience, all subscene are loaded in memory.<br/>
</p>
<p>
The best solution, between use prototype or Inline node, depends on the material
constraints (memory, processor, ...) and the complexity of the scene.
</p>
<br/>
<p class="note info">
<b>Note:</b><br/>
MeMo extends <a href="development_node_Inline.html">Inline node</a> specification.<br/>
In addition, <a href="development_node_Inline.html">Inline node</a> gives you the opportunity to select a language pack for the
scene that is inlined.
</p>
<p class="note warning">
<b>Warning:</b><br/>
For Inline node, only use <span class="highlight">M4M</span> files in URL field.<br/>
Don't use <span class="highlight">WRL</span> files ( cause problems during the
final M4M file creation).
</p>
<br/>
<script type="text/javascript">addTitle("Anchor", 1);</script>
<p>
The <a href="development_node_Anchor.html">Anchor node</a> has two roles:
</p>
<ul>
<li>Call the phone browser and display a web page.<br/>
<p class="note info">
<b>Note:</b><br/>MicroEmulator doesn't open web browser.
</p>
</li>
<li>Open another VRML scene.<br/>
<a href="development_node_Anchor.html">Anchor node</a> can change all the
scene or only the Inline part containing the Anchor.
<p class="note warning">
<b>Warning:</b><br/>
For Anchor node, to link scene with another scene, use <span class="highlight">M4M</span>
files in URL field.<br/>
Don't use <span class="highlight">WRL</span> files ( cause problems during the
final M4M file creation).
</p>
</li>
</ul>
<br/>
<script type="text/javascript">addTitle("Switch and resource saving", 1);</script>
<p>
<a href="development_node_Switch.html">Switch node</a> allows to render only
one node in a list of nodes. It is useful to display or hide elements.<br/>
It can be used to manage different panels in a scene (with tabs, menu, ...).<br/>
</p>
<br/>
<p>
<a href="development_node_Switch.html">Switch node</a> contains an array of
nodes (<b>choice</b> attribute) and the displayed node (<b>whichChoice</b> attribute).<br/>
<b>whichChoice</b> contains the index of current displayed node in <b>choice</b>
array. First node index is 0. <a href="development_node_Switch.html">Switch node</a>
doesn't display node if <b>whichChoice = -1</b>.<br/>
<b>whichChoice</b> value is modifiable via script (Script node and javascript language).
</p>
<br/>
<p>
See <a href="development_node_Switch.html">Switch node documentation</a> for
more information about Swith node and example.
</p>
<script type="text/javascript">
<!--
addBackPageNavigator ('advanced_cache','advanced_memory_tips');
//-->
</script>
<script type="text/javascript">
<!--
endPage();
//-->
</script>
</body>
</html>