【机器视觉】 dev_set_tool_geometry算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
dev_set_tool_geometry - 設置指定tool的位置和大小。
02. 簽名
dev_set_tool_geometry( : : ToolId, Row, Column, Width, Height : )
03. 描述
dev_set_tool_geometry使用ToolId的id來設置tool的位置和尺寸。
傳遞ToolId還有種替代方案,可以傳遞在算子dev_open_tool中使用的名稱。 在這種情況下,任意的符合條件的參數ToolId都會使用到。
參數Row和Column可以用來修改tool的位置。 為了不改變該位置,可以傳遞’default’。
參數Width和Height可以用來修改tool的大小。 為了不改變大小,可以傳遞’default’。 如果Width和Height小于tool的最小尺寸,則使用最小尺寸。
溫馨提示:
如果在此算子中直接傳遞tool名稱,只會作用到最新的打開的tool。
原文描述:
dev_set_tool_geometry sets the position and dimension of the tool with the id ToolId.
Instead of using the ToolId, given during opening the tool, you can use the name that has to be used in dev_open_tool. In that case a arbitrary tool, which fits the parameter ToolId, is used.
The parameters Row and Column can be used to modify the position of the tool. In order to unmodify the position ‘default’ can be passed.
The parameters Width and Height can be used to modify the size of the tools. In order to unmodify the size ‘default’ can be passed. If Width and Height are less than the minimum size of the tool the minimum size is used.
04. 注意
此算子不支持代碼導出
05. 參數
ToolId (input_control) dev_tool → (string)
Tool identifier.
Row (input_control) rectangle.origin.y → (integer / string)
Row index of upper left corner.
Default value: ‘default’
Minimum increment: 1
Recommended increment: 1
Column (input_control) rectangle.origin.x → (integer / string)
Column index of upper left corner.
Default value: ‘default’
Minimum increment: 1
Recommended increment: 1
Width (input_control) rectangle.extent.x → (integer / string)
Width of the tool.
Default value: ‘default’
Minimum increment: 1
Recommended increment: 1
Restriction: Width > 0
Height (input_control) rectangle.extent.y → (integer)
Height of the tool.
Default value: ‘default’
Minimum increment: 1
Recommended increment: 1
Restriction: Height > 0
HDevelop例程
dev_open_tool.hdev Open and adjust tools in HDevelop
程序示例
dev_open_tool ('zoom_window', 0, 0, Width, 'default', ToolId) dev_close_tool (ToolId)06. 結果
如果指定參數的值正確,則dev_open_tool返回2(H_MSG_TRUE)。 否則會引發異常并返回錯誤代碼。
07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 dev_set_tool_geometry算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 dev_set_shape
- 下一篇: 【机器视觉】 dev_show_tool