Re: Object Graphics --> EPS Output how? [message #26842 is a reply to message #26732] |
Sun, 30 September 2001 15:00   |
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
|
|
|