Finding elements at a given point

Roger Light <[email protected]>
Newsgroups gmane.comp.gnome.lib.librsvg.devel
Message-ID <[email protected]>
Hi there,

I've just started playing around with SVG and it seems pretty great. I
guess you all know that :)

I'm writing a tool to convert chip layout files (gds2) to svg to
complement my gds2pov tool that converts to POV-Ray files. You can see
pics at http://www.atchoo.org/gds2pov/ if you're interested.

I'm mostly finished now and have been pleasantly suprised at how easy
it was, once I got my head around the changing coordinate systems.

Now I'm interested in making use of the work I've done with svg in
another project. The chip layouts consist of layers that mean the same
thing regardless of where they are (so independant of whether in a
<use>, <symbol>, <polygon> or whatever, in svg speak). What I'd like
to be able to do is pass librsvg my svg file and ask it what layers
are found at a given point. Everything is defined using CSS and
class="", so I'd just be after the class name.

I've looked at the docs and see that the API functions mostly return
GdkPixBuf pointers (I was hardly expecting a function to do what I
want :), but can anyone comment on whether what I want seems vaguely
possible under the skin of librsvg and how difficult it would be for
me to do? Something on the lines of "It's possible, but you'd have to
completely change files x, y and z" or "It's not really possible" are
all I'm after.

I hope that all makes sense.

Thanks,

Roger


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.