Greg Landrum wrote:
>I don't want to discourage you, but have you checked out piddle
>[http://piddle.sourceforge.net/\]. It seems like it would do a lot of what you
>want. At the very least you could probably steal some ideas from it....
I'll second the piddle recommendation. It's very useful for doing drawing
operations and has the added advantage of allowing (for free!) exports to
PS, PDF, PIL, etc.
Feel free to discourage me, if what I want is already in existance, I
don't want to re-write it!
I have checked out Piddle, and it doesn't seem to be what I want. As far
as I can tell, it is designed to allow drawing to a number of devices
with the same calls, which is a pretty nice feature, but doesn't allow
other high level things that I'm looking for, such as keeping the
drawing objects around so that they can be changed, deleted, etc. I may
be wrong about this, I'll look at it some more!
In a way, wxOGL is closer to what I want, but seems oriented towards
drawing a particular type of diagram, not drawing in general.
In the long run, I'd like my drawing canvas to have features like
allowing any units, rather than pixels, and the ability to group
objects, etc.
I havn't tried it, but can't you use the wxPostscriptDC to write
postscript, and there must be a way to get a MemoryDC into PIL.
Anyway, I'll take a closer look at Piddle. I am interested in Graphite
as well, which used Piddle, so I have other reasons to check it out.
-Chris
···
--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------