UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtPointMark.H
1 /* ZtPointMark.H */
2 #ifndef __ZtPointMark_H
3 #define __ZtPointMark_H
4 
5 #include <zm/ZtObject.H>
6 
7 
9 typedef enum {
10  ZpmNone,
11  ZpmPlus,
12  ZpmWell,
13  ZpmSP,
14  ZpmCircle,
15  ZpmDoTriangle,
16  ZpmUpTriangle,
17  ZpmCross,
18  ZpmSquare,
19  ZpmRomb,
20  ZpmCircleCross
21 
22 } ZPointMarkType;
23 
24 
25 /***********************************************************************
26  * Create primitive mark object in pointed place.
27  ***********************************************************************/
28 class ZtPointMark : public ZtObject
29 {
30 protected:
31 
32  Logic bFillFlag;
33  ZPointMarkType eType;
34  int iScale;
35  float x_npp, y_npp;
36  char *comment;
38 public:
39 
41  ZtPointMark (ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
42  ZGroupId nxid, ZGroupId nyid);
43 
46  ZtPointMark (ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
47  ZDimension dim, ZGroupId nid);
48 
50  virtual ~ZtPointMark();
51 
53  void set_type (ZPointMarkType att_Type);
54 
56  ZPointMarkType get_type () const;
57 
60  void set_point (float x, float y = 0.0);
61 
63  void get_point (float *x, float *y = NULL);
64 
66  void set_fill_flag (Logic Fflag);
67 
69  Logic get_fill_flag () const;
70 
72  void set_magnification (int scale);
73 
75  int get_magnification () const;
76 
78  void set_mark_color (const char* szColorName);
79  void set_mark_color (ColorPixel cpixel);
80 
81  ColorPixel get_mark_color () const;
82 
86  void set_comment (const char* szComment,
87  int iLocFlag = (AttachLeft|AttachTop));
88 
90  const char *get_comment () const;
91 
92 
94  virtual void redraw ();
95 
97  void draw_mark (int x, int y) const;
98 
101  virtual Logic belong (int px, int py) const;
102 
104  virtual const char* class_id () const;
105 
106 };
107 
108 #endif /* ZtPointMark.H */
const char * get_comment() const
void set_mark_color(const char *szColorName)
float y_npp
Definition: ZtPointMark.H:35
virtual Logic belong(int px, int py) const
ZPointMarkType get_type() const
virtual const char * class_id() const
Definition: ZtMain.H:32
char * comment
Definition: ZtPointMark.H:36
void set_fill_flag(Logic Fflag)
Logic get_fill_flag() const
void get_point(float *x, float *y=NULL)
virtual ~ZtPointMark()
void draw_mark(int x, int y) const
int comment_loc
Definition: ZtPointMark.H:37
int get_magnification() const
void set_type(ZPointMarkType att_Type)
ZtPointMark(ZtMain *pManager, ZGroupId pxid, ZGroupId pyid, ZGroupId nxid, ZGroupId nyid)
Definition: ZtObject.H:57
Definition: ZtPointMark.H:28
ZPointMarkType eType
Definition: ZtPointMark.H:33
int iScale
Definition: ZtPointMark.H:34
Logic bFillFlag
Definition: ZtPointMark.H:32
void set_comment(const char *szComment, int iLocFlag=(AttachLeft|AttachTop))
void set_point(float x, float y=0.0)
ZPCoordSlave px
Definition: ZtObject.H:203
virtual void redraw()
void set_magnification(int scale)
ZPCoordSlave py
Definition: ZtObject.H:204