Appearance
综合搜索虚拟相机
综合搜索虚拟相机
方法
js
cloudObj.RtAPI("getVirtualCamera", params, (res) => {
console.log(res);
});1
2
3
2
3
请求示例
javascript
let params = {
"area": {
"height": 0,
"latitude": 0,
"longitude": 0,
"radius": 0
},
"attributeList": [],
"attributeListUnion": true,
"detail": true,
"disableTree": true,
"foreignKey": [],
"guids": [],
"name": "",
"objectData": {
"type": 0,
"typeName": ""
},
"tagList": [],
"tagListUnion": true,
"view": true
};1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
请求参数说明
| 参数名称 | 参数说明 | 是否必须 | 数据类型 |
|---|---|---|---|
| area | false | ||
| height | 高度 | false | number |
| latitude | 纬度 | false | number |
| longitude | 经度 | false | number |
| radius | 圆的半径 | false | number |
| attributeList | 属性列表 | false | array |
| attributeListUnion | 属性列表是否为并集,当其默认为true时,属性列表中的元素大于1个时候,只要有一个匹配即可,如果为false,则属性列表中的元素必须全部匹配 | false | boolean |
| detail | 是否显示详细信息,默认为false,在删除相关操作中强制被置为false | false | boolean |
| disableTree | 是否以左侧树形式返回,目前只开放建筑的左侧树返回形式 | false | boolean |
| foreignKey | 根据外键搜索,与guid为共存关系 | false | array |
| guids | 直接搜索优先级最高 | false | array |
| name | 名称模糊搜索 | false | string |
| objectData | 元素的细节,在删除相关操作中被强制Null | false | |
| type | false | number | |
| typeName | false | string | |
| tagList | tags列表 | false | array |
| tagListUnion | 搜索条件中的tags列表是否为补集,默认为true,即如果为false,则搜索除了tagList之外的内容 | false | boolean |
| view | 视野内参数,默认不启用,该参数为后置过滤参数,该参数在建筑,场景漫游等非实体概念的功能中被自动屏蔽。 | false | boolean |
响应参数
javascript
[
{
"attributeList": [],
"buildID": "",
"displayModel": true,
"elementData": {
"__fovx__": 0,
"_aspectx": 0,
"_aspecty": 0,
"_bindModelID": "",
"_centeralLineColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_colorFilter": true,
"_customColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_displayCenteralLine": true,
"_displayFrustumLine": true,
"_displayFrustumPlane": true,
"_edgeFusionStrength": {
"value": 0
},
"_effectBBMergin": 0,
"_effectText": "",
"_effectTextBackgroundOffset": {
"x": 0,
"y": 0
},
"_effectTextBackgroundSize": {
"x": 0,
"y": 0
},
"_effectTextBackgroundSizeAuto": true,
"_effectTextBackgroundVisible": true,
"_effectTextBoundBoxColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_effectTextColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_effectTextFont": "",
"_effectTextMargin": 0,
"_effectTextSize": 0,
"_effectTextVisible": true,
"_frustumLineColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_frustumPlaneColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_isInverted": true,
"_lock": true,
"_mainModelVisible": true,
"_minBoardThick": 0,
"_modelType": 0,
"_normalColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_opType": 1,
"_playSpeed": 0,
"_playTimeOffset": 0,
"_pulse": true,
"_pulseColor": {
"w": 0,
"x": 0,
"y": 0,
"z": 0
},
"_pulseMainModelVisible": true,
"_pulseTime": 0,
"_pulseTroggleShader": true,
"_showLoadingGif": true,
"_stopProjectWhenStopVideo": true,
"_subVecData": [
{
"_index": 0,
"_isCache": true,
"_name": "",
"_platformType": "",
"_vacID": "",
"_vacName": "",
"_vacUrl": "",
"_videoDecodeMode": 0,
"_videoId": "",
"_videoUrl": ""
}
],
"_troggleShader": true,
"_troggleTextBoundBoxLine": true,
"_videoStreamType": 0,
"_videoSwitchInMode": 0,
"_viewRange": {
"x": 0,
"y": 0
},
"_zFar": 0
},
"floorIndex": 0,
"foreignKey": "",
"geometry": {
"geometryStructure": {},
"geometryType": "",
"worldCoordinates": {
"height": 0,
"latitude": 0,
"longitude": 0
}
},
"guid": "",
"name": "",
"tagList": [],
"type": 0,
"viewPointList": [
{
"heading": 0,
"height": 0,
"home": true,
"id": "",
"index": 0,
"latitude": 0,
"longitude": 0,
"name": "",
"pitch": 0,
"range": 0,
"relPosX": 0,
"relPosY": 0,
"relPosZ": 0,
"staytime": 0,
"throughtime": 0,
"vaild": true
}
]
}
]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
响应示例
| 参数名称 | 参数说明 | 类型 |
|---|---|---|
| attributeList | 外部属性,键值对 | array |
| buildID | 该元素所处的建筑ID,不参与搜索,只用于展示 | string |
| displayModel | 是否显隐 | boolean |
| elementData | ||
| fovx | 虚拟相机fovx | number |
| _aspectx | 纵横比x | number |
| _aspecty | 纵横比y | number |
| _bindModelID | 绑定到某个物体上 | string |
| _centeralLineColor | 中心线颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _colorFilter | 虚拟相机投射到物体上是颜色还是默认的纹理图片 | boolean |
| _customColor | 虚拟相机投射到物体上的颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _displayCenteralLine | 监控区域中心线 | boolean |
| _displayFrustumLine | 是否显示监控区域轮廓线 | boolean |
| _displayFrustumPlane | 是否显示视锥面 | boolean |
| _edgeFusionStrength | 边缘虚化参数 范围0-1 | |
| value | 0-1之间参数,视频边缘融合虚化 | number |
| _effectBBMergin | 文字与模型距离 | number |
| _effectText | 文字内容 | string |
| _effectTextBackgroundOffset | 文字相对背景偏移量 | |
| x | number | |
| y | number | |
| _effectTextBackgroundSize | 文字背景大小 | |
| x | number | |
| y | number | |
| _effectTextBackgroundSizeAuto | 文字与背景自动调整大小 | boolean |
| _effectTextBackgroundVisible | 文字背景显隐 | boolean |
| _effectTextBoundBoxColor | 文字背景颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _effectTextColor | 文字自定义颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _effectTextFont | 文字字体,可以去文字接口获取字体内容,直接传入字体font | string |
| _effectTextMargin | 文字自身边距,默认值为1.0 | number |
| _effectTextSize | 文字缩放比 | number |
| _effectTextVisible | 文字显隐 | boolean |
| _frustumLineColor | 监控区域轮廓线自定义颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _frustumPlaneColor | 视锥面颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _isInverted | 进行录像播放时是否倒放 | boolean |
| _lock | 是否锁定 | boolean |
| _mainModelVisible | 虚拟相机模型是否显示 | boolean |
| _minBoardThick | 投射厚度 | number |
| _modelType | 3d类型 | number |
| _normalColor | 虚拟相机模型正常样式的自定义显示颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _opType | 视频状态,0播放、1停止、2暂停、3恢复、8偏移播放时间、9设置倍速播放 | number |
| _playSpeed | 进行录像播放时的播放速度,只支持整数,范围从-8 - 8 | number |
| _playTimeOffset | 进行录像播放时候的偏移量,让其能够快速定位开始时间与结束时间之间的内容,单位为秒 | number |
| _pulse | 闪烁 | boolean |
| _pulseColor | 虚拟相机模型闪烁样式的自定义颜色 | |
| w | 对应的alpha通道,范围在 0-1 | number |
| x | 对应的R通道,范围在 0-1,取值为标准0-255/255 | number |
| y | 对应的G通道,范围在 0-1,取值为标准0-255/255 | number |
| z | 对应的B通道,范围在 0-1,取值为标准0-255/255 | number |
| _pulseMainModelVisible | 虚拟相机模型闪烁是否显示 | boolean |
| _pulseTime | 闪烁时间 | number |
| _pulseTroggleShader | 虚拟相机模型闪烁样式的自定义颜色生效参数 | boolean |
| _showLoadingGif | 播放时是否显示播放动画 | boolean |
| _stopProjectWhenStopVideo | 停止时是否隐藏投射画面,true 隐藏,false 保留 | boolean |
| _subVecData | 视频幕布承载的视频流信息 | array |
| _index | 视频索引 从1开始 | number |
| _isCache | 是否启用缓存,只有在视频需要严格同步时候才会启用缓存,启用缓存会大大降低性能 | boolean |
| _name | 视频的默认ID | string |
| _platformType | 当视频目录为vac接入时,视频在vac平台的分类 | string |
| _vacID | 当视频目录为vac接入时,视频在vac平台的ID | string |
| _vacName | 当视频幕布为vac接入时,视频在vac平台的名称,不可修改 | string |
| _vacUrl | 当视频目录为vac接入时,视频在vac平台的播放地址 | string |
| _videoDecodeMode | 视频的解码模式,默认推荐Nvidia, 0-cpu解码;1-Intel;2-Nvidia | number |
| _videoId | 自定义视频的流ID,可以从外部传入 | string |
| _videoUrl | 自定义视频的流地址 | string |
| _troggleShader | 虚拟相机模型正常样式的自定义颜色生效参数 | boolean |
| _troggleTextBoundBoxLine | 是否启用文字边框 | boolean |
| _videoStreamType | 播放流类型:1直播、2历史,默认为1 | number |
| _videoSwitchInMode | 视频流类型,0为普通的自定义的url,1专门指从VAC接入,当其为1时候对应的subvecdata中只有_vacurl生效 | number |
| _viewRange | 可视范围 | |
| x | number | |
| y | number | |
| _zFar | 监控区域远裁面 | number |
| floorIndex | 该元素所处的楼层序号,不参与搜索,只用于展示 | number |
| foreignKey | 外键 | string |
| geometry | ||
| geometryStructure | 几何结构具体结构 | |
| geometryType | 几何结构类型,在增加与更新接口时非必填字段 | string |
| worldCoordinates | 世界经纬度坐标,对于多边形,圆形这类手工创建的形状,世界坐标是计算得出,所以直接设置其世界坐标会不起作用。类似区域轮廓,高亮区域,路径 | |
| height | 高度 | number |
| latitude | 纬度 | number |
| longitude | 经度 | number |
| guid | 唯一ID | string |
| name | 名字 | string |
| tagList | tag属性 | array |
| type | 类型 | number |
| viewPointList | 自定义的视点,用于组结构的孪生体 | array |
| heading | number | |
| height | number | |
| home | boolean | |
| id | string | |
| index | number | |
| latitude | number | |
| longitude | number | |
| name | string | |
| pitch | number | |
| range | number | |
| relPosX | number | |
| relPosY | number | |
| relPosZ | number | |
| staytime | number | |
| throughtime | number | |
| vaild | boolean |
