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

Home » Public Forums » archive » How to keep two objects synchronized?
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: How to keep two objects synchronized? [message #86100 is a reply to message #86098] Thu, 03 October 2013 07:02 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le jeudi 3 octobre 2013 14:49:14 UTC+2, Matthew Argall a écrit :
> Say I have a colorbar object and an image object and I want to keep their color table and color range the same whenever either of the objects are changed. Also, the colorbar is also positioned relative to the image, so if the image's position changes, the colorbar's should be updated as well.
>
>
>
> My idea is to store the colorbar as a property in the image. Internally, the image would then add itself the colorbar. When either are updated, trigger updates to the other (would need a flag to prevent infinite loops).
>
>
>
> With this, the ability to add images to colorbars would have to be a hidden feature in order to maintain the one-way work flow of adding colorbars to images.
>
>
>
>
>
> Suggestions or comments?

If you are using COLORBAR and IMAGE functions, this can be achieved by appropriate setting of TARGET, POSITION and RELATIVE keywords in COLORBAR object, each time you change the image data (for instance, by calling the SETDATA method of the IMAGE object).
alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: about structures
Next Topic: Taylor Diagrams in IDL

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

Current Time: Wed Oct 08 19:33:27 PDT 2025

Total time taken to generate the page: 0.00522 seconds