comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Object Graphics --> EPS Output how?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object Graphics --> EPS Output how? [message #26842 is a reply to message #26732] Sun, 30 September 2001 15:00 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
From: "Martin Downing" <martin.downing@ntlworld.com>
> I thought you had preset the Graphics_Tree property of the clipboard
> instance, eg using:
>
> myClipboard = obj_new('IDLgrClipBoard', GRAPHICS_TREE = myView)
> or:
> myClipboard->SetProperty, GRAPHICS_TREE = myView

That's charitable of you. Yes, that must have been what I meant...it wasn't
a mistake at all. Phew and here was I thinking that I had blemished my
record of 100% accurate posts to the newsgroup!

> However I have a feeling I'm about to find out why that is not a good
idea!
> (i.e. am I right in thinking that if you destroy the clipboard object
after
> attaching the view object then
> you lose that graphic object?)

Indeed. Whether that it a good thing or a bad thing depends on how you
structure your object applications. My usual practice is to build
object-graphics applications out of IDLgrWindow objects and attach each view
(or other graphics tree) to a window, using the window's GRAPHICS_TREE
property. This means, as you say, that in the normal course of events the
view will be destroyed when the window is closed. This is the most
convenient behaviour as it means I don't have to keep a separate reference
to the view and clean it up manually. When I want to direct output to a file
I create a temporary destination object (IDLgrBuffer, IDLgrClipboard,
IDLgrPrinter) as necessary and draw to it without setting its GRAPHICS_TREE.
But I'm sure there are other valid ways of doing things.

BTW if you want to see what my "usual practice" is for object graphics
applications you are welcome to take a look at my IDL library at

http://katipo.niwa.cri.nz/~hadfield/gust/software/idl/

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research




--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 5.4 and win2000 problems
Next Topic: Re: Input Buffer Error Reading in Large ascii Files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:32:08 PDT 2025

Total time taken to generate the page: 0.00480 seconds