Hi all,
This is my first message to the mailing list.
My question is a little complex, so, let me explin it a little further:
* In our company we have a c++ graphical application.
* We have a new feature request that is to be able to read svg files.
* A home-made c++ solution for this would take ages to complete, just
the parser would be a considerable amount of job.
* I studied batik in action for the kind of SVG that we need and it
rocks!
So, my goal is to use batik inside my c++ application. How? What I
thought till now:
* We already have a C++ model defined (legacy, so we wont change that).
* My main goal is to tell batik to read an SVG and provide-me with
the data so that I can manually convert it to my model.
* I`m planning to use JNI++ to glue things up. Till here everything
is OK.
Now my questions:
* The simplest way to get the data as I realized is haveing a DOM
model of the SVG (quite low level).
* I studied the provided SVGViewer sample to see how things are done
in JSVGCanvas;
* I realized that it uses a GVTBuilder class to generate GraphicsNode
interface objects (now they are high level as I want).
* I would like to simply iterate this GraphicsNode objects and
convertt them to my structures (a small layer tying Java and C++ worlds).
* I observed that all of this is done thinking about the screen (of
course). Even the Shapes are the AWT shapes inside the ShapeNode objects
for example. I think its acceptable since I dont care about this
objects. I have my model.
* Basically I need a list of GraphicsNode objects and a class that
provides this to me.
I hope I could explain a little bit what are my objectives... I wanna
hear your thoughts on that...
(please abstract the JNI problem, that is a trivial problem to me... )
Thanks in advance,
Ronald
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]