UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtGrid.H
1 /* ZtGrid.H */
2 /* $Id: ZtGrid.H,v 3.4 2005/07/18 07:16:56 nikita Exp $ */
3 #ifndef __ZtGrid_H
4 #define __ZtGrid_H
5 
6 
7 #include <zm/ZtObject.H>
8 #include <zm/ZtScale.H>
9 
10 
11 /***********************************************************************
12  * One-dimension grid.
13  * - zdVertical means horizontal lines of grid
14  * - zdHorizontal means vertical lines of grid
15  ***********************************************************************/
16 class ZtGrid : public ZtObject
17 {
18 public:
19 
20  ZtGrid (ZtMain* pManager, ZGroupId pxid, ZGroupId pyid,
21  ZDimension dim, ZGroupId nid);
22 
23  /* setup parameters from scale */
24  void set_from_scale (const ZtScale* pScale);
25 
26  /* 0.0 - make it off */
27  void set_main_step (float val);
28  float get_main_step () const;
29 
30  /* 0 - make it off */
31  void set_dash_freq (int cnt);
32  int get_dash_freq () const;
33 
36  void set_sync_scale (ZtScale* pScale);
37 
40  ZtScale* get_sync_scale () const;
41 
42  /* Non-trivial expose */
43  virtual void redraw ();
44 
46  virtual const char* class_id () const;
47 
48 protected:
49 
56 
57 };
58 
59 
60 
61 #endif /* ZtGrid.H */
62 
63 
64 
65 
float main_grid_step
Definition: ZtGrid.H:50
void set_sync_scale(ZtScale *pScale)
Definition: ZtGrid.H:16
virtual void redraw()
Definition: ZtMain.H:32
Definition: ZtScale.H:16
virtual const char * class_id() const
ZtScale * get_sync_scale() const
Definition: ZtObject.H:57
int sec_grid_freq
Definition: ZtGrid.H:51
ZtScale * scale
Definition: ZtGrid.H:55