1 #ifndef RT_AnnotationObject_H_
2 #define RT_AnnotationObject_H_
12 class AnnotationObject;
13 class Annotation2Point;
14 class AnnotationMultiPoint;
82 virtual void SetEnable(
bool enable =
true) { enable_ = enable; }
92 virtual void CopyDataTo(room_pdu::AnnotationObject* pduobject);
93 virtual void CopyDataFrom(
const room_pdu::AnnotationObject* pduobject);
96 virtual bool CopyDataFromJson(std::string annotStr);
97 virtual bool CopyDataToJson(std::string& annotStr);
102 void SetUserId(
const std::string&
id) { user_id_ = id; }
141 virtual void CopyDataFrom(
const room_pdu::Annotation2Point* pdu2point);
142 virtual void CopyDataFromEx(
const room_pdu::Annotation2Point* pdu2point);
143 virtual void CopyDataTo(room_pdu::Annotation2Point* pdu2point);
200 virtual void CopyDataFrom(
const room_pdu::AnnotationMultiPoint* pdupoints);
201 virtual void CopyDataFromEx(
const room_pdu::AnnotationMultiPoint* pdupoints);
202 virtual void CopyDataTo(room_pdu::AnnotationMultiPoint* pdupoints);
227 virtual void CopyDataFrom(
const room_pdu::AnnotationList* pdulist);
228 virtual void CopyDataTo(room_pdu::AnnotationList* pdulist);
248 #endif//RT_AnnotationObject_H_
bool HitTest(const Point &pt)
bool owned_cursor_
Definition: annotationobject.h:116
virtual bool CopyDataToJson(std::string &annotStr)
LineArrowType line_arrow_
Definition: annotationobject.h:115
virtual bool HitTest(const Point &pt)
virtual void SetZoomMode(bool isZoom)
Definition: annotationobject.h:85
Definition: annotationobject.h:218
Definition: annotationbasedefines.h:23
Definition: annotationobject.h:197
bool HitTest(const Point &pt)
std::vector< AnnotationObject * > AnnotationObjects
Definition: annotationobject.h:136
void CopyDataFrom(AnnotationObject *data)
Definition: annotationobject.h:226
uint32 _seq_num
Definition: annotationobject.h:133
Definition: annotationdefines.h:55
virtual void SetDisplayRect(const Rect &rc)
void setSeqNum(uint32 i)
Definition: annotationobject.h:110
Definition: annotationobject.h:11
void SetEraserObjects(AnnotationObjects &eraserObjects)
virtual bool IsEnable()
Definition: annotationobject.h:86
Definition: annotationobject.h:240
Definition: annotationobject.h:163
virtual bool CopyDataToJson(std::string &annotStr)
Color GetLineColor()
Definition: annotationobject.h:109
#define RT_API_EXPORT
Definition: defines.h:188
AnnotationObjects eraser_objects_
Definition: annotationobject.h:233
bool HitTest(const Point &pt)
void SetObjectId(const std::string &id)
Definition: annotationobject.h:104
std::string user_id_
Definition: annotationobject.h:132
unsigned int uint32
Definition: defines.h:393
Color line_color_
Definition: annotationobject.h:123
Rect annotation_rect_
Definition: annotationobject.h:127
AnnotationHighlightPoint()
void GetEraserObjectIds(AnnotationObjectIds &eraserObjectIds)
virtual ~AnnotationObject()
Definition: annotationobject.h:75
Definition: annotationobject.h:183
virtual void CopyDataFrom(AnnotationObject *data)
Definition: annotationobject.h:91
std::list< Point > PointArray
Definition: annotationbasedefines.h:18
void MoveOnly(const Point &movePt)
Definition: annotationobject.h:233
virtual void SetFillColor(Color color)
Definition: annotationobject.h:80
virtual void CopyDataFromEx(const room_pdu::AnnotationMultiPoint *pdupoints)
AnnotationToolType tool_type_
Definition: annotationobject.h:114
Definition: annotationobject.h:210
virtual void SetAnnotationRect(const Rect &rc)
Definition: annotationobject.h:84
virtual void CopyDataTo(room_pdu::AnnotationMultiPoint *pdupoints)
Definition: annotationobject.h:8
bool touched_
Definition: annotationobject.h:117
PointArray points_
Definition: annotationobject.h:207
virtual bool Draw(const AVDContext &context, bool paint)
Definition: annotationobject.h:90
std::string GetAnnotationId()
Definition: annotationobject.h:107
bool HitTest(const Point &pt)
Definition: annotationobject.h:138
Definition: annotationobject.h:152
std::string annotation_id_
Definition: annotationobject.h:131
Definition: annotationbasedefines.h:41
Definition: annotationbasedefines.h:7
bool HitTest(const Point &pt)
virtual void CopyDataFrom(AnnotationObject *data)
Definition: annotationobject.h:176
virtual void CopyDataFromEx(const room_pdu::Annotation2Point *pdu2point)
bool zoom_
Definition: annotationobject.h:119
Definition: annotationobject.h:190
Definition: annotationobject.h:157
std::vector< std::string > AnnotationObjectIds
Definition: annotationobject.h:137
virtual void SetLineArrow(const LineArrowType &arrow)
Definition: annotationobject.h:81
LineArrowType
Definition: common.h:499
virtual void SetEnable(bool enable=true)
Definition: annotationobject.h:82
Rect object_rect_
Definition: annotationobject.h:125
Definition: annotationobject.h:169
uint32 getSeqNum()
Definition: annotationobject.h:111
virtual bool Is(AnnotationToolType type)
Definition: annotationobject.h:87
virtual bool HitTest(const Point &pt)
Definition: annotationobject.h:99
Color fill_color_
Definition: annotationobject.h:124
virtual void SetLineColor(Color color)
Definition: annotationobject.h:79
bool enable_
Definition: annotationobject.h:118
std::string GetUserId()
Definition: annotationobject.h:106
virtual bool CopyDataFromJson(std::string annotStr)
virtual bool HitTest(const Point &pt)
Definition: annotationobject.h:243
bool HitTest(const Point &pt)
Definition: annotationobject.h:231
Rect display_rect_
Definition: annotationobject.h:126
Point point_from_
Definition: annotationobject.h:148
std::string object_id_
Definition: annotationobject.h:130
virtual void CopyDataFrom(AnnotationObject *data)
std::string GetObjectId()
Definition: annotationobject.h:108
int line_width_
Definition: annotationobject.h:120
virtual void CopyDataTo(room_pdu::Annotation2Point *pdu2point)
virtual void SetLineWidth(int width)
Definition: annotationobject.h:78
AnnotationToolType
Definition: common.h:482
Definition: annotationbasedefines.h:11
virtual void CopyDataTo(room_pdu::AnnotationList *pdulist)
void SetAnnotationId(const std::string &id)
Definition: annotationobject.h:103
AnnotationObjectIds eraser_object_ids_
Definition: annotationobject.h:236
virtual bool CopyDataFromJson(std::string annotStr)
Point point_to_
Definition: annotationobject.h:149
rtcbase::CriticalSection * map_crit_
Definition: annotationobject.h:237
virtual void SetDisplayRect(const Rect &rc)
bool HitTest(const Point &pt)
bool Draw(const AVDContext &context, bool paint)
Definition: annotationobject.h:232
virtual bool Draw(const AVDContext &context, bool paint)
Definition: annotationobject.h:244
virtual AnnotationToolType ToolType()
Definition: annotationobject.h:88
Definition: annotationobject.h:71
virtual void SetDisplayRect(const Rect &rc)
Definition: annotationobject.h:83
bool HitTest(const Point &pt)
void SetUserId(const std::string &id)
Definition: annotationobject.h:102