I have been working with SVG last 2 years, i found it very useful to display the network topological graph view in Web UI, also i have designed rich Web UI tools out of that. Also i developed many draggable components, node-link structure.
Some background on SVG:
As it is a W3 spec similar to HTML spec, it is supported by many programming technologies, mainly supported by all browsers other than IE supports, In IE SVG support is not there, but we can install adobe SVG which provides the support.
Adobe Support.
Acrobat PDF supports SVG if you had installed it's adobe svg viewer, Also you can manipulate the SVG Dom by javascript, inside Acrobat PDF as slide view. You can also manipulate it using the acrobat javascript support.
Java supports.
In java, batik library provides SVG supports and it's w3 API, using that you can manipulate the SVG Dom. You can also export the SVG Graphics2D java object into java awt image.
SVG CTM (current Transformation Matrix ):
CTM is an interesting topic in any graphics tool, Each pixel inside has a transformation matrix, when it is translated to a new X and Y co-ordinate, or rotated by an angle, or scaled by X and Y ratio, then this CTM is needed to calculate the new X and Y co-ordinate.
Lets take a point A present on (2, 2) is translated to a distance of 2 pixel on x - axis and 2 pixel on y -axis, then the new X and Y co-ordinate of A will be (4, 4).
Since it is a simple X and Y translation, the Transformation matrix of A is like this.
1 0 2
0 1 2
0 0 1
so the formula is this
For more information
http://www.w3.org/TR/2003/REC-SVG11-20030114/coords.html#EstablishingANewUserSpace
No comments:
Post a Comment