wiki:BMLP

BML behavior extensions for the PictureEngine

A quick overview of the BMLP tags and their syntax. The namespace for BMLP is  http://hmi.ewi.utwente.nl/pictureengine, we use bmlp as the prefix for that namespace throughout this document.

<bmlp:setImage>

Removes all images from the picture display, then sets the new image on layer 1.

AttributeTypeUseDescription
filePathstringrequiredpath of the imagefile
fileNamestringrequiredname of the imagefile


Sync attributedescription
start
end

Example:

<bmlp:setImage id="v1" filePath="images" fileName="image1.png"/>

<bmlp:addImage>

Adds an image to the picture display on a specific layer. Existing images will be kept on that layer, but only the topmost one (last added) is actually shown.

AttributeTypeUseDescription
filePathstringrequiredpath of the imagefile
fileNamestringrequiredname of the imagefile
layerfloatrequiredlayer number


Sync attributedescription
start
end

Example:

<bmlp:addImage id="v1" filePath="images" fileName="image1.png" layer="1"/>

<bmlp:addAnimationDir>

Plays an animation from a directory: by playing all images in that directory one by one on requested layer

AttributeTypeUseDescription
resourcePathstringrequired??
directoryNamestringrequired??
layerfloatrequiredlayer number

Example:

<bmlp:addAnimationDir id="p1" layer="1" resourcePath="rp" directoryName="dir"/>

<bmlp:addAnimationXML>

TODO: what does this do?

AttributeTypeUseDescription
filePathstringrequired??
fileNamestringrequired??
layerfloatrequiredlayer number

Example:

<bmlp:addAnimationXML id="p1" layer="1" filePath="fp" fileName="animation.xml"/>