On 01/20/2012 03:04 PM, Quezada, Marco wrote:
> Hi Alan,
>
> Thanks for the reply. I apologize, the QTJ in my email is a typo, it was 
> meant to be QT followed by a smiley --->  : ) but some text renderers turn 
> the colon-parenthesis sequence into a J for some reason. The same thing 
> happens on my android email client...
>
> Anyhow, I am glad you replied because I do have a decision to make regarding 
> our application. It is currently written in fltk and I'd like to embed some 
> plots into it. But the gui portion is not large so it is a balance between 
> writing the fltk driver and switching our gui into qt and using that driver. 
> I have to check with the team before I make the call. I also was wondering if 
> the mem driver might work as an initial proof of concept for us. It seems 
> using that driver we can obtain an image that can then be rendered by any gui 
> toolkit that can handle displaying pictures. Is this correct? I am basing 
> this only on browsing through the code because I could not find examples 
> besides the one written in python.

Yes, you should be able to use the mem (or memcairo) devices this way. 
An uglier solution might be to use a file intermediate.

> I did look through the qt driver thinking the same thing, that this would be 
> the template we could use to write the fltk driver. It seems the driver is 
> just an interface that matches Plplot's api with the GUI toolkit's so that 
> input or expose events in the gui can be sent and handled by PlPlot and then 
> drawing events are passed to the gui along with the data in order to 
> manipulate the image. Am I close on this?

I think so. The recommendation for Qt applications is to use the extqt 
driver. With this driver, PLplot will handle the plotting and your 
application will handle all the GUI stuff. Examples:

plplot/examples/c++/qt_example.cpp
plplot/examples/python/pyqt4_example.cpp

-Hazen

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to