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

Home » Public Forums » archive » Re: IDL graphics w/ no display
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: IDL graphics w/ no display [message #41496 is a reply to message #41354] Wed, 27 October 2004 05:48 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Ken Mankoff wrote:


>
>>> I think I cannot use object graphics because I am working with map
>>> projections, map_continents, etc. and these don't work with object
>>> graphics, right?
>>
>>

Hi,

(1) About OG without a display device.

I think you canuse the IDLgrBuffer as the destination drawing device. The
following works without X11 (MacOSX).

x = findgen(361)*!dtor
y = sin(x)
oplot = obj_new('IDLgrPlot', x,y)
omodel = obj_new('idlgrModel')
omodel->Add, oplot
oview = obj_new('idlgrview', viewplane_rect = [0,-1,!pi*2,2])
oview->Add, omodel
obuffer = obj_new('idlgrbuffer')
obuffer->draw, oview
oimage = obuffer->Read()
oimage->GetProperty, data = img
write_png, 'bufferimage.png', img

(2) I think that the iMap might be disguising how easy it can be to transform
map polygons into the OG realm. I recall a thread on this newsgroup where
somebody tessalated the Polygons for Alaska and then threw them into an object
graphics destination. (I think it was Karl - but I haven't found that thread.)
With the advent of the MAP_PROJ_***** routines, it sure seems like RSI has
freed mapping from the DG world. So, somewhere in iMap, the CIA map data (or
the Shape file data) that comes with IDL is unpacked and then formed into OG
polygons. That said, I have no experience with OG mapping although I started
down that path once in an idle moment.

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using Objects-Urgent (To David et al)
Next Topic: Re: distribution of colors for an image

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

Current Time: Wed Oct 08 19:04:01 PDT 2025

Total time taken to generate the page: 0.01498 seconds