Suggestion, plugin for exporting to JavaFX
Hi, that's my first message for this list, so let me introduce myself. My name is Silveira Neto, I'm a brazilian student, last semester in computer science. I'd like to say that I'm a happy Inkscape user, pleased to see all improvements made recently.
I'm also a developer that uses a new, free and open technology for creating RIA (Rich Internet Applications) called JavaFX. If someone is interested in know more about JavaFX, you can see more here http://javafx.com/, herehttp://www.sun.com/software/javafx/index.jspor here https://openjfx.dev.java.net/. JavaFX is heavily graphicaly based and it's elements resembles much SVG elements. In fact, the main creator of JavaFX created a toolhttp://blogs.sun.com/chrisoliver/entry/javafx_svg_translator_previewthat translates SVG to JavaFX.
I'd like to suggest a plugin for exporting Inkscape drawings to JavaFX, so developers could draw with Inkscape, export and program the logic with JavaFX. That extension just would have to export the drawing to a raw text .jfx file. The syntax is quite simplehttps://openjfx.dev.java.net/learning.htmland I can help with it. I guess that Inkscape extensions are made in Python, right? I'd like to know where I can find more documentation about writing Inkscape extensions, I know a little bit of Python, I could try it.
As JavaFX and SVG graphical entities are similar (like shapes, paints, gradientes, paths, etc) you guys think that is possible to make such plugin for Inkscape? Someone would be interested in help me?
Thanks.
I think that this would be very similar to the Povray output extension, pov-out.cpp. Someone might look there for a simple example of how to output the svg tree as something else.
Also, Ted's XAML export is a good example of doing it via XSLT.
bob
Silveira Neto wrote:
Hi, that's my first message for this list, so let me introduce myself. My name is Silveira Neto, I'm a brazilian student, last semester in computer science. I'd like to say that I'm a happy Inkscape user, pleased to see all improvements made recently.
I'm also a developer that uses a new, free and open technology for creating RIA (Rich Internet Applications) called JavaFX. If someone is interested in know more about JavaFX, you can see more here http://javafx.com/, here http://www.sun.com/software/javafx/index.jsp or here https://openjfx.dev.java.net/. JavaFX is heavily graphicaly based and it's elements resembles much SVG elements. In fact, the main creator of JavaFX created a tool http://blogs.sun.com/chrisoliver/entry/javafx_svg_translator_preview that translates SVG to JavaFX.
I'd like to suggest a plugin for exporting Inkscape drawings to JavaFX, so developers could draw with Inkscape, export and program the logic with JavaFX. That extension just would have to export the drawing to a raw text .jfx file. The syntax is quite simple https://openjfx.dev.java.net/learning.html and I can help with it. I guess that Inkscape extensions are made in Python, right? I'd like to know where I can find more documentation about writing Inkscape extensions, I know a little bit of Python, I could try it.
As JavaFX and SVG graphical entities are similar (like shapes, paints, gradientes, paths, etc) you guys think that is possible to make such plugin for Inkscape? Someone would be interested in help me?
Thanks.
--
silveiraneto.net http://silveiraneto.net eupodiatamatando.com http://eupodiatamatando.com
Thanks for your quick answers.
I took a look at pov-out.cpp and .h at src/extensions/internal/ from the SVN, Inkscape version 0.46. I saw that you are the author of this code. I also compiled the entire Inkscape, but I could not find out how to test exporting a Inkscape SVG drawing into a Pov-ray file. Should I enable it during the ./configure phase?
On Tue, Jul 29, 2008 at 10:15 AM, Bob Jamison <rwjj@...127...> wrote:
I think that this would be very similar to the Povray output extension, pov-out.cpp. Someone might look there for a simple example of how to output the svg tree as something else.
Also, Ted's XAML export is a good example of doing it via XSLT.
bob
Silveira Neto wrote:
Hi, that's my first message for this list, so let me introduce myself. My name is Silveira Neto, I'm a brazilian student, last semester in computer science. I'd like to say that I'm a happy Inkscape user, pleased to see all improvements made recently.
I'm also a developer that uses a new, free and open technology for creating RIA (Rich Internet Applications) called JavaFX. If someone is interested in know more about JavaFX, you can see more here < http://javafx.com/%3E, here http://www.sun.com/software/javafx/index.jsp or here https://openjfx.dev.java.net/. JavaFX is heavily graphicaly based and it's elements resembles much SVG elements. In fact, the main creator of JavaFX created a tool < http://blogs.sun.com/chrisoliver/entry/javafx_svg_translator_preview%3E that translates SVG to JavaFX.
I'd like to suggest a plugin for exporting Inkscape drawings to JavaFX, so developers could draw with Inkscape, export and program the logic with JavaFX. That extension just would have to export the drawing to a raw text .jfx file. The syntax is quite simple < https://openjfx.dev.java.net/learning.html%3E and I can help with it. I guess that Inkscape extensions are made in Python, right? I'd like to know where I can find more documentation about writing Inkscape extensions, I know a little bit of Python, I could try it.
As JavaFX and SVG graphical entities are similar (like shapes, paints, gradientes, paths, etc) you guys think that is possible to make such plugin for Inkscape? Someone would be interested in help me?
Thanks.
--
silveiraneto.net http://silveiraneto.net eupodiatamatando.com http://eupodiatamatando.com
Cant we just pass an SVG to the tool that the JavaFX guy has written?
2008/7/29 Silveira Neto <silveiraneto@...400...>
Thanks for your quick answers.
I took a look at pov-out.cpp and .h at src/extensions/internal/ from the SVN, Inkscape version 0.46. I saw that you are the author of this code. I also compiled the entire Inkscape, but I could not find out how to test exporting a Inkscape SVG drawing into a Pov-ray file. Should I enable it during the ./configure phase?
On Tue, Jul 29, 2008 at 10:15 AM, Bob Jamison <rwjj@...127...> wrote:
I think that this would be very similar to the Povray output extension, pov-out.cpp. Someone might look there for a simple example of how to output the svg tree as something else.
Also, Ted's XAML export is a good example of doing it via XSLT.
bob
Silveira Neto wrote:
Hi, that's my first message for this list, so let me introduce myself. My name is Silveira Neto, I'm a brazilian student, last semester in computer science. I'd like to say that I'm a happy Inkscape user, pleased to see all improvements made recently.
I'm also a developer that uses a new, free and open technology for creating RIA (Rich Internet Applications) called JavaFX. If someone is interested in know more about JavaFX, you can see more here < http://javafx.com/%3E, here http://www.sun.com/software/javafx/index.jsp or here https://openjfx.dev.java.net/. JavaFX is heavily graphicaly based and it's elements resembles much SVG elements. In fact, the main creator of JavaFX created a tool < http://blogs.sun.com/chrisoliver/entry/javafx_svg_translator_preview%3E that translates SVG to JavaFX.
I'd like to suggest a plugin for exporting Inkscape drawings to JavaFX, so developers could draw with Inkscape, export and program the logic with JavaFX. That extension just would have to export the drawing to a raw text .jfx file. The syntax is quite simple < https://openjfx.dev.java.net/learning.html%3E and I can help with it. I guess that Inkscape extensions are made in Python, right? I'd like to know where I can find more documentation about writing Inkscape extensions, I know a little bit of Python, I could try it.
As JavaFX and SVG graphical entities are similar (like shapes, paints, gradientes, paths, etc) you guys think that is possible to make such plugin for Inkscape? Someone would be interested in help me?
Thanks.
--
silveiraneto.net http://silveiraneto.net eupodiatamatando.com http://eupodiatamatando.com
--
silveiraneto.net eupodiatamatando.com
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Just to help get started, I made an output class, JavaFXOutput, in javafx-out.cpp/.h . It does produce output, though it's not ready yet. It needs to be tweaked/fixed/etc. Anyone who wants to help, please take a look. It's very simple and easy to modify.
I adjusted both Makefile_insert and the Cmake files. Anyone who has a problem with compiling, please let me know.
bob
Silveira Neto wrote:
Thanks for your quick answers.
I took a look at pov-out.cpp and .h at src/extensions/internal/ from the SVN, Inkscape version 0.46. I saw that you are the author of this code. I also compiled the entire Inkscape, but I could not find out how to test exporting a Inkscape SVG drawing into a Pov-ray file. Should I enable it during the ./configure phase?
On Tue, Jul 29, 2008 at 10:15 AM, Bob Jamison <rwjj@...127... mailto:rwjj@...127...> wrote:
I think that this would be very similar to the Povray output extension, pov-out.cpp. Someone might look there for a simple example of how to output the svg tree as something else.
Ok,
Got the output to at least compile on JavaFX. Someone needs to look at it and get the fill, stroke, and curves all tweaked. But at least it's outputting something that javafx doesn't choke on.
A good test, I think, is to load /share/clipart/tux.svg , save as tux.fx, and see how it looks.
bob
Bob Jamison wrote:
Just to help get started, I made an output class, JavaFXOutput, in javafx-out.cpp/.h . It does produce output, though it's not ready yet. It needs to be tweaked/fixed/etc. Anyone who wants to help, please take a look. It's very simple and easy to modify.
I adjusted both Makefile_insert and the Cmake files. Anyone who has a problem with compiling, please let me know.
Bob, this javafx-out.cpp/h is already on the SVN? Where can I take a look and compile it?
On Wed, Jul 30, 2008 at 5:46 PM, Bob Jamison <rwjj@...127...> wrote:
Ok,
Got the output to at least compile on JavaFX. Someone needs to look at it and get the fill, stroke, and curves all tweaked. But at least it's outputting something that javafx doesn't choke on.
A good test, I think, is to load /share/clipart/tux.svg , save as tux.fx, and see how it looks.
bob
Bob Jamison wrote:
Just to help get started, I made an output class, JavaFXOutput, in javafx-out.cpp/.h . It does produce output, though it's not ready yet. It needs to be tweaked/fixed/etc. Anyone who wants to help, please take a look. It's very simple and easy to modify.
I adjusted both Makefile_insert and the Cmake files. Anyone who has a problem with compiling, please let me know.
I don't know if it is the correct procedure but I also opened a feature request https://bugs.launchpad.net/inkscape/+bug/253869 in Launchpad.
On Thu, Jul 31, 2008 at 1:39 AM, Silveira Neto <silveiraneto@...400...>wrote:
Bob, this javafx-out.cpp/h is already on the SVN? Where can I take a look and compile it?
On Wed, Jul 30, 2008 at 5:46 PM, Bob Jamison <rwjj@...127...> wrote:
Ok,
Got the output to at least compile on JavaFX. Someone needs to look at it and get the fill, stroke, and curves all tweaked. But at least it's outputting something that javafx doesn't choke on.
A good test, I think, is to load /share/clipart/tux.svg , save as tux.fx, and see how it looks.
bob
Bob Jamison wrote:
Just to help get started, I made an output class, JavaFXOutput, in javafx-out.cpp/.h . It does produce output, though it's not ready yet. It needs to be tweaked/fixed/etc. Anyone who wants to help, please take a look. It's very simple and easy to modify.
I adjusted both Makefile_insert and the Cmake files. Anyone who has a problem with compiling, please let me know.
--
silveiraneto.net eupodiatamatando.com
It is in subversion at /src/extension/internal/javafx-out.cpp
It can be browsed here: http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/exten...
My intention for the file is only to get it started, so that other people can tweak and maintain the export code. I consider myself to be almost finished with it.
bob
Silveira Neto wrote:
I don't know if it is the correct procedure but I also opened a feature request https://bugs.launchpad.net/inkscape/+bug/253869 in Launchpad.
On Thu, Jul 31, 2008 at 1:39 AM, Silveira Neto <silveiraneto@...400... mailto:silveiraneto@...400...> wrote:
Bob, this javafx-out.cpp/h is already on the SVN? Where can I take a look and compile it? On Wed, Jul 30, 2008 at 5:46 PM, Bob Jamison <rwjj@...127... <mailto:rwjj@...127...>> wrote: Ok, Got the output to at least compile on JavaFX. Someone needs to look at it and get the fill, stroke, and curves all tweaked. But at least it's outputting something that javafx doesn't choke on. A good test, I think, is to load /share/clipart/tux.svg , save as tux.fx, and see how it looks.
On Tue, 2008-07-29 at 07:33 -0300, Silveira Neto wrote:
I'd like to suggest a plugin for exporting Inkscape drawings to JavaFX, so developers could draw with Inkscape, export and program the logic with JavaFX. That extension just would have to export the drawing to a raw text .jfx file. The syntax is quite simple and I can help with it. I guess that Inkscape extensions are made in Python, right? I'd like to know where I can find more documentation about writing Inkscape extensions, I know a little bit of Python, I could try it.
I think that it would be an interesting extension. Inkscape extensions don't have to be in Python, infact they'll work with any language that supports STDIN and STDOUT (I think all of them). Chances are that you can create a wrapper script and an INX file for the translator that you linked to, and it'll just work.
As JavaFX and SVG graphical entities are similar (like shapes, paints, gradientes, paths, etc) you guys think that is possible to make such plugin for Inkscape? Someone would be interested in help me?
I would be happy to help with questions regarding the integration with Inkscape and the INX files. But, I'm not the only expert. Post your questions and progress on the mailing list and I think people would be interested. In general, in open source, people rarely respond to "do you want to help" and are more likely to send patches with little features as you show progress and have an exciting project.
Also, something you might think about writing is a JavaFX to SVG program. This would give people a more powerful tool for editing things that are already in JavaFX.
--Ted
participants (4)
-
Bob Jamison
-
john cliff
-
Silveira Neto
-
Ted Gould