1 #ifndef RT_AnnotationObject_H_ 2 #define RT_AnnotationObject_H_ 72 class CriticalSection;
75 class AnnotationObject;
76 class Annotation2Point;
77 class AnnotationMultiPoint;
95 virtual void SetEnable(
bool enable =
true) { enable_ = enable; }
107 void CopyDataToPdu(room_pdu::AnnotationObject* pduobject);
108 void CopyDataFromPdu(
const room_pdu::AnnotationObject* pduobject);
111 virtual bool CopyDataFromJson(std::string annotStr);
112 virtual bool CopyDataToJson(std::string& annotStr);
117 void SetUserId(
const std::string&
id) { user_id_ = id; }
156 void CopyDataFrom(
const room_pdu::Annotation2Point* pdu2point);
158 void CopyDataTo(room_pdu::Annotation2Point* pdu2point);
217 void CopyDataFrom(
const room_pdu::AnnotationMultiPoint* pdupoints);
218 void CopyDataFromEx(
const room_pdu::AnnotationMultiPoint* pdupoints);
219 void CopyDataTo(room_pdu::AnnotationMultiPoint* pdupoints);
245 void CopyDataFrom(
const room_pdu::AnnotationList* pdulist);
246 void CopyDataTo(room_pdu::AnnotationList* pdulist);
263 virtual bool Draw(
const AVDContext& context,
bool paint)
override {
return false; }
271 virtual void CopyDataTo(room_pdu::AnnotationImg* pduimg);
272 virtual void CopyDataFromEx(
const room_pdu::AnnotationImg* pduimg);
275 virtual void SetEnable(
bool enable =
true);
277 virtual void SetLocalFile(
const std::string& localfile);
291 virtual bool Draw(
const AVDContext& context,
bool paint)
override {
return false; }
342 virtual void CopyDataTo(room_pdu::AnnotationTxt* pdutxt);
343 virtual void CopyDataFromEx(
const room_pdu::AnnotationTxt* pdutxt);
352 #endif//RT_AnnotationObject_H_ virtual void SetLineWidth(int width)
Definition: annotationobject.h:91
void CopyDataFrom(AnnotationObject *data) override
std::string GetObjectId()
Definition: annotationobject.h:123
Definition: annotationobject.h:228
virtual bool Draw(const AVDContext &context, bool paint) override
Definition: annotationobject.h:263
virtual void SetLineColor(Color color)
Definition: annotationobject.h:92
virtual void CopyDataFromEx(const room_pdu::AnnotationTxt *pdutxt)
Color line_color_
Definition: annotationobject.h:138
bool HitTest(const Point &pt) override
std::vector< std::string > _contens
required
Definition: annotationobject.h:306
LineArrowType line_arrow_
Definition: annotationobject.h:130
Definition: annotationobject.h:71
std::string _font_family
required
Definition: annotationobject.h:307
bool HitTest(const Point &pt) override
AnnotationObjects eraser_objects_
Definition: annotationobject.h:252
virtual bool CopyDataFromJson(std::string annotStr)
bool enable_
Definition: annotationobject.h:133
void GetEraserObjectIds(AnnotationObjectIds &eraserObjectIds)
Definition: annotationobject.h:259
Definition: annotationobject.h:296
virtual bool Is(AnnotationToolType type)
Definition: annotationobject.h:100
void SetObjectId(const std::string &id)
Definition: annotationobject.h:119
void MoveOnly(const Point &movePt)
Definition: annotationobject.h:252
std::vector< AnnotationObject * > AnnotationObjects
Definition: annotationobject.h:151
virtual void SetFillColor(Color color)
Definition: annotationobject.h:93
virtual void SetDisplayRect(const Rect &rc)
Definition: annotationobject.h:96
virtual bool CopyDataToJson(std::string &annotStr)
Color _font_color
Definition: annotationobject.h:305
virtual void SetEnable(bool enable=true)
Definition: annotationobject.h:184
virtual bool HitTest(const Point &pt) override
std::string annotation_id_
Definition: annotationobject.h:146
Rect object_rect_
Definition: annotationobject.h:140
int line_width_
Definition: annotationobject.h:135
bool HitTest(const Point &pt) override
Point point_from_
Definition: annotationobject.h:163
bool zoom_
Definition: annotationobject.h:134
Definition: annotationobject.h:266
Definition: annotationobject.h:74
Definition: annotationbasedefines.h:12
void SetUserId(const std::string &id)
Definition: annotationobject.h:117
virtual void CopyDataFrom(AnnotationObject *data)
PointArray points_
Definition: annotationobject.h:224
std::string GetUserId()
Definition: annotationobject.h:121
Definition: annotationobject.h:178
virtual bool HitTest(const rtcimp::Point &pt) override
Definition: annotationobject.h:290
virtual void CopyDataTo(room_pdu::AnnotationTxt *pdutxt)
#define RT_API_EXPORT
Definition: defines.h:216
void CopyDataFrom(AnnotationObject *data) override
bool HitTest(const Point &pt)
virtual bool IsEnable()
Definition: annotationobject.h:99
virtual bool Draw(const AVDContext &context, bool paint) override
Definition: annotationobject.h:291
std::string _font_weight
Definition: annotationobject.h:309
int _one_height
Definition: annotationobject.h:304
TxtInfo()
Definition: annotationobject.h:297
unsigned int uint32
Definition: defines.h:387
区域对象信息结构.
Definition: annotationbasedefines.h:24
bool Draw(const AVDContext &context, bool paint) override
Definition: annotationobject.h:251
int _font_size
Definition: annotationobject.h:301
AnnotationToolType tool_type_
Definition: annotationobject.h:129
virtual bool CopyDataToJson(std::string &annotStr)
std::list< Point > PointArray
Definition: annotationbasedefines.h:19
void setSeqNum(uint32 i)
Definition: annotationobject.h:125
Definition: annotationbasedefines.h:42
int _one_width
Definition: annotationobject.h:303
virtual void CopyDataFrom(AnnotationObject *data)
bool HitTest(const Point &pt) override
std::string _font_style
Definition: annotationobject.h:308
virtual void SetEnable(bool enable=true)
Definition: annotationobject.h:95
virtual void CopyDataTo(room_pdu::AnnotationImg *pduimg)
rtc::CriticalSection * m_critSec
Definition: annotationobject.h:225
virtual void SetZoomMode(bool isZoom)
Definition: annotationobject.h:98
Definition: annotationobject.h:336
rtc::CriticalSection * map_crit_
Definition: annotationobject.h:256
Definition: annotationobject.h:287
bool HitTest(const Point &pt) override
virtual void SetLocalFile(const std::string &localfile)
int _font_unit
required
Definition: annotationobject.h:302
virtual void CopyDataFromEx(const room_pdu::AnnotationImg *pduimg)
Definition: annotationobject.h:198
Definition: annotationobject.h:212
std::string _local_file
Definition: annotationobject.h:285
AnnotationHighlightPoint()
Color fill_color_
Definition: annotationobject.h:139
Definition: annotationdefines.h:146
virtual void SetLineArrow(const LineArrowType &arrow)
Definition: annotationobject.h:94
bool HitTest(const Point &pt)
TxtInfo _txt
Definition: annotationobject.h:349
void CopyDataTo(room_pdu::Annotation2Point *pdu2point)
AnnotationObjectIds eraser_object_ids_
Definition: annotationobject.h:255
bool CopyDataFromJson(std::string annotStr) override
Definition: annotationobject.h:172
virtual void SetAnnotationRect(const Rect &rc)
Definition: annotationobject.h:97
Definition: annotationobject.h:205
void SetAnnotationId(const std::string &id)
Definition: annotationobject.h:118
bool CopyDataFromJson(std::string annotStr) override
std::string user_id_
Definition: annotationobject.h:147
void SetDisplayRect(const Rect &rc) override
Definition: annotationbasedefines.h:8
virtual AnnotationToolType ToolType()
Definition: annotationobject.h:101
bool HitTest(const Point &pt) override
bool owned_cursor_
Definition: annotationobject.h:131
void SetDisplayRect(const Rect &rc) override
std::string _extend_data
Definition: annotationobject.h:310
void CopyDataFromEx(const room_pdu::AnnotationMultiPoint *pdupoints)
void CopyDataTo(room_pdu::AnnotationList *pdulist)
virtual bool Draw(const AVDContext &context, bool paint)
Definition: annotationobject.h:103
std::vector< std::string > AnnotationObjectIds
Definition: annotationobject.h:152
bool touched_
Definition: annotationobject.h:132
Rect display_rect_
Definition: annotationobject.h:141
std::shared_ptr< DrawImgInfo > _img_info
Definition: annotationobject.h:284
Color GetLineColor()
Definition: annotationobject.h:124
LineArrowType
Definition: common.h:535
void clear()
Definition: annotationobject.h:324
virtual void CopyDataFrom(AnnotationObject *data)
Definition: annotationobject.h:104
virtual void SetDisplayRect(const Rect &rc)
AnnotationHighlightCircle()
Rect annotation_rect_
Definition: annotationobject.h:142
uint32 getSeqNum()
Definition: annotationobject.h:126
std::string object_id_
Definition: annotationobject.h:145
Definition: annotationobject.h:84
bool CopyDataToJson(std::string &annotStr) override
uint32 _radius
Definition: annotationobject.h:293
Definition: annotationobject.h:191
void CopyDataFrom(const room_pdu::AnnotationList *pdulist)
virtual ~AnnotationObject()
Definition: annotationobject.h:88
void SetEraserObjects(AnnotationObjects &eraserObjects)
void GetEraserObjs(AnnotationObjects &eraserObjects)
virtual bool HitTest(const Point &pt)
Definition: annotationobject.h:114
Definition: annotationobject.h:236
AnnotationToolType
Definition: common.h:495
Definition: annotationobject.h:167
Point point_to_
Definition: annotationobject.h:164
virtual bool HitTest(const Point &pt) override
Definition: annotationobject.h:262
void copyFrom(TxtInfo &ti)
Definition: annotationobject.h:312
std::string GetAnnotationId()
Definition: annotationobject.h:122
uint32 _seq_num
Definition: annotationobject.h:148
void CopyDataTo(room_pdu::AnnotationMultiPoint *pdupoints)
bool HitTest(const Point &pt) override
bool CopyDataToJson(std::string &annotStr) override
Definition: annotationobject.h:153
void CopyDataFromEx(const room_pdu::Annotation2Point *pdu2point)
bool HitTest(const Point &pt) override
Definition: annotationobject.h:250