summaryrefslogtreecommitdiffstats
path: root/test/samples/uscxml/test-scenegraph.scxml
blob: 25e13ed00c706e0554dc8dbaeffc50959c1bed65 (plain)
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
<scxml datamodel="ecmascript" initial="start" binding="late" xmlns:scenegraph="http://uscxml.tk.informatik.tu-darmstadt.de/scenegraph.xsd">
	<state id="start">
		<invoke type="scenegraph">
			<content>
				<scenegraph:display x="10%" y="10 %" width="50 % " height=" 50 % ">
					<scenegraph:viewport x="0" y="0" width="50%" height="50%" id="scene1">
						<scenegraph:scale x="0.3" y="0.3" z="1">
							<scenegraph:translation x="0" y="-10" z="1">
								<scenegraph:node src="http://people.sc.fsu.edu/~jburkardt/data/obj/airboat.obj" />
							</scenegraph:translation>
						</scenegraph:scale>
					</scenegraph:viewport>
					<scenegraph:viewport x="50%" y="0" width="50%" height="50%" id="scene2">
						<scenegraph:translation x="0" y="0" z="0">
							<scenegraph:node src="http://cs.iupui.edu/~aharris/mm/vrml4/house.wrl" />
						</scenegraph:translation>
					</scenegraph:viewport>
					<scenegraph:viewport x="0" y="50%" width="50%" height="50%" id="scene3">
						<scenegraph:rotation pitch="100deg" roll="3.15149rad" yaw="10deg">
							<scenegraph:node src="http://cs.iupui.edu/~aharris/webDesign/vrml/tree.wrl" />
						</scenegraph:rotation>
					</scenegraph:viewport>
					<scenegraph:viewport x="50%" y="50%" width="50%" height="50%" id="scene4">
						<scenegraph:translation x="0" y="0" z="0">
							<scenegraph:node src="scenegraph/HARD_MP_VAL_000.wrl" />
						</scenegraph:translation>
					</scenegraph:viewport>
				</scenegraph:display>

				<!-- scenegraph:display x="20%" y="20 %" width="50 % " height=" 50 % ">
					<scenegraph:viewport x="0" y="0" width="50%" height="50%" id="scene1">
						<scenegraph:translation x="0" y="0" z="0">
							<scenegraph:node src="scenegraph/HARD_MP_VAL_000.wrl" />
						</scenegraph:translation>
					</scenegraph:viewport>
				</scenegraph:display -->
			</content>
		</invoke>
	</state>
	<final id="final">
		<onentry>
			<log expr="'Finished!'" />
		</onentry>
	</final>
</scxml>