Index   <<First   <Prev   Next>   End>>
sample15 : How to move an object to a position of another object according to each time value in a CVS data?
Sorry. Document is not written for the sample XML file Now!
XML elements: animeSingleObject,animeSingleMotion
Download Source:sample15.zip,sample15.tgz Download Demo:sample15.wmv

XML source code

1: <?xml version="1.0" encoding="UTF-8"?>
2:
3:
4: <!DOCTYPE test SYSTEM "GonVisTool.dtd">
5:
6: <test>
7:
8: <imageFile id="img1" file="./img1.png" />
9: <imageFile id="img2" file="./img2.png" />
10:
11: <tableFile file="sample2.csv">
12: <placeName id="data1" name="data1" />
13: </tableFile>
14:
15: <animation title="Sample oneway" backColor="0 0 0">
16: <animeSingleObject position="0 0 0">
17: <animeImage image="img1" size="100 100" />
18: <animeSingleMotion event="data1"
19: threshold="20"
20: reference="object2-1"
21: position="50 0 0"
22: type="oneway"
23: motionPeriod="20"
24: />
25: </animeSingleObject>
26:
27: <animeSingleObject position="0 50 0" id="object2-1">
28: <animeImage image="img2" size="100 100" />
29: </animeSingleObject>
30:
31: </animation>
32:
33: <animation title="Sample reversible" backColor="0 0 0">
34: <animeSingleObject position="0 0 0">
35: <animeImage image="img1" size="100 100" />
36: <animeSingleMotion event="data1"
37: threshold="20"
38: reference="object2-2"
39: position="50 0 0"
40: type="reversible"
41: motionPeriod="20"
42: />
43: </animeSingleObject>
44:
45: <animeSingleObject position="0 50 0" id="object2-2">
46: <animeImage image="img2" size="100 100" />
47: </animeSingleObject>
48:
49: </animation>
50:
51: <animation title="Sample repeat" backColor="0 0 0">
52: <animeSingleObject position="0 0 0">
53: <animeImage image="img1" size="100 100" />
54: <animeSingleMotion event="data1"
55: threshold="20"
56: reference="object2-3"
57: position="50 0 0"
58: type="repeat"
59: motionPeriod="20"
60: />
61: </animeSingleObject>
62:
63: <animeSingleObject position="0 50 0" id="object2-3">
64: <animeImage image="img2" size="100 100" />
65: </animeSingleObject>
66:
67: </animation>
68:
69: <plotter title="2D time-series Plot"
70: xLabel="Time"
71: yLabel="Number of Tokens"
72: legendPosition="0.7 0.8"
73: backColor="1 1 1"
74: axesColor="0 0 0"
75: lineWidth="1"
76: pointSize="3"
77: >
78: <plotSeries event="data1" label="Data1" color="1 0 0" />
79: </plotter>
80:
81: </test>
82:
83:
84: