cn.tee3.avd_SDK-C++  2.1.0
mannotation.h
浏览该文件的文档.
1 #ifndef RT_Annotation_H_
2 #define RT_Annotation_H_
3 
4 #include "common.h"
5 #include "room.h"
6 namespace tee3 {
7  namespace avd {
8 
9  class AnnotationObject;
10  class IVideoRender;
11  class IMAnnotation;
13  public:
14  static IToolbar* create();
15  virtual Result setAnnotation(IMAnnotation* atn) = 0;
16  virtual Result getExcludeWindows(WindowIds& windowFilter) = 0;
17  };
19  public:
20  static IMAnnotation* create(bool defaultToolbar = true);
21  static bool isSupported(AnnotationToolType type);
22  virtual Result start() = 0;
23  virtual Result stop() = 0;
24  virtual Result setApplicationWindow(const WindowId& id, bool isWhiteboard) = 0;
25  virtual Result setZoomMode(bool isZoom = false) = 0;
26  virtual Result setDesktop(const DesktopId& id) = 0;
27  virtual Result setCurrentType(AnnotationToolType type) = 0;
28  virtual Result setLineWidth(int width) = 0;
29  virtual Result setLineArrow(LineArrowType arrow) = 0;
30  virtual Result setLineColor(uint8 r, uint8 g, uint8 b, uint8 a) = 0;
31  virtual Result setFillColor(uint8 r, uint8 g, uint8 b, uint8 a) = 0;
32  virtual Result undo() = 0;
33  virtual Result redo() = 0;
34  virtual Result save() = 0;
35  virtual Result clear(ClearType type) = 0;
36 
37  //infos
38  virtual AnnotationId annotationId() = 0;
39  virtual void setAnnotationId(const AnnotationId& id) = 0;
40  virtual UserId ownerUserId() = 0;
41  virtual void setOwnerUserId(const UserId& id) = 0;
42  virtual bool isMine() = 0;
43 
44  //rect
45  virtual void setAnnotationSize(int width, int height) = 0;
46  virtual void setVideoRender(IVideoRender* render) = 0;
47 
48  //window
49  //virtual void messgeWindowId() = 0;
50  //virtual void displayWindowId() = 0;
51  //virtual void drawWindowId() = 0;
52  virtual Result getMessageWindowId(WindowId& winId) = 0;
53  virtual Result getDisplayWindowId(WindowId& winId) = 0;
54  virtual IToolbar* getToolbar() = 0;
55  virtual ~IMAnnotation() {}
56  };
57  }
58 }
59 #endif
DeviceId AnnotationId
直播频道ID类型
Definition: common.h:17
std::vector< WindowId > WindowIds
Definition: common.h:439
String UserId
用户号类型,唯一标识房间内一个用户,长度不大于Max_UserId定义;由应用层定义传递给AVD SDK,要求保证房间...
Definition: common.h:13
int Result
返回值类型
Definition: combase.h:9
视频渲染接口类
Definition: videorender.h:69
#define RT_API_EXPORT
Definition: defines.h:186
房间模块接口类
Definition: room.h:349
Definition: common.h:399
ClearType
Definition: common.h:506
Definition: mannotation.h:12
Definition: mannotation.h:18
LineArrowType
Definition: common.h:499
unsigned char uint8
Definition: defines.h:395
virtual ~IMAnnotation()
Definition: mannotation.h:55
Definition: audiocapture.h:5
AnnotationToolType
Definition: common.h:482
Definition: common.h:440