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

Home » Public Forums » archive » Object graphics and real postscript
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
Object graphics and real postscript [message #19437] Mon, 27 March 2000 00:00 Go to next message
Nicolas Decoster is currently offline  Nicolas Decoster
Messages: 34
Registered: March 2000
Member
Hi !

I'm new in IDL and I am currently trying to figure how I can do
beautyfull graphs using object graphics. It looks like these objects
allow to draw almost everything I need. But the bad thing is that I did
not find how I can export my drawing into a postscript file. In fact
there is a way to create an EPS (using ClipBoard on UNIX), but the
result is a bitmap ! I want a real postscript with lines, curves, text,
etc., in postscript language.

Is there a way to do such a thing ?

Nicolas.
Re: Object graphics and real postscript [message #19592 is a reply to message #19437] Sat, 01 April 2000 00:00 Go to previous messageGo to next message
Randall Frank is currently offline  Randall Frank
Messages: 17
Registered: October 1999
Junior Member
Ok,
Prior to IDL 5.3, all methods for generating Postscript
with Object Graphics actually generate a Postscript file
containing a bitmap of the scene being drawn. That bitmap
can be at very high resolution and will match the screen
representation bit for bit (all OG features are supported).

In IDL 5.3, support for true vector output was
added to Obejct Graphics. There are two forms:

IDLgrPrinter::Draw,/VECTOR

If /VECTOR is specified, the output sent to the
printer will be vectors, in the natural format for the
host platform (e.g. could be PostScript, could be PICT...).

IDLgrClipboard::Draw,FILENAME=f,/POSTSCRIPT,/VECTOR

The new keywords allow one to write an image
representation directly to a file or the system clipboard
as a bitmap or in vector form. By default, the file would
be the host platform native vector form (e.g. PostScript,
EMF, or PICT). If the POSTSCRIPT keyword is set, a
PostScript file will be generated (on all platforms).
I believe the Postscript generated by this object
is EPS.

See the section: "New Vector Output of Object Graphics"
In the 5.3 "What's new..."

Note: I am not sure all object graphics features are
supported in vector graphics output (e.g. translucent
textured polygons), but I may be mistaken.

Mark Hadfield wrote:
>
> "David Fanning" <davidf@dfanning.com> wrote in message
> news:MPG.1349819a77d14acc989aac@news.frii.com...
>>
>> And, unless I am mistaken, the clipboard object also does
>> not support encapsulated PostScript, but rather just PostScript
>> if the PostScript keyword is set on the Draw method.
>
> I think you ARE mistaken, David. The output from the IDLgrClipboard object
> certainly looks likes EPS to me.
>
> ---
> Mark Hadfield
> m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
> National Institute for Water and Atmospheric Research
> PO Box 14-901, Wellington, New Zealand

--
rjf.
Randy Frank | ASCI Visualization
Lawrence Livermore National Laboratory | rjfrank@llnl.gov
B451 Room 2039 L-561 | Voice: (925) 423-9399
Livermore, CA 94550 | Fax: (925) 423-8704
Re: Object graphics and real postscript [message #19599 is a reply to message #19437] Fri, 31 March 2000 00:00 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.1349819a77d14acc989aac@news.frii.com...
>
> And, unless I am mistaken, the clipboard object also does
> not support encapsulated PostScript, but rather just PostScript
> if the PostScript keyword is set on the Draw method.

I think you ARE mistaken, David. The output from the IDLgrClipboard object
certainly looks likes EPS to me.


---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
Re: Object graphics and real postscript [message #19625 is a reply to message #19437] Tue, 28 March 2000 00:00 Go to previous messageGo to next message
Nicolas Decoster is currently offline  Nicolas Decoster
Messages: 34
Registered: March 2000
Member
David Fanning a �crit :
>
> The way I do it (on Windows NT) is like this:
>
> printer = Obj_New('IDLgrPrinter')
> ok = Dialog_PrinterSetup(printer)
>
> I get a dialog for my Lexmark PostScript printer. One of
> the options on the dialog is "Send Output to File". With
> that checked, it pulls up another dialog that asks me
> what the name of the file should be, and I simply write
> to the Printer device. I get a nice PostScript file.

In fact, it is the only way to do this that I found (for now) in IDL
books.

> It is *not*, however, encapsulated PostScript.

It is not a problem since there is a way to convert ps to eps on UNIX,
with the programm ps2eps.

Thanks.

Nicolas.

--
T�l. : 00 (33) 5 62 88 11 16
Fax : 00 (33) 5 62 88 11 12
Nicolas.Decoster@Noveltis.fr

Noveltis
Parc Technologique du Canal
2, avenue de l'Europe
31520 Ramonville Saint Agne
France
Re: Object graphics and real postscript [message #19692 is a reply to message #19437] Thu, 13 April 2000 00:00 Go to previous message
Theo Brauers is currently offline  Theo Brauers
Messages: 58
Registered: November 1997
Member
Thanks for the hint using /VECTOR. I even tried it with the
live_tools:
IDL> live_print, /vector, /dialog
and it gave me a nice vector ps file. However,
IDL> live_print, /vector, FILENAME='idl.ps', /POSTSCRIPT, /VECTOR
failed since FILENAME and POSTSCRIPT keywords were unknown.

Any idea to directly print an insight/live_plot image to ps-file or
eps-file?

Thanks
Theo

Randall Frank wrote:
>
> Ok,
> Prior to IDL 5.3, all methods for generating Postscript
> with Object Graphics actually generate a Postscript file
> containing a bitmap of the scene being drawn. That bitmap
> can be at very high resolution and will match the screen
> representation bit for bit (all OG features are supported).
>
> In IDL 5.3, support for true vector output was
> added to Obejct Graphics. There are two forms:
>
> IDLgrPrinter::Draw,/VECTOR
>
> If /VECTOR is specified, the output sent to the
> printer will be vectors, in the natural format for the
> host platform (e.g. could be PostScript, could be PICT...).
>
> IDLgrClipboard::Draw,FILENAME=f,/POSTSCRIPT,/VECTOR
>
> The new keywords allow one to write an image
> representation directly to a file or the system clipboard
> as a bitmap or in vector form. By default, the file would
> be the host platform native vector form (e.g. PostScript,
> EMF, or PICT). If the POSTSCRIPT keyword is set, a
> PostScript file will be generated (on all platforms).
> I believe the Postscript generated by this object
> is EPS.
>
> See the section: "New Vector Output of Object Graphics"
> In the 5.3 "What's new..."
>
> Note: I am not sure all object graphics features are
> supported in vector graphics output (e.g. translucent
> textured polygons), but I may be mistaken.
>
> Mark Hadfield wrote:
>>
>> "David Fanning" <davidf@dfanning.com> wrote in message
>> news:MPG.1349819a77d14acc989aac@news.frii.com...
>>>
>>> And, unless I am mistaken, the clipboard object also does
>>> not support encapsulated PostScript, but rather just PostScript
>>> if the PostScript keyword is set on the Draw method.
>>
>> I think you ARE mistaken, David. The output from the IDLgrClipboard object
>> certainly looks likes EPS to me.
>>
>> ---
>> Mark Hadfield
>> m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
>> National Institute for Water and Atmospheric Research
>> PO Box 14-901, Wellington, New Zealand
>
> --
> rjf.
> Randy Frank | ASCI Visualization
> Lawrence Livermore National Laboratory | rjfrank@llnl.gov
> B451 Room 2039 L-561 | Voice: (925) 423-9399
> Livermore, CA 94550 | Fax: (925) 423-8704

--
Theo Brauers
Institut fuer Atmosphaerische Chemie (ICG-3)
Forschungszentrum Juelich
52425 JUELICH, Germany
Tel. +49-2461-61-6646 Fax. +49-2461-61-5346
http://www.kfa-juelich.de/icg/icg3/MITARBEITER/th.brauers.ht ml
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL, COM/ActiveX, and Python
Next Topic: Breakdown of IDL 5.3 license manager after Update Inux

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

Current Time: Wed Oct 08 13:44:04 PDT 2025

Total time taken to generate the page: 0.00898 seconds