|
AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
| Viewer | GetActiveViewer () |
| void | SetActiveViewer (Viewer val) |
| boolean | GetStandalone () |
| void | SetStandalone (boolean val) |
| boolean | Initialize (Path basePath, boolean useSync) |
| void | Destroy () |
| Viewer | CreateView (int hwndHost, long width, long height) |
| Viewer | CreateWindow3D (String title, long width, long height, boolean visible) |
| void | InstallListener (Viewer viewer) |
| boolean | ExecuteCommand (String name, String params) |
| boolean | ExecuteCommand (String name) |
| boolean | ExecuteCommand (String name, ParameterDict params) |
| String | QueryCommand (String name, ParameterDict params) |
| String | QueryCommand (String name, String params) |
| String | QueryCommand (String name) |
| boolean | Input (String parameters) |
| boolean | Input (ParameterDict params) |
| boolean | ExecuteEditorAction (String name, ParameterDict params) |
| void | AddEventListener (AppEventListener pListener) |
| void | RemoveEventListener (AppEventListener pListener) |
| Vector2 | GetDpiScale () |
静态 Public 成员函数 | |
| static boolean | InternalRegisterSdk (String a, String b, String d, String e, String f) |
<> 显示应用程序入口
全局唯一
| void BaseApplication.AddEventListener | ( | AppEventListener | pListener | ) |
增加应用级别的事件监听器
| pListener | 监听器 |
| Viewer BaseApplication.CreateView | ( | int | hwndHost, |
| long | width, | ||
| long | height ) |
基于已有的窗口控件上创建三维显示视图
| hwndHost | the host window handle. |
| width | the width |
| height | the height |
| Viewer BaseApplication.CreateWindow3D | ( | String | title, |
| long | width, | ||
| long | height, | ||
| boolean | visible ) |
创建一个独立的三维窗口.
| title | the title |
| width | the width |
| height | the height |
| visible | if visible. |
| void BaseApplication.Destroy | ( | ) |
释放资源
被 Application 重载.
| boolean BaseApplication.ExecuteCommand | ( | String | name | ) |
执行命令
| name | 命令名称 |
| boolean BaseApplication.ExecuteCommand | ( | String | name, |
| String | params ) |
执行命令
| name | 命令名称 |
| params | 与ParameterDict兼容的JSON对象字符串 |
| boolean BaseApplication.ExecuteEditorAction | ( | String | name, |
| ParameterDict | params ) |
执行Editor的子命令
| name | 命令名称 |
| params | 参数 |
| Vector2 BaseApplication.GetDpiScale | ( | ) |
获取显示器DPI缩放系数。
| boolean BaseApplication.Initialize | ( | Path | basePath, |
| boolean | useSync ) |
| boolean BaseApplication.Input | ( | String | parameters | ) |
给当前的Editor输入参数
| parameters | 参数 |
| void BaseApplication.InstallListener | ( | Viewer | viewer | ) |
| String BaseApplication.QueryCommand | ( | String | name, |
| ParameterDict | params ) |
查询
| name | 命令 |
| params | 参数 |
| void BaseApplication.RemoveEventListener | ( | AppEventListener | pListener | ) |
移除监听器
| pListener | 监听器 |