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

Home » Public Forums » archive » Re: Buffer -> Window
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: Buffer -> Window [message #44404] Tue, 14 June 2005 09:06 Go to next message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Rick Towler wrote:
> Why not display as an IDLgrImage in the window? I must be missing
> something... Or you could texture the image onto a billboard to give
> you a bit more flexibility but I don't think you need it.

I was just wondering if I could get around the need to define another
view and model specifically for the window. I know, it's not a big
deal. I was just wondering if I could do a direct copy, that's all.

-Mike
Re: Buffer -> Window [message #44405 is a reply to message #44404] Tue, 14 June 2005 08:55 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Why not display as an IDLgrImage in the window? I must be missing
something... Or you could texture the image onto a billboard to give
you a bit more flexibility but I don't think you need it.

-Rick

Michael Wallace wrote:
> I want to copy the contents of an IDLgrBuffer pixel by pixel to an
> IDLgrWindow of the same dimensions. What's the easiest way to do this?
> I do not want to redraw the graphics tree because redrawing the tree in
> the IDLgrWindow will result in a slightly different image due to
> differences in resolution between the buffer and window. I can see that
> I can get the individual pixels via the IMAGE_DATA property, but there
> seems to be no way to load the pixels directly into the IDLgrWindow.
>
> -Mike
Re: Buffer -> Window [message #44422 is a reply to message #44405] Tue, 14 June 2005 03:04 Go to previous messageGo to next message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> By the way, I forgot to mention in my previous reply: Can you not set
> the RESOLUTION of the buffer to match the window? The RESOLUTION
> property is not settable for an IDLgrWindow, but it *is* settable for an
> IDLgrBuffer.

Yes, but this particular code will need to run on different machines.
Each machine its own resolution numbers and so each one would produce
something slightly different. To ensure that the plot output always
looks the same, I'd rather use a buffer all the time because I can then
guarantee myself that the output will be identical. I realize that the
differences in resolution between machines is pretty minor, but in this
particular case it can be noticeable in the output.

-Mike
Re: Buffer -> Window [message #44425 is a reply to message #44422] Mon, 13 June 2005 21:43 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Michael Wallace wrote:
> I want to copy the contents of an IDLgrBuffer pixel by pixel to an
> IDLgrWindow of the same dimensions. What's the easiest way to do this?
> I do not want to redraw the graphics tree because redrawing the tree in
> the IDLgrWindow will result in a slightly different image due to
> differences in resolution between the buffer and window.

By the way, I forgot to mention in my previous reply: Can you not set
the RESOLUTION of the buffer to match the window? The RESOLUTION
property is not settable for an IDLgrWindow, but it *is* settable for an
IDLgrBuffer.


--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: Buffer -> Window [message #44426 is a reply to message #44425] Mon, 13 June 2005 21:40 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Michael Wallace wrote:
> I want to copy the contents of an IDLgrBuffer pixel by pixel to an
> IDLgrWindow of the same dimensions. What's the easiest way to do this?
> I do not want to redraw the graphics tree because redrawing the tree in
> the IDLgrWindow will result in a slightly different image due to
> differences in resolution between the buffer and window. I can see that
> I can get the individual pixels via the IMAGE_DATA property, but there
> seems to be no way to load the pixels directly into the IDLgrWindow.

No, the IMAGE_DATA property of an IDLgrWindow can be got but cannot be
sot (oops I mean "setted", no I mean "set").

You can create a view with an IDLgrImage and draw that to the window.
How you choose to size the image relative to the window, whether you fit
the image to the window (or vice versa or neither) is up to you.

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: Buffer -> Window [message #44496 is a reply to message #44404] Tue, 14 June 2005 15:15 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Michael Wallace wrote:
> I was just wondering if I could get around the need to define another
> view and model specifically for the window. I know, it's not a big
> deal. I was just wondering if I could do a direct copy, that's all.

Nope.

But why does it have to be an IDLgrWindow? If you just want to throw
some bytes at the screen, can you use a direct graphics window?

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with IDLWAVE in XEmacs 21.5.18
Next Topic: Fast editing of text file?

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

Current Time: Sat Oct 11 12:19:23 PDT 2025

Total time taken to generate the page: 1.20115 seconds