Anti-Grain Geometry (Historical) / Mailing Lists
Touchscreen Friendly GPS Mapping _____ From: vector-agg-general-bounces@… [mailto:vector-agg-general-bounces@…] On Behalf Of Jerry Sent: Thursday, November 01, 2007 12:03 PM To: Anti-Grain Geometry Subject: Re: [AGG] Vector symbols Hi SVG fans. At the start of the year I put some time into a revamped SVG parser/rendering system with an AGG2D backend. The concept was to parse the SVG and build a tree which could be rendered on demand or modified as required. My aim was to render GUI components at runtime. IIRC I’d got the basics working: shapes/paths/transformations/colors and enough of the gradients/pattern/xlink stuff to be able to nearly render stuff I’d create and export from Corel Draw. It would also pick up Corel generated PNG files. Naturally there are warts too … Suffice to say I am _not_ interested in either scripting or animation but think filters should be added as they really make things shine. The separation of parsing and rendering means code can interact with the tree, for example hittesting etc. I’d be more than happy to put this forward as the basis for another push to nail a decent light-weight non-GPL SVG renderer. It would suit if I could get a few days to clean up some of the code, notably to integrate some newer and lighter XML and attribute parsing. Right now the test bed is a Windows MFC app with associated VS 2003 project files for the whole system. Let me know if anyone is interested. Jerry. —– Original Message —– From: HYPERLINK ‘mailto:oyvind.idland@…’Oyvind Idland To: HYPERLINK ‘mailto:vector-agg-general@…’Anti-Grain Geometry Sent: Thursday, November 01, 2007 6:31 PM Subject: Re: [AGG] Vector symbols I have also tampered with the SVG code in AGG in order to include custom vector symbols. As far as my testing went, I found that -It supported most of the primitives such as lines, spirals, boxes, beziers etc, but still lacks support for arcs (a and A commands )for some reason. I guess this should be farily straight forward to implement. – Donut shapes rendered quite fine in my example, which was the butterfly on this page (the black area is a donut with lots of holes): HYPERLINK ‘ – It understands hex triplet colors such as #40fe32, but not rgb(r,g,b) commands. I added a quick & dirty test and sscanf() in order to fix it for the sake of a demo (not an XML issue) It still lacks a few bits & pieces, but I agree with Craig, its at least a good starting point. The main purpose of the viewer is to demonstrate AGG’s high quality rendering. Still, with some effort from people here, maybe we could stick our heads together and lift it to a higher level ? I bet more people are interested in it. Oyvind On 11/1/07, Chad wrote: Craig, I couldn’t tell you how much of the SVG spec is implemented by AGG’s code. You might be able to dig through the mailing list to find other discussions on it. For me, it does most of what I need. The hollow shapes ( i.e. donuts) are one area I have trouble with, and I’m not entirely sure if it’s the AGG code, or my code… I think there are also issues with the XML parsing that should be fixed. We’ll occasionally get files from clients where a pattern is defined as a shape. Inkscape can open this just fine, but the AGG code sees this as a shape, so we get extra shapes in the image. Really, the code should probably be rewritten, but I haven’t had a need to or time to do it yet. Still, what is in AGG is a good place to start. Good luck! Chad Chad, Thanks for the reply. The svg_viewer code is what I was considering. Are the limitations of the viewer documented anywhere? Any idea as to what percentage of the SVG spec it supports? Craig — _____ ————————————————————————- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >,>, No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 – Release Date: 11/1/2007 6:01 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.14/1172 – Release Date: 12/5/2007 8:41 AM Source.