rtc.avd_SDK-C++  3.2.0
annotationdefines.h
浏览该文件的文档.
1 #ifndef RT_AnnotationDefines_H_
2 #define RT_AnnotationDefines_H_
3 
4 #include "common.h"
6 #include <map>
7 #include <memory>
8 #ifdef RT_WIN32
9 #include <objidl.h>
10 #endif
11 
12 using rtc::AvdWindowId;
13 using rtc::AvdDesktopId;
14 using rtc::LineArrowType;
16 
17 namespace rtcimp {
18 #ifndef LOG_FONT_FACE_NAME_SIZE
19 #define LOG_FONT_FACE_NAME_SIZE 32
20 #endif
21 
22 #ifndef DEFAULT_LINE_WIDTH
23 #define DEFAULT_LINE_WIDTH 1
24 #endif
25 #ifndef DEFAULT_LINE_COLOR
26 #define DEFAULT_LINE_COLOR 0xFF000000
27 #endif
28 #ifndef DEFAULT_BGROUNG_COLOR
29 #define DEFAULT_BGROUNG_COLOR 0xFF0000FF
30 #endif
31 #ifndef DEFAULT_FILL_COLOR
32 #define DEFAULT_FILL_COLOR 0xFF000000
33 #endif
34 
35  typedef struct tagLOGFONTA {
36  long lfHeight;
37  long lfWidth;
40  long lfWeight;
41  char lfItalic;
44  char lfCharSet;
47  char lfQuality;
50  }LogFont;
51 
52  enum directZone{
58  };
59  struct DrawImgInfo{
60  int _layer;
61  int _boder ;
64  int _rotation;
66  bool _isupdate ;
67  bool _enable;
68  float _x;
69  float _y;
70  float _w;
71  float _h;
72  std::string _id;
73  std::string _file;
74  std::string _url;
75 #ifdef RT_WIN32
76  void* _img;
77  HGLOBAL hMem;
78  BYTE* pMem;
79  IStream* pStream;
80 #endif
81 
82  DrawImgInfo(std::string file, Point p, int index,std::string id) : _w(300), _h(300){
83  _x = _y = _boder = 2;
84  _x += p.x;
85  _y += p.y;
86  _has_select = false;
87 
88  _file = file;
89  _rotation = 0;
90  _zoom_restor = 0;
91  _layer = index;
92  _id = id;
93  bool _isupdate = false;
94  _enable = true;
95  _zoom_times = 0;
96 #ifdef RT_WIN32
97  pStream = 0;
98  _img = nullptr;
99  hMem = 0;
100  pMem = 0;
101 #endif
102  }
104 #ifdef RT_WIN32
105  if (pStream)
106  pStream->Release();
107  if (hMem){
108  GlobalUnlock(hMem);
109  GlobalFree(hMem);
110  }
111 #endif
112  }
113  bool operator<(const DrawImgInfo& p) const{
114  return _id < p._id;
115  }
116  void getSize(float& x, float &y, float& w, float &h){
117  w = _w;
118  h = _h;
119  x = _x;
120  y = _y;
121  }
122  void getBoardSize(float& x, float &y, float& w, float &h){
123  x = _x + _boder;
124  y = _y + _boder;
125  w = _w - 2 * _boder;
126  h = _h - 2 * _boder;
127  }
128  directZone pointIn(const Point& pt);
129  void setNewsize(int ix, int iy, int iw, int ih){
130  _x = ix;
131  _y = iy;
132  _w = iw;
133  _h = ih;
134  }
135  };
136  static bool CalculateCheckMarkPoints(Point& pt1, Point& pt2, Point aPoints[]) {
137  aPoints[0].x = pt1.x;
138  aPoints[0].y = pt1.y + (pt2.y - pt1.y)*2.0 / 3.0;
139  aPoints[1].x = (pt1.x + pt2.x) / 2;
140  aPoints[1].y = pt2.y;
141  aPoints[2].x = pt2.x;
142  aPoints[2].y = pt1.y;
143  return true;
144  }
145 
146  class AVDContext {
147  public:
148  AVDContext();
149  virtual ~AVDContext() {}
150  virtual void setDrawWindowId(const AvdWindowId& id) { draw_window_id_ = id; }
151  virtual void setDisplayWindowId(const AvdWindowId& id) { display_window_id_ = id; }
152  virtual void setLineWidth(int width) { line_width_ = width; }
153  virtual void setLineColor(const Color& color) { line_color_ = color; }
154  virtual void setFillColor(const Color& color) { fill_color_ = color; }
155  virtual void setLineArrow(const LineArrowType& arrow) { line_arrow_ = arrow; }
156  virtual void setDisplayRect(const Rect& rc) { display_rect_ = rc; }
157  virtual void setAnnotationRect(const Rect& rc) { annotation_rect_ = rc; }
158  virtual void setZoomMode(bool isZoom) { zoom_ = isZoom; }
159  virtual std::string setNewfile(const std::string& file, const Point& pt);
160  virtual bool isDuplicatefile(const std::string&file);
161  LineArrowType lineArrow() const { return line_arrow_; }
162  int lineWidth() const { return line_width_; }
163  int displayWidth() const {
164  int width = 0;
165  if (0 != annotation_rect_.width()) {
166  width = line_width_ * (double)display_rect_.width() / annotation_rect_.width() + 0.5;
167  }
168  else if (0 != annotation_rect_.height()) {
169  width = line_width_ * (double)display_rect_.height() / annotation_rect_.height() + 0.5;
170  }
171  if (0 == width) {
172  width = 1;
173  }
174  return width;
175  }
178  Color lineColor() const { return line_color_; }
179  Color fillColor() const { return fill_color_; }
180  Rect displayRect() const { return display_rect_; }
182  bool zoomMode()const { return zoom_; }
183  std::string imgFile()const { return imgfile_; }
184  std::string curImgId()const { return curImgId_; }
185  std::shared_ptr<DrawImgInfo> getImg(const std::string& id)const;
186  std::string selectOneImg(Point pt);
187  int RemoveOneImg(const std::string& id);
188  int RemoveAllImg();
189  std::string ResetStatus();
190  void clear() {
197  display_rect_ = Rect();
199  //imgfile_ = L"";
200  //curImgId_ = 0;
201  //imgMp_.clear();
202  //startIndex_ = 0;
203  }
204 
205 
206  protected:
209  //not need initialize params
216  bool zoom_;
217  std::string imgfile_;
218  std::string curImgId_;
221  std::map<std::string, std::shared_ptr<DrawImgInfo>> imgMp_;
222  };
223 
227  template<class ItemType, int GrowSize>
229  public:
231  m_head = NULL;
232  m_allocSize = 0;
233  m_usedSize = 0;
234  }
235 
236  EMArrayBaseT2(const EMArrayBaseT2& other) {
237  m_head = NULL;
238  m_allocSize = 0;
239  m_usedSize = 0;
240 
241  *this = other;
242  }
243 
244  virtual ~EMArrayBaseT2() {
245  RemoveAll();
246  }
247 
248  public:
249  int GetCount() {
250  return m_usedSize;
251  }
252 
253  bool Add(ItemType item, bool bCheckDuplicate = false) {
254  if (Expand()) {
255  if (bCheckDuplicate && GetIndex(item) >= 0)
256  return false;
257 
258  m_head[m_usedSize++] = item;
259  return true;
260  }
261  return false;
262  }
263 
264  bool InsertAt(int nIndex, ItemType item) {
265  if (nIndex >= 0 && nIndex <= m_usedSize) {
266  if (!Expand())
267  return false;
268 
269  if (nIndex < m_usedSize)
270  memmove(&m_head[nIndex + 1], &m_head[nIndex],
271  sizeof(ItemType)*(m_usedSize - nIndex));
272 
273  m_head[nIndex] = item;
274  m_usedSize++;
275 
276  return true;
277  }
278  return false;
279  }
280 
281  bool Remove(ItemType item) {
282  int i = 0;
283  for (; i < m_usedSize; i++) {
284  if (Compare(m_head + i, &item)) {
285  break;
286  }
287  }
288 
289  if (i < m_usedSize) {
290  // found
291  if (i < m_usedSize - 1)
292  memcpy(&m_head[i], &m_head[i + 1],
293  sizeof(ItemType)*(m_usedSize - i - 1));
294  m_usedSize--;
295  return true;
296  }
297 
298  return false;
299  }
300 
301  bool RemoveAt(int i) {
302  if (i < m_usedSize) {
303  if (i < m_usedSize - 1)
304  memcpy(&m_head[i], &m_head[i + 1],
305  sizeof(ItemType)*(m_usedSize - i - 1));
306  m_usedSize--;
307  return true;
308  }
309  return false;
310  }
311 
312  void RemoveAll() {
313  if (m_head)
314  delete[]m_head;
315  m_head = NULL;
316  m_allocSize = 0;
317  m_usedSize = 0;
318  }
319 
321  RemoveAll();
322 
323  if (other.m_usedSize > 0) {
324  m_head = new ItemType[other.m_usedSize];
325  if (m_head) {
326  memcpy(m_head, other.m_head, sizeof(ItemType)*other.m_usedSize);
328  }
329  }
330 
331  return *this;
332  }
333 
334  ItemType operator [](int i) {
335  RT_ASSERTE(m_head != NULL);
336  ItemType retVal;
337  if (i >= 0 && i < m_usedSize) {
338  retVal = m_head[i];
339  }
340  return retVal;
341  }
342 
343  bool SetAt(int nIndex, ItemType item) {
344  RT_ASSERTE(nIndex >= 0 && nIndex < m_usedSize);
345 
346  if (nIndex >= 0 && nIndex < m_usedSize) {
347  m_head[nIndex] = item;
348 
349  return true;
350  }
351 
352  return false;
353  }
354 
355  int GetIndex(ItemType item) {
356  for (int i = 0; i < m_usedSize; i++) {
357  if (Compare(m_head + i, &item))
358  return i;
359  }
360 
361  return -1;
362  }
363 
364  ItemType* GetHead() {
365  return m_head;
366  }
367 
368  protected:
369  bool Compare(ItemType* item1, ItemType* item2) {
370  if (memcmp(item1, item2, sizeof(ItemType)) == 0)
371  return true;
372 
373  return false;
374  }
375 
376  bool Expand() {
377  if (m_usedSize >= m_allocSize) {
378  ItemType* ppNew = new ItemType[m_allocSize + GrowSize];
379  if (ppNew) {
380  if (m_head) {
381  memcpy(ppNew, m_head, sizeof(ItemType)*m_allocSize);
382  delete[]m_head;
383  }
384  m_head = ppNew;
385  m_allocSize += GrowSize;
386  return true;
387  }
388  return false;
389  }
390  return true;
391  }
392 
393  protected:
394  ItemType* m_head;
397  };
398  template<class ItemType, int GrowSize>
399  class EMArrayBaseT {
400  public:
402  m_ppHead = NULL;
403  m_nAlloc = 0;
404  m_nUsed = 0;
405  }
406 
407  EMArrayBaseT(const EMArrayBaseT& other) {
408  m_ppHead = NULL;
409  m_nAlloc = 0;
410  m_nUsed = 0;
411 
412  *this = other;
413  }
414 
415  virtual ~EMArrayBaseT() {
416  RemoveAll();
417  }
418 
419  public:
420  int GetCount() {
421  return m_nUsed;
422  }
423 
424  bool Add(ItemType item, bool bCheckDuplicate = false) {
425  if (Expand()) {
426  if (bCheckDuplicate && GetIndex(item) >= 0)
427  return false;
428 
429  m_ppHead[m_nUsed++] = item;
430  return true;
431  }
432  return false;
433  }
434 
435  bool InsertAt(int nIndex, ItemType item, bool bCheckDuplicate = false) {
436  if (bCheckDuplicate && GetIndex(item) >= 0)
437  return false;
438 
439  if (nIndex >= 0 && nIndex <= m_nUsed) {
440  if (!Expand())
441  return false;
442 
443  if (nIndex < m_nUsed)
444  memmove(&m_ppHead[nIndex + 1], &m_ppHead[nIndex],
445  sizeof(ItemType)*(m_nUsed - nIndex));
446 
447  m_ppHead[nIndex] = item;
448  m_nUsed++;
449 
450  return true;
451  }
452  return false;
453  }
454 
455  bool Remove(ItemType item) {
456  int i = 0;
457  for (i = 0; i < m_nUsed; i++) {
458  if (Compare(m_ppHead + i, &item)) {
459  break;
460  }
461  }
462 
463  if (i < m_nUsed) {
464  // found
465  if (i < m_nUsed - 1)
466  memcpy(&m_ppHead[i], &m_ppHead[i + 1],
467  sizeof(ItemType)*(m_nUsed - i - 1));
468  m_nUsed--;
469  return true;
470  }
471 
472  return false;
473  }
474 
475  bool RemoveAt(int i) {
476  if (i < m_nUsed) {
477  if (i < m_nUsed - 1)
478  memcpy(&m_ppHead[i], &m_ppHead[i + 1],
479  sizeof(ItemType)*(m_nUsed - i - 1));
480  m_nUsed--;
481  return true;
482  }
483  return false;
484  }
485 
486  void RemoveAll() {
487  if (m_ppHead)
488  delete[]m_ppHead;
489  m_ppHead = NULL;
490  m_nAlloc = 0;
491  m_nUsed = 0;
492  }
493 
495  RemoveAll();
496 
497  if (other.m_nUsed > 0) {
498  m_ppHead = new ItemType[other.m_nUsed];
499  if (m_ppHead) {
500  memcpy(m_ppHead, other.m_ppHead, sizeof(ItemType)*other.m_nUsed);
501  m_nAlloc = m_nUsed = other.m_nUsed;
502  }
503  }
504 
505  return *this;
506  }
507 
508  ItemType operator [](int i) {
509  ItemType retVal = NULL;
510 
511  if (i >= 0 && i < m_nUsed) {
512  retVal = m_ppHead[i];
513  }
514 
515  return retVal;
516  }
517 
518  bool SetAt(int nIndex, ItemType item) {
519  if (nIndex >= 0 && nIndex < m_nUsed) {
520  m_ppHead[nIndex] = item;
521 
522  return true;
523  }
524 
525  return false;
526  }
527 
528  int GetIndex(ItemType item) {
529  switch (sizeof(ItemType)) {
530  case 4:
531  {
532  int dwItem = (int)item;
533  for (int i = 0; i < m_nUsed; i++) {
534  if (((int)m_ppHead[i]) == dwItem)
535  return i;
536  }
537  }
538  break;
539  case 2:
540  {
541  short wItem = (short)item;
542  for (int i = 0; i < m_nUsed; i++) {
543  if (((short)m_ppHead[i]) == wItem)
544  return i;
545  }
546  }
547  break;
548  case 1:
549  {
550  char cbItem = (char)item;
551  for (int i = 0; i < m_nUsed; i++) {
552  if (((char)m_ppHead[i]) == cbItem)
553  return i;
554  }
555  }
556  break;
557  default:
558  for (int i = 0; i < m_nUsed; i++) {
559  if (Compare(m_ppHead + i, &item))
560  return i;
561  }
562  break;
563  }
564 
565  return -1;
566  }
567 
568  ItemType* GetHead() {
569  return m_ppHead;
570  }
571 
572  protected:
573  bool Compare(ItemType* item1, ItemType* item2) {
574  if (memcmp(item1, item2, sizeof(ItemType)) == 0)
575  return true;
576 
577  return false;
578  }
579 
580  bool Expand() {
581  if (m_nUsed >= m_nAlloc) {
582  ItemType* ppNew = new ItemType[m_nAlloc + GrowSize];
583  if (ppNew) {
584  memset(ppNew, 0, (m_nAlloc + GrowSize)*sizeof(ItemType));
585 
586  if (m_ppHead) {
587  memcpy(ppNew, m_ppHead, sizeof(ItemType)*m_nAlloc);
588  delete[]m_ppHead;
589  }
590  m_ppHead = ppNew;
591  m_nAlloc += GrowSize;
592  return true;
593  }
594  return false;
595  }
596  return true;
597  }
598 
599  protected:
600  ItemType* m_ppHead;
601  int m_nAlloc;
602  int m_nUsed;
603  };
604  template <class ItemType>
606  public:
607  EMDynamicBuffer(uint32 nSize = 1024) {
608  m_pHead = NULL;
609  m_nSize = 0;
610  SetSize(nSize);
611  }
612 
614  Reset();
615  }
616 
617  void Reset() {
618  if (m_pHead)
619  delete[]m_pHead;
620  m_pHead = NULL;
621  m_nSize = 0;
622  }
623 
624  int GetSize() {
625  return m_nSize;
626  }
627 
628  bool SetSize(uint32 nSize) {
629  if (nSize > m_nSize) {
630  ItemType* pNewHead = new ItemType[nSize];
631  if (pNewHead) {
632  memset(pNewHead, 0, sizeof(ItemType)*nSize);
633  if (m_pHead) {
634  memcpy(pNewHead, m_pHead, sizeof(ItemType)*m_nSize);
635  delete[]m_pHead;
636  }
637 
638  m_pHead = pNewHead;
639  m_nSize = nSize;
640  return true;
641  }
642  return false;
643  }
644  return true;
645  }
646 
647  ItemType* GetHead() {
648  return m_pHead;
649  }
650  operator ItemType* () { return m_pHead; }
651 
652  protected:
653  ItemType* m_pHead;
655  };
656 }
657 #endif //RT_AnnotationDefines_H_
std::string selectOneImg(Point pt)
static AvdWindowId Cast(uint64 id)
Definition: common.h:425
char lfUnderline
Definition: annotationdefines.h:42
~EMDynamicBuffer()
Definition: annotationdefines.h:613
Rect annotation_rect_
Definition: annotationdefines.h:215
ItemType * m_ppHead
Definition: annotationdefines.h:600
ItemType * m_pHead
Definition: annotationdefines.h:653
Rect display_rect_
Definition: annotationdefines.h:214
int width() const
Definition: annotationbasedefines.h:32
int lineWidth() const
Definition: annotationdefines.h:162
Color lineColor() const
Definition: annotationdefines.h:178
Definition: annotationdefines.h:399
int GetCount()
Definition: annotationdefines.h:249
bool _isupdate
Definition: annotationdefines.h:66
int m_nAlloc
Definition: annotationdefines.h:601
virtual ~EMArrayBaseT2()
Definition: annotationdefines.h:244
std::map< std::string, std::shared_ptr< DrawImgInfo > > imgMp_
Definition: annotationdefines.h:221
#define LOG_FONT_FACE_NAME_SIZE
Definition: annotationdefines.h:19
virtual ~EMArrayBaseT()
Definition: annotationdefines.h:415
LineArrowType line_arrow_
Definition: annotationdefines.h:207
bool InsertAt(int nIndex, ItemType item)
Definition: annotationdefines.h:264
void getBoardSize(float &x, float &y, float &w, float &h)
Definition: annotationdefines.h:122
Definition: annotationbasedefines.h:12
int _zoom_times
Definition: annotationdefines.h:62
int GetIndex(ItemType item)
Definition: annotationdefines.h:528
std::string imgFile() const
Definition: annotationdefines.h:183
int x
Definition: annotationbasedefines.h:13
鼠标在图片内
Definition: annotationdefines.h:55
char lfPitchAndFamily
Definition: annotationdefines.h:48
bool SetAt(int nIndex, ItemType item)
Definition: annotationdefines.h:343
char lfStrikeOut
Definition: annotationdefines.h:43
bool RemoveAt(int i)
Definition: annotationdefines.h:475
long lfWeight
Definition: annotationdefines.h:40
virtual bool isDuplicatefile(const std::string &file)
virtual void setDisplayRect(const Rect &rc)
Definition: annotationdefines.h:156
bool zoomMode() const
Definition: annotationdefines.h:182
int layermax_
Definition: annotationdefines.h:220
unsigned int uint32
Definition: defines.h:387
区域对象信息结构.
Definition: annotationbasedefines.h:24
int y
Definition: annotationbasedefines.h:14
ItemType operator [](int i)
Definition: annotationdefines.h:508
int _zoom_restor
Definition: annotationdefines.h:63
bool Compare(ItemType *item1, ItemType *item2)
Definition: annotationdefines.h:369
EMArrayBaseT2(const EMArrayBaseT2 &other)
Definition: annotationdefines.h:236
virtual void setFillColor(const Color &color)
Definition: annotationdefines.h:154
bool Add(ItemType item, bool bCheckDuplicate=false)
Definition: annotationdefines.h:424
void getSize(float &x, float &y, float &w, float &h)
Definition: annotationdefines.h:116
鼠标在右边框内
Definition: annotationdefines.h:56
float _x
Definition: annotationdefines.h:68
void Reset()
Definition: annotationdefines.h:617
#define DEFAULT_LINE_WIDTH
Definition: annotationdefines.h:23
virtual void setLineWidth(int width)
Definition: annotationdefines.h:152
鼠标在下边框内
Definition: annotationdefines.h:57
Definition: annotationbasedefines.h:42
int _boder
Definition: annotationdefines.h:61
Definition: annotationdefines.h:605
long lfOrientation
Definition: annotationdefines.h:39
#define DEFAULT_LINE_COLOR
Definition: annotationdefines.h:26
float _h
Definition: annotationdefines.h:71
int GetIndex(ItemType item)
Definition: annotationdefines.h:355
Rect annotationRect() const
Definition: annotationdefines.h:181
directZone
Definition: annotationdefines.h:52
bool _has_select
Definition: annotationdefines.h:65
std::string imgfile_
Definition: annotationdefines.h:217
bool Add(ItemType item, bool bCheckDuplicate=false)
Definition: annotationdefines.h:253
long lfHeight
Definition: annotationdefines.h:36
virtual void setDrawWindowId(const AvdWindowId &id)
Definition: annotationdefines.h:150
EMArrayBaseT(const EMArrayBaseT &other)
Definition: annotationdefines.h:407
void clear()
Definition: annotationdefines.h:190
Definition: annotationdefines.h:59
bool Remove(ItemType item)
Definition: annotationdefines.h:455
virtual void setLineArrow(const LineArrowType &arrow)
Definition: annotationdefines.h:155
Definition: annotationdefines.h:146
EMArrayBaseT & operator=(const EMArrayBaseT &other)
Definition: annotationdefines.h:494
bool Remove(ItemType item)
Definition: annotationdefines.h:281
int line_width_
Definition: annotationdefines.h:208
char lfQuality
Definition: annotationdefines.h:47
virtual void setDisplayWindowId(const AvdWindowId &id)
Definition: annotationdefines.h:151
int startIndex_
Definition: annotationdefines.h:219
uint32 m_nSize
Definition: annotationdefines.h:654
std::string curImgId() const
Definition: annotationdefines.h:184
Definition: common.h:536
int _rotation
Definition: annotationdefines.h:64
bool operator<(const DrawImgInfo &p) const
Definition: annotationdefines.h:113
long lfWidth
Definition: annotationdefines.h:37
ItemType * GetHead()
Definition: annotationdefines.h:647
void setNewsize(int ix, int iy, int iw, int ih)
Definition: annotationdefines.h:129
#define RT_ASSERTE(expr)
Definition: defines.h:270
Definition: annotationbasedefines.h:8
directZone pointIn(const Point &pt)
Definition: annotationdefines.h:53
bool InsertAt(int nIndex, ItemType item, bool bCheckDuplicate=false)
Definition: annotationdefines.h:435
struct rtcimp::tagRect Rect
区域对象信息结构.
~DrawImgInfo()
Definition: annotationdefines.h:103
bool Expand()
Definition: annotationdefines.h:580
Definition: annotationdefines.h:35
std::shared_ptr< DrawImgInfo > getImg(const std::string &id) const
DrawImgInfo(std::string file, Point p, int index, std::string id)
Definition: annotationdefines.h:82
virtual ~AVDContext()
Definition: annotationdefines.h:149
ItemType * m_head
Definition: annotationdefines.h:394
int m_nUsed
Definition: annotationdefines.h:602
float _w
Definition: annotationdefines.h:70
AvdWindowId drawWindowId() const
Definition: annotationdefines.h:177
int m_allocSize
Definition: annotationdefines.h:395
bool _enable
Definition: annotationdefines.h:67
bool RemoveAt(int i)
Definition: annotationdefines.h:301
std::string curImgId_
Definition: annotationdefines.h:218
Definition: common.h:412
Rect displayRect() const
Definition: annotationdefines.h:180
void RemoveAll()
Definition: annotationdefines.h:486
LineArrowType
Definition: common.h:535
bool Expand()
Definition: annotationdefines.h:376
AvdWindowId draw_window_id_
Definition: annotationdefines.h:211
char lfOutPrecision
Definition: annotationdefines.h:45
float _y
Definition: annotationdefines.h:69
bool SetAt(int nIndex, ItemType item)
Definition: annotationdefines.h:518
ItemType operator [](int i)
Definition: annotationdefines.h:334
std::string _file
Definition: annotationdefines.h:73
char lfClipPrecision
Definition: annotationdefines.h:46
int GetSize()
Definition: annotationdefines.h:624
int displayWidth() const
Definition: annotationdefines.h:163
char lfFaceName[32]
Definition: annotationdefines.h:49
virtual std::string setNewfile(const std::string &file, const Point &pt)
LineArrowType lineArrow() const
Definition: annotationdefines.h:161
std::string _id
Definition: annotationdefines.h:72
int _layer
Definition: annotationdefines.h:60
EMArrayBaseT()
Definition: annotationdefines.h:401
#define DEFAULT_FILL_COLOR
Definition: annotationdefines.h:32
std::string ResetStatus()
struct rtcimp::tagPoint Point
bool Compare(ItemType *item1, ItemType *item2)
Definition: annotationdefines.h:573
鼠标在图片之外的区域
Definition: annotationdefines.h:54
AvdWindowId display_window_id_
Definition: annotationdefines.h:210
ItemType * GetHead()
Definition: annotationdefines.h:568
virtual void setZoomMode(bool isZoom)
Definition: annotationdefines.h:158
Color fillColor() const
Definition: annotationdefines.h:179
堆数组模板类.
Definition: annotationdefines.h:228
EMArrayBaseT2()
Definition: annotationdefines.h:230
virtual void setAnnotationRect(const Rect &rc)
Definition: annotationdefines.h:157
virtual void setLineColor(const Color &color)
Definition: annotationdefines.h:153
EMDynamicBuffer(uint32 nSize=1024)
Definition: annotationdefines.h:607
AvdWindowId dispayWindowId() const
Definition: annotationdefines.h:176
bool SetSize(uint32 nSize)
Definition: annotationdefines.h:628
ItemType * GetHead()
Definition: annotationdefines.h:364
int RemoveOneImg(const std::string &id)
Color fill_color_
Definition: annotationdefines.h:213
void RemoveAll()
Definition: annotationdefines.h:312
struct rtcimp::tagLOGFONTA LogFont
EMArrayBaseT2 & operator=(const EMArrayBaseT2 &other)
Definition: annotationdefines.h:320
bool zoom_
Definition: annotationdefines.h:216
std::string _url
Definition: annotationdefines.h:74
Color line_color_
Definition: annotationdefines.h:212
int GetCount()
Definition: annotationdefines.h:420
int m_usedSize
Definition: annotationdefines.h:396
char lfCharSet
Definition: annotationdefines.h:44
char lfItalic
Definition: annotationdefines.h:41
int height() const
Definition: annotationbasedefines.h:33
long lfEscapement
Definition: annotationdefines.h:38