What would be the best cross-platform GUI library to use for a vector
based CAD program ( something like Visio on Windows ) WxWidgets,
Tk, PyQt, Java Swing, Java SWT,???? I need the capibility to
draw and edit in a window that looks like a page of paper so WYSIWYG
is very important, and I need to save the drawings in vector based
file formats like PS, EPS, SVG, as well as image formats like jpg,
png, and gif. Also, the images need to be high resolution so that
they can be pasted into various other programs in Windows OS, and
Linux OS, and the Mac OS.
Thanks in advance,
Dan
You might actually consider asking in the 'comp.graphics' hierarchy
instead of the language newsgroups.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
That group doesn't seem to be active anymore.
I think wxPython in conjunction with PIL and/or matplotlib could work.
I'm pretty sure the people on the wxPython user's list have done
vector graphics using those other libraries.
Mike
Also, I forgot to mention that it must have scripting capabilities so
and I would like to embed a Tcl or Python interpreter.
PyQt/Qt4 is capable of that (SVG export was added in Qt4.3).
I have a graph drawing application based around it (Veusz).
If you base everything around QPainter, you'll be able to write to any of
those output formats (including eps and pdf), and bitmaps. Antialiasing is
optional for bitmap formats.
Jeremy
--
Jeremy Sanders
http://www.jeremysanders.net/
I should have also mentioned that is for a commercial application.
That
doesn't rule Qt or PyQt out, but this is a startup company with very
little income so my first choice would be to use some GUI library
that
is free to use for commercial apps.
Thanks again,
Dan
The NetBeans Platform offers a nice module for this. NetBeans itself uses it for
UML, BPEL and ERD modelling and other features (such as the visual XSD editor)
http://platform.netbeans.org/
http://graph.netbeans.org/
Thomas
> What would be the best cross-platform GUI library to use for a vector
> based CAD program
I suggest you use different toolkits for windowing (GUI widgets) and
drawing the vector graphics.
It does not really matter which toolkit you use for windowing.
wxPython looks good on many platforms and are free. So it PyGTK.
For vector graphics part I suggest PyCairo, AggDraw or OpenGL,
depending on your need.
PIL and NumPy are also essential if you will be working with images
Today I have downloaded a SWT Software which is great to its features.
You can learn
many GUI details out of it. The basic functionality is it lists IP
Addresses of the
remote PC's your system is accessing.
You may find the project under sourceforge.net
http://sourceforge.net/projects/nettymaster
You can customize this software, please let me know your views
Mats
You could use pythoncad (www.pythoncad.org) as a base and develop it
further, or even contract its main developer to expand its features to
fulfill your needs and improve it. It's based on the GTK+ toolkit,
written in python and has scripting capabilities. IMHO, it's the most
promising free CAD effort around though even if it's not as mature as
QCad.
You could use it in commercial applications as long as you comply with
the GPL, or the author agrees to dual license it for you, but it would
be very welcome if the improvements are avaliable for all users.
Regards,
Rafael
Roedy,
you might want to add NetBeans' Graph library to the list. It is very
similar to Eclipse's GEF
Thomas
Very nice. Are all the features functional? I was reading that Cairo
is cross-platform so can I use your tkpath package with Cairo for all
the platforms?
Have you implemented the save as pdf, ps, and svg vector file
formats?
Thanks for your feedback.
Dan