| Re: Getting the current color table [message #36964 is a reply to message #36928] |
Wed, 12 November 2003 06:52   |
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
|
|
|
|