PanoAnnotation 接口类对应用程序提供了所有的标注相关方法。
更多...
◆ clearContents()
QResult com.pano.rtc.api.PanoAnnotation.clearContents |
( |
| ) |
|
清除标注内容,需要 ADMIN 角色才可调用成功
- 返回
- OK: 成功
- NO_PRIVILEGE: 没有权限
- Others: 失败
- 注解
- 此接口只有 ADMIN 角色才可调用
◆ clearUserContents()
QResult com.pano.rtc.api.PanoAnnotation.clearUserContents |
( |
long |
userId | ) |
|
清除指定用户的标注内容
- 参数
-
- 返回
- OK: 成功
- NO_PRIVILEGE: 没有权限
- Others: 失败
- 注解
- 只有 ADMIN 角色才可以清除非本地用户的内容
◆ enableCursorPosSync()
QResult com.pano.rtc.api.PanoAnnotation.enableCursorPosSync |
( |
boolean |
enable | ) |
|
◆ enableLocalRender()
QResult com.pano.rtc.api.PanoAnnotation.enableLocalRender |
( |
boolean |
enable | ) |
|
◆ enableShowDraws()
QResult com.pano.rtc.api.PanoAnnotation.enableShowDraws |
( |
boolean |
enable | ) |
|
◆ enableShowRemoteCursor()
QResult com.pano.rtc.api.PanoAnnotation.enableShowRemoteCursor |
( |
boolean |
enable, |
|
|
PanoLabelView |
view |
|
) |
| |
设置是否显示远端光标或画笔。默认关闭
- 参数
-
enable | 是否打开. |
view | PanoLabelView用于显示远端光标或画笔 |
- 返回
-
◆ enableUIResponse()
QResult com.pano.rtc.api.PanoAnnotation.enableUIResponse |
( |
boolean |
enable | ) |
|
◆ getAttachedLabelView()
PanoLabelView com.pano.rtc.api.PanoAnnotation.getAttachedLabelView |
( |
| ) |
|
◆ getToolType()
Constants.WBToolType com.pano.rtc.api.PanoAnnotation.getToolType |
( |
| ) |
|
◆ redo()
QResult com.pano.rtc.api.PanoAnnotation.redo |
( |
| ) |
|
◆ setAspectSize()
QResult com.pano.rtc.api.PanoAnnotation.setAspectSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ setColor() [1/2]
QResult com.pano.rtc.api.PanoAnnotation.setColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
◆ setColor() [2/2]
QResult com.pano.rtc.api.PanoAnnotation.setColor |
( |
int |
color | ) |
|
◆ setExtAnnoMode()
◆ setFillColor()
QResult com.pano.rtc.api.PanoAnnotation.setFillColor |
( |
int |
color | ) |
|
◆ setFillType()
QResult com.pano.rtc.api.PanoAnnotation.setFillType |
( |
Constants.WBFillType |
type | ) |
|
◆ setFontSize()
QResult com.pano.rtc.api.PanoAnnotation.setFontSize |
( |
int |
size | ) |
|
设置字体大小
- 参数
-
size | 字体大小,有效值范围:[10, 96],默认值:16。 |
- 返回
-
◆ setFontStyle()
QResult com.pano.rtc.api.PanoAnnotation.setFontStyle |
( |
Constants.WBFontStyle |
style | ) |
|
◆ setLineWidth()
QResult com.pano.rtc.api.PanoAnnotation.setLineWidth |
( |
int |
size | ) |
|
设置线宽
- 参数
-
size | 线宽,有效值范围:[1, 20],默认值:1。 |
- 返回
-
◆ setRoleType()
QResult com.pano.rtc.api.PanoAnnotation.setRoleType |
( |
Constants.WBRoleType |
role | ) |
|
◆ setScalingMode()
◆ setToolType()
QResult com.pano.rtc.api.PanoAnnotation.setToolType |
( |
Constants.WBToolType |
type | ) |
|
◆ setVisible()
QResult com.pano.rtc.api.PanoAnnotation.setVisible |
( |
boolean |
visible | ) |
|
设置标注视图是否可见
- 参数
-
- 返回
-
- 注解
- 标注视图默认是可见的
◆ snapshot()
QResult com.pano.rtc.api.PanoAnnotation.snapshot |
( |
String |
outputDir | ) |
|
保存标注内容到图像。
- 参数
-
- 返回
-
- 注解
- 快照结果和图像文件名通过回调函数onSnapshotComplete返回
◆ startAnnotation()
◆ stopAnnotation()
QResult com.pano.rtc.api.PanoAnnotation.stopAnnotation |
( |
| ) |
|
◆ undo()
QResult com.pano.rtc.api.PanoAnnotation.undo |
( |
| ) |
|
该接口的文档由以下文件生成: