12.01.2014 Views

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

SHOW MORE
SHOW LESS

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 />

Scene description<br />

The scene has been improved compared to previous version. Now a scene is a set of objects,<br />

each one described by a set of states represented by sprites and masks. Each state is<br />

associated to an identifier which allows changing the current state of an object dynamically. In<br />

addition, the polygons now serve as masks to identify selectable areas in an object.<br />

The scene is encoded in the MMIL format by a participant whose objType is Scene. The<br />

objects of the scene are represented as sub-participants which should have at least :<br />

• a mmil:mmilId feature which is a unique id identifying the object in the amigo<br />

framework (the id attribute of the participants identifies them only in the component),<br />

• a vis:position feature which represent its coordinates in the scene,<br />

• at least one sprite.<br />

A sprite is defined a as objects' sub-participants, they are defined by :<br />

• a mmil:objType feature which has always "Sprite" for value<br />

• a mmil:mmilId feature identifying uniquely the sprite<br />

• an optional vis:image feature giving the url of the image<br />

• an optional mask encoded by a vis:maskPoints feature<br />

• aspect features (fill, visible, color)<br />

A sprite should have a vis:image or a vis:maskPoints to be represented. The following table<br />

explains the look of an object according to the presence or absence of these features.<br />

Look of an object vis:image present vis:image absent<br />

vis:maskPoints present<br />

vis:maskPoints absent<br />

the object is an image with<br />

selectable areas given by the<br />

mask<br />

the object is an image fully<br />

selectable (a rectangular<br />

mask is created)<br />

the object is a polygon with<br />

no background image<br />

an exception is thrown while<br />

building the scene<br />

List of visual features:<br />

The visual namespace encodes all the visual aspects of the scene. In the following list :<br />

• a point is formatted as and a list of points are points separated from<br />

each other by spaces (x, y integers).<br />

• a color is either a symbolic value in { black, blue, cyan, darkGray, gray, green,<br />

lightGray, magenta, orange, pink, red, white, yellow } or a numeric rgb triplet <br />

, where , ,<br />

and are integers ranging from 0 to 255.<br />

vis:image = optional URL of a background image<br />

vis:position = a position in the scene (point)<br />

vis:zIndex = the z-index representing the depth of the object, the lowest z-index corresponds<br />

to the most distant object (integer)<br />

Amigo IST-2004-004182 77/114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!