界面交互模塊
2022-09-13 17:35
2681
0
函數(shù) |
gkl_json script_set_unit (const gkl_json ¶m, gkl_string &errorStr) 設置軟件 單位方式 更多... |
gkl_json script_layertree_mount_steps (const gkl_json ¶m, gkl_string &errorStr) 設置項目樹上掛載的step 更多... |
gkl_json script_refresh_layer_ui (const gkl_json ¶m, gkl_string &errorStr) 刷新左側(cè)層管理列表 更多... |
gkl_json script_show_profile (const gkl_json ¶m, gkl_string &errorStr) 顯示profile 更多... |
gkl_json script_show_repeat (const gkl_json ¶m, gkl_string &errorStr) 顯示repeat 更多... |
gkl_json script_show_application (const gkl_json ¶m, gkl_string &errorStr) APP界面影藏 更多... |
gkl_json script_ask_locator (const gkl_json ¶m, gkl_string &errorStr) 請求一個點坐標,帶捕捉功能,鼠標帶十字叉 更多... |
gkl_json script_ask_position (const gkl_json ¶m, gkl_string &errorStr) 請求一個點坐標,不帶捕捉功能,鼠標到十字叉 更多... |
gkl_json script_ask_view_rect (const gkl_json ¶m, gkl_string &errorStr) 請求一個矩形,鼠標選取一個矩形范圍,鼠標呈框 更多... |
gkl_json script_call_ui_command (const gkl_json ¶m, gkl_string &errorStr) 直接執(zhí)行頁面UI界面的命令名字 更多... |
詳細描述
函數(shù)說明
◆ script_ask_locator()
gkl_json script_ask_locator(const gkl_json & param,gkl_string & errorStr )
請求一個點坐標,帶捕捉功能,鼠標帶十字叉
參見
返回
json
{ "x":1.02, "y":-0.3 }
◆ script_ask_position()
gkl_json script_ask_position(const gkl_json & param,gkl_string & errorStr )
請求一個點坐標,不帶捕捉功能,鼠標到十字叉
參見
返回
json
{ "x":1.02, "y":-0.3 }
◆ script_ask_view_rect()
gkl_json script_ask_view_rect(const gkl_json & param,gkl_string & errorStr )
請求一個矩形,鼠標選取一個矩形范圍,鼠標呈框
參見
返回
json
{ "left":-1.02, "right":-0.3, "bottom":1.2, "top":1.5 }
◆ script_call_ui_command()
gkl_json script_call_ui_command(const gkl_json & param,gkl_string & errorStr )
直接執(zhí)行頁面UI界面的命令名字
參見
參數(shù)
[in]json { "command_name":"cam_show_addfeature_ui" ----命令名字 *} |
返回
true成功,false 失敗
◆ script_layertree_mount_steps()
gkl_json script_layertree_mount_steps(const gkl_json & param,gkl_string & errorStr )
設置項目樹上掛載的step
參見
參數(shù)
[in]jsonarray [ "orig", "edit", "set" ] |
返回
bool 設置成功返回true
◆ script_refresh_layer_ui()
gkl_json script_refresh_layer_ui(const gkl_json & param,gkl_string & errorStr )
刷新左側(cè)層管理列表
參見
返回
json_null
◆ script_set_unit()
gkl_json script_set_unit(const gkl_json & param,gkl_string & errorStr )
設置軟件 單位方式
參見
參數(shù)
[in]string"inch" 或者 "mm"
返回
json_null
◆ script_show_application()
gkl_json script_show_application(const gkl_json & param,gkl_string & errorStr )
APP界面影藏
參見
參數(shù)
[in]booltrue顯示 false影藏
◆ script_show_profile()
gkl_json script_show_profile(const gkl_json & param,gkl_string & errorStr )
顯示profile
參見
參數(shù)
[in]json { "stepname":"set", ----step名字 "show":true ----profile顯示狀態(tài) } |
返回
json_null
◆ script_show_repeat()
gkl_json script_show_repeat(const gkl_json & param,gkl_string & errorStr )
顯示repeat
參見
參數(shù)
[in]json { "stepname":"set", ----step名字 "show":true ----profile顯示狀態(tài) } |
返回
json_null