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

Home » Public Forums » archive » IDLgrView question
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: IDLgrView question [message #84436 is a reply to message #83793] Fri, 31 May 2013 10:35 Go to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Tuesday, April 2, 2013 11:57:29 AM UTC-6, rr...@stsci.edu wrote:
> Hi gang,
>
>
>
> I've been developing this GUI to display/process images and I'm using the object-oriented graphics. Everything is going great, but I'd like to set the background of the View to be a repeating image or pattern. I know I can set it to a flat color (I'm using [192,192,192] so it blends in with the standard IDL GUI background), but I'd like to do something like a series of diagonal lines (so it's more obvious where the image boundary is). I'm imagining something like polyfill with /line_fill set, but obviously it must be integrated into the OOGs. I know about the IDLgrPattern object which I could set to an IDLgrPolygon, but then every time I pan/zoom the image I'd have to reset the position/size of the polygon. That seems pretty tedious, and I was hoping there was a better way...
>
>
>
> Any ideas on how to do this?
>
>
>
> Thanks!
>
> Russell

I just ran across this old post. Perhaps the interest has been lost, but one way to accomplish this is through instance rendering of views.

I used a trick like this back when IDL 5.0 was being developed for a demo. It's still in the distribution, but no one's updated it recently so it doesn't look the very best anymore.

IDL> d_uscensus, /backdrop

Search for the string "backdrop" in the source:

IDL> .compile d_uscensus

Keep in mind that this demo was developed simultaneously with the creation of the Object Graphics system's API itself, so there may be new and improved ways of accomplishing this task.

Specific IDL help items to peruse are the CREATE_INSTANCE and DRAW_INSTANCE keywords to IDLgrWindow, and the TRANSPARENT property of IDLgrView.

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: FREE_LUN supposed to work in a loop?
Next Topic: Bug? Hash and System Variable

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

Current Time: Fri Oct 10 04:30:42 PDT 2025

Total time taken to generate the page: 1.75770 seconds