IsoBean控件
# PinToo控件使用(IsoBean控件)
# 1. TfxIsoBeanServer
此组件为IsoBean服务的配置组件。
# 1.1. 属性
属性 | 功能说明 |
---|---|
Server | IsoBean服务器的地址,比如 http://localhost:8888/ |
UserKey | 调用IsoBean的用户的唯一ID |
# 2. TfxIsoBeanSource
此组件为IsoBean的数据源组件,用于配置需要可视化或非可视化的IsoBean。如需要使用可视化的IsoBean,需配合TIsoBeanVision使用。
使用鼠标右键点击控件,选择 Properties...
,打开属性设置界面。在属性设置界面中输入IsoBean编号、IsoBean授权码与IsoBean服务器地址,点击 [从服务器下载参数]
,将服务器可配置的参数下载至本地。
# 2.1. 属性
# 2.1.1. IsoBeanOptions
property IsoBeanOptions: TfxIsoBeanOptions;
设置IsoBean的选项。
IsoBeanNo:IsoBean的编号名称。
Params:IsoBean接口参数信息。
接口参数使用json格式化,格式如下。
[{"fdcheck":true,"fdparamname":"image","fdparamvalue":"library\/js\/egjs-view360\/examples\/img\/smartphone-panorama-picture.jpg","fdparamdescription":null}]
1Server:IsoBean服务器的地址,示例为
http://localhost:8888/
,如IsoBeanServer已绑定,则此项可不设置。[{"fdcheck":true,"fdparamname":"image","fdparamvalue":"library/js/egjs-view360/examples/img/smartphone-panorama-picture.jpg","fdparamdescription":null}]
UserKey:设置用户授权码,如IsoBeanServer已绑定,则此项可不设置。
UseServerParams:设置是否使用服务器的参数信息,默认设置项为
True
。
# 2.1.2. IsoBeanServer
property IsoBeanServer: TfxIsoBeanserver;
设置组件绑定的服务器名称。详见 TfxIsoBeanServer
# 3. TfxIsoBeanVision
此组件用于展示可视化的IsoBean,可通过绑定 TfxIsoBeanSource 来显示。
# 3.1. 属性
# 3.1.1. Active
property Active: True;
设置是否启用控件。
# 3.1.2. IsoBeanOptions
property IsoBeanOptions: TfxIsoBeanOptions;
设置IsoBean的选项。
IsoBeanNo:IsoBean的编号名称。
Params:IsoBean接口参数信息。
接口参数使用json格式化,格式如下。
[{"fdcheck":true,"fdparamname":"image","fdparamvalue":"library\/js\/egjs-view360\/examples\/img\/smartphone-panorama-picture.jpg","fdparamdescription":null}]
1Server:IsoBean服务器的地址,示例为
http://localhost:8888/
,如IsoBeanServer已绑定,则此项可不设置。[{"fdcheck":true,"fdparamname":"image","fdparamvalue":"library/js/egjs-view360/examples/img/smartphone-panorama-picture.jpg","fdparamdescription":null}]
UserKey:设置用户授权码,如IsoBeanServer已绑定,则此项可不设置。
UseServerParams:设置是否使用服务器的参数信息,默认设置项为
True
。
# 3.1.3. IsoBeanSource
property IsoBeanSource: TfxIsoBeanSource;
设置IsoBean的数据来源,详见 TfxISoBeanSource。
# 3.1.4. tag
property Tag: Integer;
设置IsoBean显示器的标记,可作为WebSocket通讯时使用同一个IsoBean的控件的身份认证。
{
"username": "admin", //运行IsoBean的用户,修改为实际运行的用户
"action": "callback",
"tag": "0",
"data": {
"callbackcomponent": "wb-vis-0011_radialgauge",
"callbackeventname": "update",
"callbackparams": [
{
"paramname": "value",
"paramvalue": "24" //查询的内容,修改为想查询的内容
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15