1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // Author : OPEN CASCADE
23 // File: GLViewer_BaseDrawers.h
24 // Created: November, 2004
26 #ifndef GLVIEWER_BASEDRAWERS_H
27 #define GLVIEWER_BASEDRAWERS_H
32 #include "GLViewer_Drawer.h"
34 class GLViewer_AspectLine;
37 #pragma warning( disable:4251 )
41 \class GLViewer_MarkerDrawer
42 Drawer for GLViewer_MarkerSet
45 class GLVIEWER_API GLViewer_MarkerDrawer : public GLViewer_Drawer
48 GLViewer_MarkerDrawer();
49 ~GLViewer_MarkerDrawer();
52 virtual void create( float, float, bool );
55 //! Draws marker in point (x,y) of \param radius with \param color and \param aspect
56 void drawMarker( float& x, float& y, float& radius, QColor& color, GLViewer_AspectLine* aspect );
60 \class GLViewer_PolylineDrawer
61 Drawer for GLViewer_Polyline
64 class GLVIEWER_API GLViewer_PolylineDrawer : public GLViewer_Drawer
67 GLViewer_PolylineDrawer();
68 ~GLViewer_PolylineDrawer();
70 virtual void create( float, float, bool );
74 \class GLViewer_TextDrawer
75 Drawer for GLViewer_Text
78 class GLVIEWER_API GLViewer_TextDrawer: public GLViewer_Drawer
82 GLViewer_TextDrawer();
83 ~GLViewer_TextDrawer();
86 virtual void create( float, float, bool );
87 //! Updates objects after updating font
92 #pragma warning ( default:4251 )