UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtHighlight.H
1 /* ZtHighlight.H */
2 /* $Id: ZtHighlight.H,v 3.3 2004/02/17 13:53:37 vlad Exp $ */
3 #ifndef __ZtHighlight_H
4 #define __ZtHighlight_H
5 
6 #include <zm/ZtObject.H>
7 
8 typedef enum
9 {
10  ZM_PIXEL_HIGHLIGHT,
11  ZM_NATURAL_HIGHLIGHT,
12  ZM_NO_HIGHLIGHT
13 
14 } HighlightType;
15 
16 /***********************************************************************
17  * Класс, который может выделить одну натуральнуюпиксельную область * особым цветом */ class ZtHighlight : public ZtObject { protected: HighlightType iHKind; int iPx[2],iPy[2]; float fNx[2],fNy[2]; public: /* Only pixel sizes */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid); /* One dimension is proportional */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid, ZDimension dim, ZGroupId nid); /* Both dimensions are proportional */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid, ZGroupId nxid, ZGroupId nyid); virtual ~ZtHighlight (); void get_highlighted (HighlightType &hk, float x[2], float y[2]) const; void set_natural_highlighted_range (float x[2], float y[2]); void set_pixel_highlighted_range (int x[2], int y[2]); void unset_highlighted (); /* Direct draw procedure: if size, place or parameters are changed */ virtual void redraw (); /** Self-identification. */ virtual const char* class_id () const; }; #endif /* ZtHighlight.H */ /пиксельную область * особым цветом */ class ZtHighlight : public ZtObject { protected: HighlightType iHKind; int iPx[2],iPy[2]; float fNx[2],fNy[2]; public: /* Only pixel sizes */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid); /* One dimension is proportional */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid, ZDimension dim, ZGroupId nid); /* Both dimensions are proportional */ ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid, ZGroupId nxid, ZGroupId nyid); virtual ~ZtHighlight (); void get_highlighted (HighlightType &hk, float x[2], float y[2]) const; void set_natural_highlighted_range (float x[2], float y[2]); void set_pixel_highlighted_range (int x[2], int y[2]); void unset_highlighted (); /* Direct draw procedure: if size, place or parameters are changed */ virtual void redraw (); /** Self-identification. */ virtual const char* class_id () const; }; #endif /* ZtHighlight.H */
18  * особым цветом
19  */
20 class ZtHighlight : public ZtObject
21 {
22 protected:
23 
24  HighlightType iHKind;
25  int iPx[2],iPy[2];
26  float fNx[2],fNy[2];
27 
28 public:
29 
30  /* Only pixel sizes */
31  ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid);
32 
33  /* One dimension is proportional */
34  ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
35  ZDimension dim, ZGroupId nid);
36 
37  /* Both dimensions are proportional */
38  ZtHighlight(ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
39  ZGroupId nxid, ZGroupId nyid);
40  virtual ~ZtHighlight ();
41 
42  void get_highlighted (HighlightType &hk, float x[2], float y[2]) const;
43  void set_natural_highlighted_range (float x[2], float y[2]);
44  void set_pixel_highlighted_range (int x[2], int y[2]);
45  void unset_highlighted ();
46 
47  /* Direct draw procedure: if size, place or parameters are changed */
48  virtual void redraw ();
49 
51  virtual const char* class_id () const;
52 
53 };
54 
55 #endif /* ZtHighlight.H */
Definition: ZtMain.H:32
virtual const char * class_id() const
Definition: ZtHighlight.H:20
Definition: ZtObject.H:57
virtual void redraw()