日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 dev_set_preferences算子

發(fā)布時間:2024/4/24 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 dev_set_preferences算子 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

00. 目錄

文章目錄

    • 00. 目錄
    • 01. 概述
    • 02. 簽名
    • 03. 描述
    • 04. 注意
    • 05. 參數(shù)
    • 06. 結果
    • 07. 附錄

01. 概述

dev_set_preferences - 在程序中設置HDevelop的preferences。

02. 簽名

dev_set_preferences( : : PreferenceNames, PreferenceValues : )

03. 描述

dev_set_preferences可以在程序中設置HDevelop的特定的preferences 。 此算子支持以下preferences :

‘graphics_window_context_menu’:

控制右鍵圖形窗口是否打開context menu。 默認情況下,context menu已啟用。 如果鼠標右鍵用于控制圖形窗口中的某種navigation,例如移動或縮放3D對象,則禁用context menu可能是合理的。

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘graphics_window_mouse_wheel’:

控制是否可以使用鼠標滾輪放大圖形窗口的內(nèi)容。 默認情況下,鼠標滾輪已啟用。 如果圖形窗口顯示3D對象objects ,并且如果在3D display 算子的幫助下交互地實現(xiàn)對象的縮放,禁用鼠標滾輪是合理的。

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘graphics_window_tool_tip’:

控制在圖形窗口上按下Ctrl鍵是否在鼠標光標下顯示當前像素位置和灰度值的 tool tip。 默認情況下, tool tip已啟用。 如果程序基于用戶交互(例如,用于操縱3D對象上的視圖)而判斷Ctrl鍵的狀態(tài),則禁用工具提示可能是合理的。

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘suppress_handled_exceptions_dlg’:

控制是否應該抑制錯誤對話框,該對話框默認是開啟的。在程序運行期間某一程序行發(fā)生錯誤并且由try-catch塊封閉,有此可以由異常處理程序處理,對話框也會默認打開。 該選項永久存儲在HDevelop.ini文件中,也可以通過Preferences dialog / General Options / Experienced Users進行配置。 如果一個沒有被try-catch塊包圍的程序行引發(fā)異常,總則是打開一個錯誤消息對話框。

Possible values: ‘false’, ‘true’.

Default value: ‘false’ (Any changes are persistently saved).

原文描述

dev_set_preferences allows to set selected preferences of HDevelop within a program. The following preferences are supported:

‘graphics_window_context_menu’:
Controls whether a right click into the graphics window opens a context menu or not. By default the context menu is enabled. Disabling the context menu may be sensible if the right mouse button is used for controlling some kind of navigation in the graphics window, e.g., for moving or zooming 3D objects.

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘graphics_window_mouse_wheel’:
Controls whether a the mouse wheel can be used to zoom the contents of the graphics window or not. By default the mouse wheel is enabled. Disabling the mouse wheel may be sensible if 3D objects are displayed and if the zooming into the objects is realized interactively with the help of 3D display operators.

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘graphics_window_tool_tip’:
Controls whether pressing the Ctrl-key over the graphics window shows a tool tip with the current pixel position and the gray values under the mouse cursor or not. By default the tool tip is enabled. Disabling the tool tip may be sensible if the state of the Ctrl-key shall be evaluated for program based user interactions, e.g., for manipulating the view on 3D objects.

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘suppress_handled_exceptions_dlg’:
Controls whether the error dialog should be suppressed that is by default opened for exceptions that are thrown during program execution and that are enclosed by a try-catch block and can therefore be handled by an exception handler. This option is persistently stored into the HDevelop.ini file and can also be configured via the Preferences dialog / General Options / Experienced Users. If an exception is thrown by a program line that is not enclosed by a try-catch block, an error message dialog is always opened.

Possible values: ‘false’, ‘true’.

Default value: ‘false’ (Any changes are persistently saved).

04. 注意

此算子不支持代碼導出

05. 參數(shù)

PreferenceNames (input_control) attribute.name-array → (string)
  Selection of the preferences.
  Default value: ‘graphics_window_context_menu’
  List of values: ‘graphics_window_context_menu’, ‘graphics_window_mouse_wheel’, ‘graphics_window_tool_tip’, ‘suppress_handled_exception_dlg’

PreferenceValues (input_control) attribute.value-array → (string)
  New values for the selected preferences.
  Default value: ‘false’
  List of values: ‘false’, ‘true’

HDevelop例程

median_interactive.hdev Interactively smooth an image
get_mposition.hdev Query mouse position and button status
3d_matching_clamps.hdev Recognize 3D objects in images using a 3D DXF model

程序示例

06. 結果

07. 附錄

7.1 機器視覺博客匯總
網(wǎng)址:https://dengjin.blog.csdn.net/article/details/116837497

總結

以上是生活随笔為你收集整理的【机器视觉】 dev_set_preferences算子的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。