Hi Alan, Jim and all

I have had to rework some of the new wxWidgets driver to allow
plGetCursor to work. SOme obvious extra challenges presented
themselves when I realised how this function worked, such as two way
communication via shared memory and synchronisation of this resource
via mutexes, the ability to render a plot part way through and block
while we wait for input. But the extra work has resulted in a better
design and a better experience, e.g. multiple pages being able to be
shown in one frame, the ability to move backwards as well as forwards
in in page number.

However, one negative of the changes is that I need to be able to pass
a buffer into the plplot driver. This is obviously very close to the
issues with the file input we discussed before.

Basically I wanted to see if anyone had any suggestions for the best
way to do this, the options as I see them are:

1) via a pl_cmd call which is dealt with within the plplot core code.
2) via a special driver, then a pl_cmd call which is dealt with in
this driver then a plcpy call
3) via a modification of the file input method
4) via a pl_cmd call which is dealt with in the wxWidgets driver
5) via an API change.

I think 5 is ruled out due to the difficulties in propagation to all
languages. I don't like 4 as it clutters the wxWidgets driver with
code that actually is nothing to do with wxWidgets (I am already
considering splitting the code that I have written to better apportion
roles). 3 is probably a good thing, but doesn't exist yet. 2 seems
like quite a lot of work, and probably some unnecessary copying of the
data. Finally 1 would be easy to write and pretty efficient, however
the pl_cmd function is supposed to be there to pass data to the
drivers, not the plplot core code.

Anyway, any thoughts? My default thinking for now is to do 1 (or
perhaps 2 depending on if I split the existing wxWidgets code), then
when we get the file input sorted convert to 3.

Phil

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to