User Interface Service Software Developerís Guide - Hitech Projects
User Interface Service Software Developerís Guide - Hitech Projects
User Interface Service Software Developerís Guide - Hitech Projects
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
January 2008<br />
Public<br />
3.4 Tutorial<br />
3.4.1 Gesture <strong>Service</strong><br />
3.4.1.1 2D Gesture <strong>Service</strong><br />
3.4.1.1.1 Using GestureCapture command line<br />
The GestureCapture command line facilitates the scene creation by providing some<br />
commands :<br />
clear<br />
: clear the scene<br />
add <br />
: add a new object from the last drawn simplified gesture, the gesture is<br />
simplified (only important points are kept) and added in the scene as<br />
an object<br />
addfull : add a new object from the last drawn whole gesture (all the points of<br />
the gesture define the object)<br />
del <br />
: remove the given object from the scene<br />
ls<br />
: list all the objects of the scene<br />
col : color the given object<br />
fill/empty : fill or empty the given object<br />
hide/show : hide or show the given object<br />
mul <br />
: multiply int*int times the last drawn object, mainly for debugging<br />
purposes<br />
back : load the file as a background image (GIF, JPEG or PNG)<br />
save/load : save or load the scene from the given file<br />
javi <br />
: load a JaviMap scene from the given file<br />
state <br />
: displays the possible states for an object and its current state<br />
state : change the state of the given object<br />
is an alphanumeric identifier or could be * for all the objects<br />
is a valid file without spaces, the base directory is the Oscar directory (so the file<br />
etc/pic.jpg will be the file $OSCAR_HOME/etc/pic.jpg)<br />
is either { black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink,<br />
red, white, yellow } or (like<br />
"0,123,255,180")<br />
3.4.1.1.2 Creating a scene with JaviMap<br />
It is advised (but not necessary) to use JaviMap to facilitate the scene building,<br />
see http://www4.vc-net.ne.jp/~klivo/mapo/javimap.htm (Cleve Lendon)<br />
In JaviMap : create an image map from a picture P and save it in JaviMap format.<br />
In GestureCapture :<br />
Amigo IST-2004-004182 89/114