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

Home » Public Forums » archive » Re: Updating a texure map in object graphics
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: Updating a texure map in object graphics [message #40204] Tue, 27 July 2004 16:17 Go to previous message
Clay Blankenship is currently offline  Clay Blankenship
Messages: 4
Registered: September 2003
Junior Member
In article <ce6l4q$j2v$1@gnus01.u.washington.edu>, "Rick Towler"
<rtowler@u.washington.edu> wrote:

> Hi Clay,
>
> You can easily change the texmap by changing the DATA property of the
> IDLgrImage object that is your texture map.
>
> for example:
>
> ; get new texture map data
> read_jpg, 'somedata.jpg', texture
> texmap -> SetProperty, DATA=texture
>
> Then redraw your view to see the change.
>
>
> So in your case you'll have some event routine which will prompt the
> user for a new image file, read it, change the DATA property of the
> texmap object, then draw the view.
>
> I am not looking at my code right now but my guess is that I don't stick
> the reference to the texmap object into the "info" structure. You will
> need access to the texmap reference to change its properties. Stick it
> in the info structure by adding "texmap:texmap, $" in the structure
> definition and then access it in your event procedure as:
>
> info.texmap -> SetProperty, DATA=texture
>
>
> good luck!
>
> -Rick
>
Thanks. SetProperty is the magic word I was looking for. I just took
an IDL class on widgets and object graphics and was trying to put it
to good use. I was going to write a program from scratch and then
found your excellent demo which does most of the dirty work already.
Thanks again for making it available.

Clay
[Message index]
 
Read Message
Read Message
Previous Topic: Updating a texure map in object graphics
Next Topic: Re: System Variables & .sav files

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

Current Time: Sat Oct 11 20:28:25 PDT 2025

Total time taken to generate the page: 0.88184 seconds