构造
new Blob()
方法列表
| 名称 | 说明 |
|---|---|
| .getColor() | 读取颜色信息 |
| .getEntityStatussBuffer(entitys) | 得到一组实体节点+状态的ArrayBuffer |
| .getEntitysBuffer(entitys) | 得到一组实体节点的ArrayBuffer |
| .getExtentBuffer(extent:) | 得到一个范围的ArrayBuffer |
| .getFloatBuffer(val) | 得到一个含1个Float数字的ArrayBuffer |
| .getImage(data, dv, pos) | 解析Bstream |
| .getInt16Buffer(int16) | 得到一个含1个Int16数字的ArrayBuffer |
| .getInt32ArrayBuffer(int32) | 得到一个含Int32数组的ArrayBuffer |
| .getInt32Buffer(int32) | 得到一个含1个Int32数字的ArrayBuffer |
| .getInt8Buffer(int8) | 得到一个含1个int8(char)数字的ArrayBuffer |
| .getNodeType(nodetypeArray) | 得到节点类型的ArrayBuffer |
| .getPolygonBuffer(coords:) | 得到多边形范围的ArrayBuffer |
| .getRoundBuffer(coords:) | 得到圆形范围的ArrayBuffer |
| .getText(data, dv, pos) | 解析Wstring,为支持多行文本,返还值中包含了pos |
| .getUint16Buffer(int16) | 得到一个含1个Uint16数字的ArrayBuffer |
| .getUint32Buffer(int32) | 得到一个含1个Uint32数字的ArrayBuffer |
| .getUint8Buffer(int8) | 得到一个含1个Uint8(Uchar)数字的ArrayBuffer |
| .getWinArrayBuffer() | 得到窗口ID的ArrayBuffer |
| .getWstringBuffer(text) | 将一个包含Text内容转换为Wstring |
详细说明
(static) getColor()
读取颜色信息
返回值
颜色
- Type
- Color
(static) getEntityStatussBuffer(entitys)
得到一组实体节点+状态的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
entitys |
Array | 实体数组,其数组内容为{blockId, entityId, status}, 例如:[{blockId:3, entityId:30038, status:0}, {blockId:303, entityId:32330022, status:1}] |
返回值
消息内容
- Type
- ArrayBuffer
(static) getEntitysBuffer(entitys)
得到一组实体节点的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
entitys |
Array | 实体数组,其数组内容为{blockId, entityId}, 例如:[{blockId:3, entityId:30038}, {blockId:303, entityId:32330022}] |
返回值
消息内容
- Type
- ArrayBuffer
(static) getExtentBuffer(extent:)
得到一个范围的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
extent: |
Array | [x1,y1,x2,y2] |
返回值
消息内容
- Type
- ArrayBuffer
(static) getFloatBuffer(val)
得到一个含1个Float数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
val |
int | 浮点数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getImage(data, dv, pos)
解析Bstream
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
data |
Buffer | ||
dv |
DataView | ||
pos |
int |
返回值
二进制Image内容
(static) getInt16Buffer(int16)
得到一个含1个Int16数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int16 |
int | 整数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getInt32ArrayBuffer(int32)
得到一个含Int32数组的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int32 |
Array | 整数数组 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getInt32Buffer(int32)
得到一个含1个Int32数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int32 |
int | 整数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getInt8Buffer(int8)
得到一个含1个int8(char)数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int8 |
int | 整数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getNodeType(nodetypeArray)
得到节点类型的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
nodetypeArray |
Array |
返回值
消息内容
- Type
- ArrayBuffer
(static) getPolygonBuffer(coords:)
得到多边形范围的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
coords: |
Array | [[x1,y1], [x2, y2], ……] |
返回值
消息内容
- Type
- ArrayBuffer
(static) getRoundBuffer(coords:)
得到圆形范围的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
coords: |
Array | [x1,y1,radius] |
返回值
消息内容
- Type
- ArrayBuffer
(static) getText(data, dv, pos)
解析Wstring,为支持多行文本,返还值中包含了pos
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
data |
Buffer | ||
dv |
DataView | ||
pos |
int |
返回值
文本内容,格式为:{ text, pos }
- Type
- Object
(static) getUint16Buffer(int16)
得到一个含1个Uint16数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int16 |
Array | 整数数组 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getUint32Buffer(int32)
得到一个含1个Uint32数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int32 |
int | 无符号整数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getUint8Buffer(int8)
得到一个含1个Uint8(Uchar)数字的ArrayBuffer
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
int8 |
int | 无符号整数 |
返回值
消息内容
- Type
- ArrayBuffer
(static) getWinArrayBuffer()
得到窗口ID的ArrayBuffer
返回值
消息内容
- Type
- ArrayBuffer
(static) getWstringBuffer(text)
将一个包含Text内容转换为Wstring
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
text |
String |
返回值
消息内容 Wstring数据类型定义如下: DataLen 字节数 Ushort 宽字符1 Ushort 宽字符2
- Type
- ArrayBuffer
搜索