src/GLViewer/GLViewer_BaseDrawers.h

Go to the documentation of this file.
00001 //  Copyright (C) 2005 OPEN CASCADE
00002 //
00003 //  This library is free software; you can redistribute it and/or
00004 //  modify it under the terms of the GNU Lesser General Public
00005 //  License as published by the Free Software Foundation; either
00006 //  version 2.1 of the License.
00007 //
00008 //  This library is distributed in the hope that it will be useful,
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 //  Lesser General Public License for more details.
00012 //
00013 //  You should have received a copy of the GNU Lesser General Public
00014 //  License along with this library; if not, write to the Free Software
00015 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //  Author : OPEN CASCADE
00020 //
00021 
00022 // File:      GLViewer_BaseDrawers.h
00023 // Created:   November, 2004
00024 
00025 #ifndef GLVIEWER_BASEDRAWERS_H
00026 #define GLVIEWER_BASEDRAWERS_H
00027 
00028 #include <qcolor.h>
00029 #include <qobject.h>
00030 #include <qfile.h>
00031 #include <qfont.h>
00032 #include <qgl.h>
00033 
00034 #include "GLViewer.h"
00035 #include "GLViewer_Drawer.h"
00036 
00037 class GLViewer_AspectLine;
00038 
00039 #ifdef WNT
00040 #pragma warning( disable:4251 )
00041 #endif
00042 
00048 class GLVIEWER_API GLViewer_MarkerDrawer : public GLViewer_Drawer  
00049 {
00050 public:
00051   GLViewer_MarkerDrawer();
00052   ~GLViewer_MarkerDrawer();
00053   
00055   virtual void       create( float, float, bool );
00056   
00057 private:
00059   void               drawMarker( float& x, float& y, float& radius, QColor& color, GLViewer_AspectLine* aspect );
00060 };
00061 
00067 class GLVIEWER_API GLViewer_PolylineDrawer : public GLViewer_Drawer  
00068 {
00069 public:
00070   GLViewer_PolylineDrawer();
00071   ~GLViewer_PolylineDrawer();
00073   virtual void       create( float, float, bool );    
00074 };
00075 
00081 class GLVIEWER_API GLViewer_TextDrawer: public GLViewer_Drawer
00082 {
00083   
00084 public:
00085   GLViewer_TextDrawer();
00086   ~GLViewer_TextDrawer();
00087   
00089   virtual void              create( float, float, bool );
00091   void                      updateObjects();
00092 };
00093 
00094 #ifdef WNT
00095 #pragma warning ( default:4251 )
00096 #endif
00097 
00098 #endif