Salome HOME
new files added
[modules/gui.git] / src / GLViewer / GLViewer_BaseDrawers.h
1 // File:      GLViewer_BaseDrawers.h
2 // Created:   November, 2004
3 // Author:    OCC team
4 // Copyright (C) CEA 2004
5
6 #ifndef GLVIEWER_BASEDRAWERS_H
7 #define GLVIEWER_BASEDRAWERS_H
8
9 #include <qcolor.h>
10 #include <qobject.h>
11 #include <qfile.h>
12 #include <qfont.h>
13 #include <qgl.h>
14
15 #include "GLViewer.h"
16 #include "GLViewer_Drawer.h"
17
18 class GLViewer_AspectLine;
19
20 #ifdef WNT
21 #pragma warning( disable:4251 )
22 #endif
23
24 // Class:   GLViewer_MarkerDrawer
25 // Descr:   Drawer for GLViewer_MarkerSet
26
27 class GLVIEWER_API GLViewer_MarkerDrawer : public GLViewer_Drawer  
28 {
29 public:
30   GLViewer_MarkerDrawer();
31   ~GLViewer_MarkerDrawer();
32   
33   virtual void       create( float, float, bool );
34   
35 private:
36   void               drawMarker( float&, float&, float&, QColor&, GLViewer_AspectLine* );
37 };
38
39 // Class:   GLViewer_PolylineDrawer
40 // Descr:   Drawer for GLViewer_Polyline
41
42 class GLVIEWER_API GLViewer_PolylineDrawer : public GLViewer_Drawer  
43 {
44 public:
45   GLViewer_PolylineDrawer();
46   ~GLViewer_PolylineDrawer();
47   
48   virtual void       create( float, float, bool );    
49 };
50
51 // Class:   GLViewer_TextDrawer
52 // Descr:   
53
54 class GLVIEWER_API GLViewer_TextDrawer: public GLViewer_Drawer
55 {
56   
57 public:
58   GLViewer_TextDrawer();
59   ~GLViewer_TextDrawer();
60   
61   virtual void              create( float, float, bool );
62   void                      updateObjects(); //after update font
63 };
64
65 #ifdef WNT
66 #pragma warning ( default:4251 )
67 #endif
68
69 #endif