ClassesClassesClassesClasses | | | | Operators

set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam (Operator)

Name

set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam — Set window parameters.

Signature

set_window_param( : : WindowHandle, Param, Value : )

Herror set_window_param(const Hlong WindowHandle, const char* Param, const char* Value)

Herror T_set_window_param(const Htuple WindowHandle, const Htuple Param, const Htuple Value)

Herror set_window_param(const HTuple& WindowHandle, const HTuple& Param, const HTuple& Value)

void HWindow::SetWindowParam(const HTuple& Param, const HTuple& Value) const

void SetWindowParam(const HTuple& WindowHandle, const HTuple& Param, const HTuple& Value)

void HWindow::SetWindowParam(const HString& Param, const HTuple& Value) const

void HWindow::SetWindowParam(const HString& Param, const HString& Value) const

void HWindow::SetWindowParam(const char* Param, const char* Value) const

void HOperatorSetX.SetWindowParam(
[in] VARIANT WindowHandle, [in] VARIANT Param, [in] VARIANT Value)

void HWindowX.SetWindowParam(
[in] BSTR Param, [in] VARIANT Value)

static void HOperatorSet.SetWindowParam(HTuple windowHandle, HTuple param, HTuple value)

void HWindow.SetWindowParam(string param, HTuple value)

void HWindow.SetWindowParam(string param, string value)

Description

The operator set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam allows to set different parameters of an open window.

General window parameters:

'flush'

Enables or disables flushing the contents of the window after the display of every object. If 'flush'"flush""flush""flush""flush""flush" is set to 'false'"false""false""false""false""false", flush_bufferflush_bufferFlushBufferflush_bufferFlushBufferFlushBuffer must be called to update the contents of the window. If you want to interact with the content of the graphics window (e.g., zoom or move the content), you have to set 'flush'"flush""flush""flush""flush""flush" to 'true'"true""true""true""true""true".

possible values: 'true', 'false'

default value: 'true'

'region_quality'

Influences the quality of the rendering of region objects. Especially if the region to display has to be scaled down for visualization, 'good'"good""good""good""good""good" produces a more accurate and pleasing impression. 'low'"low""low""low""low""low" is a bit inaccurate in these cases but significantly faster. If only the border of the region is displayed (see set_drawset_drawSetDrawset_drawSetDrawSetDraw), the fractional part of the line width (see set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth) is ignored.

possible values: 'low', 'good'

default value: 'low'

'background_color'

Sets the background color of the window WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle. The operator clear_windowclear_windowClearWindowclear_windowClearWindowClearWindow uses this color to clear the window.

possible values: a string containing the color name (e.g. 'black', 'red')

'window_title'

Allows to change the text in the title bar of an already opened HALCON window.

possible values: a string containing up to 1023 characters

'anti_aliasing'

Enables or disables the anti aliasing of contours and regions.

possible values: 'true', 'false'

default value: 'true'

'graphics_stack'

Enables or disables the graphics stack of a window. With activated graphics stack changing the window part with set_partset_partSetPartset_partSetPartSetPart triggers the display of previously displayed objects with respect to the new part. With this it is possible to move or scale the contents of the window. This parameter has no effect on the graphics stack of a HDevelop graphics window.

possible values: 'true', 'false'

default value: 'false'

'graphics_stack_max_element_num'

Maximum number of elements in the graphics stack. This number corresponds to the number of display operations recorded. This parameter has no effect on the graphics stack of a HDevelop graphics window and is effective not before the next call to a display operator.

possible values: positive number or 'unlimited'

default value: 50

'graphics_stack_max_memory_size'

Limits the memory consumption of the graphics stack. If this limit is exceeded, older display operations are removed from the graphics stack. This parameter has no effect on the graphics stack of a HDevelop graphics window and is effective not before the next call to a display operator.

possible values: memory limit in bytes or 'unlimited'

default value: 'unlimited'

Parameters concerning the '3d_plot'"3d_plot""3d_plot""3d_plot""3d_plot""3d_plot" (see set_paintset_paintSetPaintset_paintSetPaintSetPaint):

'angle_of_view'

Set the angle of view of the virtual camera used to display the 3D plot. The angle must be provided in radians and lie within the interval [0,PI). An angle of 0 radians implies orthogonal projection. Another way to choose orthogonal projection is to set 'angle_of_view'"angle_of_view""angle_of_view""angle_of_view""angle_of_view""angle_of_view" to 'orthogonal'"orthogonal""orthogonal""orthogonal""orthogonal""orthogonal".

possible values: 'orthogonal' or an angle in radians

default value: 1.22173 (70 degrees)

'axis_captions'

The axis captions for row, column, and height can be set by passing a tuple containing the strings for the captions in the specified order row, column, and height axis (e.g. ['row','col','height']). Pass empty strings to display no captions at all.

possible values: A tuple containing three strings. Each string can contain up to 31 characters.

default value: [' ',' ',' ']

'caption_color'

The color of the axis captions for row, column, and height. You can either pass one color for all three axes or a tuple of three colors to set individual colors for each axis.

possible values: a string or tuple with three strings containing the color name (e.g. 'black', 'red')

default value: 'black'

'plot_quality'

Influences the quality of the 3D plot. Depending on the capabilities of your graphics card better settings for the quality may reduce the frame rate of the 3D plot significantly.

possible values: 'low', 'medium', 'good', 'best'

default value: 'medium'

'scale_plot'

If set to 'true' the height values of an image are transformed into the interval [0,255] before display. If set to 'false' the aspect ratio between row/column and height is considered. Images of the type byte, cyclic, or direction are not scaled, i.e. in their cases this parameter is ignored.

possible values: 'true', 'false'

default value: 'true'

'display_grid'

If set to 'true' a grid is displayed at height 0.

possible values: 'true', 'false'

default value: 'true'

'display_axes'

If set to 'true' coordinate axes are displayed.

possible values: 'true', 'false'

default value: 'true'

Attention

The parameters 'anti_aliasing'"anti_aliasing""anti_aliasing""anti_aliasing""anti_aliasing""anti_aliasing", 'flush'"flush""flush""flush""flush""flush", 'graphics_stack'"graphics_stack""graphics_stack""graphics_stack""graphics_stack""graphics_stack", 'graphics_stack_max_element_num'"graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num", 'graphics_stack_max_memory_size'"graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size", and 'region_quality'"region_quality""region_quality""region_quality""region_quality""region_quality" depend on the library libcanvas, which might not be available on embedded systems.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

ParamParamParamParamParamparam (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of the parameter.

Default value: 'flush' "flush" "flush" "flush" "flush" "flush"

List of values: 'angle_of_view'"angle_of_view""angle_of_view""angle_of_view""angle_of_view""angle_of_view", 'anti_aliasing'"anti_aliasing""anti_aliasing""anti_aliasing""anti_aliasing""anti_aliasing", 'axis_captions'"axis_captions""axis_captions""axis_captions""axis_captions""axis_captions", 'background_color'"background_color""background_color""background_color""background_color""background_color", 'caption_color'"caption_color""caption_color""caption_color""caption_color""caption_color", 'display_axes'"display_axes""display_axes""display_axes""display_axes""display_axes", 'display_grid'"display_grid""display_grid""display_grid""display_grid""display_grid", 'flush'"flush""flush""flush""flush""flush", 'graphics_stack'"graphics_stack""graphics_stack""graphics_stack""graphics_stack""graphics_stack", 'graphics_stack_max_element_num'"graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num""graphics_stack_max_element_num", 'graphics_stack_max_memory_size'"graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size""graphics_stack_max_memory_size", 'plot_quality'"plot_quality""plot_quality""plot_quality""plot_quality""plot_quality", 'region_quality'"region_quality""region_quality""region_quality""region_quality""region_quality", 'scale_plot'"scale_plot""scale_plot""scale_plot""scale_plot""scale_plot", 'window_title'"window_title""window_title""window_title""window_title""window_title"

ValueValueValueValueValuevalue (input_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong) (BSTR / double / Hlong) (char* / double / Hlong)

Value to be set.

Default value: 'false' "false" "false" "false" "false" "false"

List of values: 'best'"best""best""best""best""best", 'black'"black""black""black""black""black", 'blue'"blue""blue""blue""blue""blue", 'false'"false""false""false""false""false", 'good'"good""good""good""good""good", 'green'"green""green""green""green""green", 'low'"low""low""low""low""low", 'medium'"medium""medium""medium""medium""medium", 'orthogonal'"orthogonal""orthogonal""orthogonal""orthogonal""orthogonal", 'red'"red""red""red""red""red", 'true'"true""true""true""true""true", 'unlimited'"unlimited""unlimited""unlimited""unlimited""unlimited", 'white'"white""white""white""white""white"

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Possible Successors

disp_imagedisp_imageDispImagedisp_imageDispImageDispImage

See also

get_window_paramget_window_paramGetWindowParamget_window_paramGetWindowParamGetWindowParam, set_window_attrset_window_attrSetWindowAttrset_window_attrSetWindowAttrSetWindowAttr, set_part_styleset_part_styleSetPartStyleset_part_styleSetPartStyleSetPartStyle

Module

Foundation


ClassesClassesClassesClasses | | | | Operators