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

Home » Public Forums » archive » Re: Getting the current color table
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: Getting the current color table [message #36964 is a reply to message #36928] Wed, 12 November 2003 06:52 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Nuno Oliveira wrote:

> Hi, perhaps you can help me here.
>
>
>
> Is there a way that I (in the case, the program) can know which is the
> current color table?
>
>

Dear Nuno
I don't know if there is a systemvar where the table number ist stored. I
believe it isn't stored.
I will do a feature request about this. You should do this too.

xloadct calls loadct. loadct is a source file. My suggestion is to alter
this routine by adding a systemvariable which gets the table_number.

DEFSYSV, '!color_table_number', EXISTS = exist
IF exist THEN !color_table_number=table_number else $
DEFSYSV, '!color_table_number',table_number

Later on rsi could add a parameter to the !D or !P sysvars.

Be carefull with changes of build in idl routines. Normally I would suggest
to rename it but in this case xloadct won't call the changed one.

regards
Reimar

>
> The program provides the function XLOADCT in which the user can change the
> color table. And I would like to know which one is in use. I have a
> feeling that that has to be somewhere, :). I tried to see if there is any
> parameter in XLOADCT and LOACT that provides me the number of the color
> table in the use. I believe that information is somewhere, but where? I
> looked also in the graphics system variables but I don't find it. Seems to
> have everything but the index of the color table in use.
>
>
>
>
>
> Cheers, N.

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Operator Precedence Tutorial
Next Topic: DNs independent from Datatypes for ENVI-Mosaics

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

Current Time: Wed Dec 03 16:24:47 PST 2025

Total time taken to generate the page: 0.87876 seconds