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

Home » Public Forums » archive » Re: object graphics to postcript and how to copy an object tree
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: object graphics to postcript and how to copy an object tree [message #26528] Mon, 10 September 2001 06:33
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
David Fanning wrote:
>
> Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:
>
>> Wouldn't that just create another reference to the same existing objects
>> instead of duplicating everything into another heap variable?
>
> Oh ... probably. :-)
>

>
> P.S. Let's just say here is where you need that
> neat COPY method I've seen in some of Martin
> Schultz's objects.
>

Caution! Use of Martin's BaseObject and BaseGUI is addictive. Yes,
Martin's base object is perfect for this use.

Ben
--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
Re: object graphics to postcript and how to copy an object tree [message #26553 is a reply to message #26528] Fri, 07 September 2001 11:39 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> Wouldn't that just create another reference to the same existing objects
> instead of duplicating everything into another heap variable?

Oh ... probably. :-)

Cheers,

David

P.S. Let's just say here is where you need that
neat COPY method I've seen in some of Martin
Schultz's objects.

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: object graphics to postcript and how to copy an object tree [message #26555 is a reply to message #26553] Fri, 07 September 2001 09:23 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
>
>> The simpliest way, especially if it is not to become a routine task, is
>> to save it to .sav file and restore into another variable.
>
> Doesn't this work, too:
>
> newView = oldView

Wouldn't that just create another reference to the same existing objects
instead of duplicating everything into another heap variable?
Cheers,
Pavel
Re: object graphics to postcript and how to copy an object tree [message #26557 is a reply to message #26555] Fri, 07 September 2001 09:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Pavel A. Romashkin (pavel.romashkin@noaa.gov) writes:

> Jan Erling Staff wrote:
>>
>> 1)
>>
>> I have generated some graphics using objects, and now I want to save it to
>> an eps file without having to show the printer dialog
>> (DIALOG_PRINTERSETUP). But how do I choose that the output should be
>> directed to a file?
>
> I never could produce PS output from OG that would be of acceptable quality.

Humm. I've never noticed that PS output wasn't
of acceptable quality. I've never had any difficulty
either producing a PostScript file (although I don't
think it is possible to do this *without* using the
printer dialog) or directly on a PostScript printer.
You have to be sure to set the VECTOR keyword. About
the only thing I have noticed is that some of the lines
are awfully thin. I usually jack the THICK keyword
up a bit if I'm producing PostScript line plots.

>> 2)
>>
>> I want to copy an entire object tree to another place in the memory
>> (another variable). Can this be done, and how?
>
> The simpliest way, especially if it is not to become a routine task, is
> to save it to .sav file and restore into another variable.

Doesn't this work, too:

newView = oldView

I've never tried it. But I can't believe it wouldn't
work just that wonderfully. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: object graphics to postcript and how to copy an object tree [message #26558 is a reply to message #26557] Fri, 07 September 2001 08:37 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Jan Erling Staff wrote:
>
> 1)
>
> I have generated some graphics using objects, and now I want to save it to
> an eps file without having to show the printer dialog
> (DIALOG_PRINTERSETUP). But how do I choose that the output should be
> directed to a file?

I never could produce PS output from OG that would be of acceptable quality.

> 2)
>
> I want to copy an entire object tree to another place in the memory
> (another variable). Can this be done, and how?

The simpliest way, especially if it is not to become a routine task, is
to save it to .sav file and restore into another variable.

Cheers,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: call_method
Next Topic: Re: will RSI support HDF5?

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

Current Time: Wed Oct 08 19:43:24 PDT 2025

Total time taken to generate the page: 0.00596 seconds