00. 目录

文章目录

  • 00. 目录
  • 01. 概述
  • 02. 签名
  • 03. 描述
  • 04. 注意
  • 05. 参数
  • 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’:

控制是否可以使用鼠标滚轮放大图形窗口的内容。 默认情况下,鼠标滚轮已启用。 如果图形窗口显示3D对象objects ,并且如果在3D display 算子的帮助下交互地实现对象的缩放,禁用鼠标滚轮是合理的。

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘graphics_window_tool_tip’:

控制在图形窗口上按下Ctrl键是否在鼠标光标下显示当前像素位置和灰度值的 tool tip。 默认情况下, tool tip已启用。 如果程序基于用户交互(例如,用于操纵3D对象上的视图)而判断Ctrl键的状态,则禁用工具提示可能是合理的。

Possible values: ‘false’, ‘true’.

Default value: ‘true’.

‘suppress_handled_exceptions_dlg’:

控制是否应该抑制错误对话框,该对话框默认是开启的。在程序运行期间某一程序行发生错误并且由try-catch块封闭,有此可以由异常处理程序处理,对话框也会默认打开。 该选项永久存储在HDevelop.ini文件中,也可以通过Preferences dialog / General Options / Experienced Users进行配置。 如果一个没有被try-catch块包围的程序行引发异常,总则是打开一个错误消息对话框。

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. 参数

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 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497

【机器视觉】 dev_set_preferences算子相关推荐

  1. 机器视觉 边缘检测算子

    1.实验目的 利用opencv python实现对下图实现边缘检测算子. 2.实验过程 (1)在python安装opencv库, pip install opencv-python. (2)在pyth ...

  2. 【机器视觉】机器视觉博客汇总

    00. 目录 文章目录 00. 目录 01. 机器视觉概述 02. 机器视觉环境搭建 03. Halcon初级教程 04. Halcon中级教程 05. Halcon高级教程 06. Halcon与Q ...

  3. 拉普拉斯噪声公式_高斯拉普拉斯算子(Laplace of Gaussian)

    高斯拉普拉斯(Laplace of Gaussian) Laplace算子作为一种优秀的边缘检测算子,在边缘检测中得到了广泛的应用.该方法通过对图像 求图像的二阶倒数的零交叉点来实现边缘的检测,公式表 ...

  4. python 视觉技术_python+opencv实现机器视觉基础技术(边缘提取,图像滤波,边缘检测算子,投影,车牌字符分割)...

    机器视觉是人工智能正在快速发展的一个分支.简单说来,机器视觉就是用机器代替人眼来做测量和判断.它是一项综合技术,包括图像处理.机械工程技术.控制.电光源照明.光学成像.传感器.模拟与数字视频技术.计算 ...

  5. 【机器视觉】 write_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 write_measure - 将measure对 ...

  6. 【机器视觉】 translate_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 translate_measure - 转换一个m ...

  7. 【机器视觉】 set_fuzzy_measure_norm_pair算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure_norm_pa ...

  8. 【机器视觉】 set_fuzzy_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 set_fuzzy_measure - 指定一个模 ...

  9. 【机器视觉】 serialize_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 serialize_measure - 序列化me ...

最新文章

  1. 追根究底之以不变求万变:利用SetCapture捕获鼠标
  2. 冲刺One之站立会议8 /2015-5-21
  3. python中shutil模块_python文件、文件夹、压缩包处理模块-shutil模块-阿里云开发者社区...
  4. java性能调优指南,帮你解决90%的问题!
  5. 大数据WEB阶段(八)Tomcat服务器安装与详解、HTTP协议详解
  6. 全球首款采用离心风扇/90Hz刷新率的电竞手机红魔3发布
  7. form标签的action之前 加密_口令爆破之突破前端JS加密
  8. 通过Stratus 服务器在Flash Player中使用RTMFP 开发P2P应用
  9. Spring Boot最核心的21个注解
  10. 快闪ppt音乐_冬日午后南昌路,音乐快闪引人驻足
  11. PHP代码审计工具Rips的使用
  12. 高通QFIL工具如何备份各分区镜像
  13. WIN10系统——打开PB的帮助文档
  14. 硬盘出现坏道以及处理方法
  15. Windows8 照片查看器,图片发黄解决方法~
  16. ECC有关DER文件的解析(Java)
  17. python 视频硬字幕提取 内嵌字幕提取工具
  18. php+mysql+apache集成安装包
  19. latex初学者入门(二)
  20. 读书印记 - 《大学潜规则:谁能优先进入美国顶尖大学》

热门文章

  1. Unity网格合并_材质合并[转]
  2. Silverlight3 Tools Download link
  3. 凌云架构V0.1——第一部分 Why架构?——第一章 新项目来了
  4. 【Vegas原创】GridView修改表头,并导出Excel(C#版)
  5. ajax 填充,自动填充ajax请求
  6. merge规则 python_30个Python极简代码,10分钟get常用技巧
  7. 《架构之美》阅读笔记一
  8. 约瑟夫环的数学优化方法
  9. 用指向指针方法对N个字符串进行排序并输出
  10. 洛谷 P3627 [APIO2009]抢掠计划 题解