Operators |
set_window_param — Set window parameters.
set_window_param( : : WindowHandle, Param, Value : )
The operator set_window_param allows to set different parameters of an open window.
General window parameters:
Sets the background color of the window WindowHandle. The operator clear_window uses this color to clear the window.
possible values: a string containing the color name (e.g. 'black', 'red')
Allows to change the text in the title bar of an already opened HALCON window.
possible values: a string containing up to 1023 characters
Parameters concerning the '3d_plot' (see set_paint):
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' to 'orthogonal' .
possible values: 'orthogonal' or an angle in radians
default value: 1.22173 (70 degrees)
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: [' ',' ',' ']
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'
For the interactive display of a 3D plot it is often required to perform calls to disp_obj using the same image within a loop. If 'interactive_plot' is set to 'true', a large amount of calculations is done only in the first call to disp_obj and cached for all subsequent calls. It is important to set this parameter to 'false' after finishing the interactive display, in order to free the memory needed for the cached data.
possible values: 'true', 'false'
default value: 'false'
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'
If set to 'true', the depth information generated by the 3D plot is saved after each call to disp_obj. This information is used to accelerate the operator unproject_coordinates.
possible values: 'true', 'false'
default value: 'false'
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'
If set to 'true' a grid is displayed at height 0.
possible values: 'true', 'false'
default value: 'true'
If set to 'true' coordinate axes are displayed.
possible values: 'true', 'false'
default value: 'true'
Window identifier.
Name of the parameter.
Default value: 'save_depth_buffer'
List of values: 'angle_of_view' , 'axis_captions' , 'background_color' , 'caption_color' , 'display_axes' , 'display_grid' , 'interactive_plot' , 'plot_quality' , 'save_depth_buffer' , 'scale_plot' , 'window_title'
Value to be set.
Default value: 'true'
List of values: 'best' , 'black' , 'blue' , 'false' , 'good' , 'green' , 'low' , 'medium' , 'orthogonal' , 'red' , 'true' , 'white'
get_window_param, set_window_attr
Foundation
Operators |