UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
XSR.H
1 // XSR.H $Revision: 1.4 $ $Date: 1998/05/13 16:00:07 $
2 
3 #if !defined __XSR_H
4 
5 #define __XSR_H
6 
7 
8 #include <zm/Scaler.H>
9 #include <zm/XDR.H>
10 
11 
12 /*************************************************************
13  * X Scalable Rectangle
14  *************************************************************/
15 
16 class XSR : public XDR
17 {
18 protected:
19 
20  Scaler *pVer;
21  Scaler *pHor;
22 
23 public:
24 
25  XSR (const XDO& xdo, Scaler* p_hor, Scaler* p_ver);
26 
27  // Geometry synchronization with current values of scalers
28  void geometry_sync ();
29 
30  // Access to internal scales
31  Scaler& hor () {return *pHor;};
32  Scaler& ver () {return *pVer;};
33 
34  // Drawing with value coords
35  void draw_scaled_line (float h1, float v1, float h2, float v2);
36  void draw_scaled_point (float h, float v);
37 
38 };
39 
40 #endif // XSR.H
Definition: XSR.H:16
Definition: XDO.H:16
Definition: Scaler.H:15
Definition: XDR.H:57