Name
query_all_colorsT_query_all_colorsQueryAllColorsquery_all_colorsQueryAllColorsQueryAllColors — Query all color names.
query_all_colorsquery_all_colorsQueryAllColorsquery_all_colorsQueryAllColorsQueryAllColors returns the names of all colors that
are known to HALCON . That doesn't mean, that these colors are
available for specific screens. On some screens there may only be a
subset of colors available (see query_colorquery_colorQueryColorquery_colorQueryColorQueryColor). Before
opening the first window, set_systemset_systemSetSystemset_systemSetSystemSetSystem can be used to
define which and how many colors should be used. The HALCON colors
are used to display regions (disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion,
disp_polygondisp_polygonDispPolygondisp_polygonDispPolygonDispPolygon, disp_circledisp_circleDispCircledisp_circleDispCircleDispCircle, etc.). They can
be defined with set_colorset_colorSetColorset_colorSetColorSetColor.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
query_all_colors(WindowHandle,Colors)
* interactive selection from Colors provide ActColors
set_system('graphic_colors',ActColors)
open_window(0,0,1,1,'root','invisible','',WindowHandle)
query_color(WindowHandle,F)
close_window(WindowHandle)
fwrite_string(FileHandle,['Setting Colors: ',F])
Htuple Colors,ColorsAtWindow,WindowHandleTuple ;
create_tuple(&WindowHandleTuple,1) ;
open_window(0,0,1,1,"root","invisible","",&WindowHandle) ;
set_i(WindowHandleTuple, WindowHandle, 0) ;
T_query_all_colors(WindowHandleTuple,&Colors) ;
/* interactive selection from Colors, provide als result ActColors */
set_system("graphic_colors",ActColors) ;
T_query_color(WindowHandleTuple,&ColorsAtWindow) ;
close_window(WindowHandle) ;
for (i=0; i<length_tuple(ColorsAtWindow); i++)
printf("Color #%s = %s\n",i,get_s(ColorsAtWindow,i)) ;
query_all_colors(WindowHandle,Colors)
* interactive selection from Colors provide ActColors
set_system('graphic_colors',ActColors)
open_window(0,0,1,1,'root','invisible','',WindowHandle)
query_color(WindowHandle,F)
close_window(WindowHandle)
fwrite_string(FileHandle,['Setting Colors: ',F])
query_all_colors(WindowHandle,Colors)
* interactive selection from Colors provide ActColors
set_system('graphic_colors',ActColors)
open_window(0,0,1,1,'root','invisible','',WindowHandle)
query_color(WindowHandle,F)
close_window(WindowHandle)
fwrite_string(FileHandle,['Setting Colors: ',F])
query_all_colors(WindowHandle,Colors)
* interactive selection from Colors provide ActColors
set_system('graphic_colors',ActColors)
open_window(0,0,1,1,'root','invisible','',WindowHandle)
query_color(WindowHandle,F)
close_window(WindowHandle)
fwrite_string(FileHandle,['Setting Colors: ',F])
query_all_colors(WindowHandle,Colors)
* interactive selection from Colors provide ActColors
set_system('graphic_colors',ActColors)
open_window(0,0,1,1,'root','invisible','',WindowHandle)
query_color(WindowHandle,F)
close_window(WindowHandle)
fwrite_string(FileHandle,['Setting Colors: ',F])
query_all_colorsquery_all_colorsQueryAllColorsquery_all_colorsQueryAllColorsQueryAllColors always returns 2 (H_MSG_TRUE)
set_systemset_systemSetSystemset_systemSetSystemSetSystem,
set_colorset_colorSetColorset_colorSetColorSetColor,
disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion
query_colorquery_colorQueryColorquery_colorQueryColorQueryColor,
set_systemset_systemSetSystemset_systemSetSystemSetSystem,
set_colorset_colorSetColorset_colorSetColorSetColor,
disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion,
open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow
Foundation