Hi Hauke,

SMIL is a declarative way to define interactivity and animation (doesn't require scripting but can interact with scripting). It can start an animation based on another mouse or keyboard event. If you read the animation chapter in the SVG specification or a SMIL intro you'll get the idea.

But from what I read regarding your problem it sounds like a combination of script and SMIL might be required.

With script you can fetch the data (use something like getURL/postURL or XMLHttpRequest (in browsers)) process the data and then place a little symbol to where you want it to have, using .getPointAtLength(). The problem is, that you probably want to auto-orient the symbol according to the tangent angle at the given point along the curve. As far as I know there is no scripting way to do this, but the SMIL method animateTransform can auto orient objects along a path. But luckily you can create SMIL elements with script and just create a new animateTransform element and tweak its values.

http://www.eminerllc.com/demos/SVG/Menu.svg has a few examples similar to what you want to do. Some examples use old, incompatible code made for the Adobe viewer, but the ones that are marked with the firefox icon should also run on Batik, Opera and Safari. I think most of the examples are script based, since Firefox doesn't support SMIL yet.

Hope this helps a little bit,
Andreas

This sounds quite what I want to do, expect one thing (sorry, I'm an SVG
newbie, so I'm not exactly sure, what features SMIL provides): as I
understand, the animations of SMIL are synchronized to time. However I
need to trigger these animations manually, resp. by some external events.
For example I want to define a gauge, that displays some sensor value
that some other program regularly sends to my application. So I need to
animate the needle of the gauge corresponding to external input and not
to predefined time. Is it possible to do this with batik (with SMIL?)?

Best regards,
Hauke

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to