From: Andrew R. <and...@us...> - 2004-02-06 15:14:04
|
Hi Marc, Alan, cc plplot-devel I'm not sure this is particularly a C++ question. As far as I know the plplot API does not provide a way for the user to find out if a particular stream is still valid or whether a user has, for example, closed the window. This is really a general issue for all langauages and any of the interactive drivers. Perhaps we should provide an API function to ascertain this information? Obviously the details will be driver specific. Or have I missed something? Andrew On Thu, Feb 05, 2004 at 08:42:56AM -0800, Alan Irwin wrote: > Hi Marc, > > I am forwarding your request to our C++ expert, Andrew. > > Alan > __________________________ > Alan W. Irwin > email: ir...@be... > phone: 250-727-2902 > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the PLplot scientific plotting software > package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the > Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > > ---------- Forwarded message ---------- > Date: Thu, 05 Feb 2004 00:48:45 -0800 > From: Marc Schellens <m_s...@us...> > To: ai...@us... > Cc: m_s...@us... > Subject: validity of plstream object > > > Hi Alan, > > > > I want to use plplot for the gundatalanguage project, which > > is written > > in C++. > > Is there a way to find out if the stream I am plotting to is > > still valid? > > Ie. in GDL you open a window and then plot to it. But it > > could happen, > > that the user closed the window in between. > > I could not find any routine in plstream providing the > > necessary information. > > If there isn't that possibility, do you have any hint how to > > implement such a > > routine? > > Thanks, > > marc |