UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtCurveDev.H
1 /* ZtCurveDev.H */
2 /* $Id: ZtCurveDev.H,v 1.2 2004/02/17 13:53:36 vlad Exp $ */
3 #ifndef __ZtCurveDev_H
4 #define __ZtCurveDev_H
5 
6 #include <zm/ZtCurve.H>
7 
8 
9 /*************************************************************
10  * Object for deviation curve drawing in linear or stairs
11  * interpolation. Deviation means setting base level (0 by
12  * default) to draw on two sides from it.
13  *************************************************************/
14 class ZtCurveDev : public ZtCurve
15 {
16 protected:
17 
18  float dev_level;
19 
20 public:
21 
22  /* Curve constructor. Argument zdVertical means nyid is arg and
23  nxid is function; zdHorizontal means another orientation. */
24  ZtCurveDev (ZtMain* pManager,
25  ZGroupId pxid, ZGroupId pyid,
26  ZGroupId nxid, ZGroupId nyid,
27  ZDimension argument);
28 
29  /* Context for filling deviation. */
30  ZGEnv fill;
31 
32  /* Direct draw procedure: if size, place or parameters are changed */
33  virtual void redraw ();
34 
35  /* Set base level for curve */
36  void set_dev_level (float level)
37  {
38  dev_level = level;
39  changes();
40  }
41 
42  /* Get base level for curve */
43  float get_dev_level () const
44  {
45  return dev_level;
46  }
47 
49  virtual const char* class_id () const;
50 
51 };
52 
53 
54 #endif /* ZtCurveDev.H */
virtual const char * class_id() const
Definition: ZBase.H:156
Definition: ZtMain.H:32
Definition: ZtCurveDev.H:14
void changes()
Definition: ZtCurve.H:15
virtual void redraw()