UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtLines.H
1 /* ZtLines.H */
2 /* $Id: ZtLines.H,v 3.1 2004/05/28 13:19:34 vlad Exp $ */
3 #ifndef __ZtLines_H
4 #define __ZtLines_H
5 
6 #include <zm/ZtObject.H>
7 
8 
11 {
12  float x1, y1;
13  float x2, y2;
14 };
15 
16 
17 #define AnyType ZNaturalLine
18 #define AnyAr ZNaturalLines
19 #include <mix/AnyAr.H>
20 
21 
26 class ZtLines: public ZtObject
27 {
28 public:
29 
31  ZNaturalLines lines;
32 
33 
35  ZtLines (ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
36  ZGroupId nxid, ZGroupId nyid);
37 
39  ZtLines (const ZtLines& zobj);
40 
42  virtual void redraw ();
43 
46  virtual Logic belong (int px, int py) const;
47 
49  virtual int which_belong (int px, int py) const;
50 
52  virtual const char* class_id () const;
53 
54 };
55 
56 
57 #endif /* ZtLines.H */
ZNaturalLines lines
Definition: ZtLines.H:31
virtual void redraw()
Definition: ZtMain.H:32
virtual const char * class_id() const
virtual Logic belong(int px, int py) const
Definition: ZtLines.H:10
ZtLines(ZtMain *pManager, ZGroupId pxid, ZGroupId pyid, ZGroupId nxid, ZGroupId nyid)
virtual int which_belong(int px, int py) const
float y1
Definition: ZtLines.H:12
Definition: ZtObject.H:57
float y2
Definition: ZtLines.H:13
Definition: ZtLines.H:26
ZPCoordSlave px
Definition: ZtObject.H:203
ZPCoordSlave py
Definition: ZtObject.H:204