X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGLViewer%2FGLViewer_BaseDrawers.h;h=b95facec8ea7a7875f897ea87f215e06da4c4ef9;hb=20f5a8e257f22f84614a13b9bfeb21dab64d70c1;hp=abdb1309fc307f035990b2a3bcda92e3563dd2af;hpb=4b914be3971471bcd67878b96fbdca12fbc2ac1d;p=modules%2Fgui.git diff --git a/src/GLViewer/GLViewer_BaseDrawers.h b/src/GLViewer/GLViewer_BaseDrawers.h index abdb1309f..b95facec8 100644 --- a/src/GLViewer/GLViewer_BaseDrawers.h +++ b/src/GLViewer/GLViewer_BaseDrawers.h @@ -1,28 +1,47 @@ +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +// Author : OPEN CASCADE // File: GLViewer_BaseDrawers.h // Created: November, 2004 -// Author: OCC team -// Copyright (C) CEA 2004 - +// #ifndef GLVIEWER_BASEDRAWERS_H #define GLVIEWER_BASEDRAWERS_H -#include -#include -#include -#include -#include +class QColor; #include "GLViewer.h" #include "GLViewer_Drawer.h" class GLViewer_AspectLine; -#ifdef WNT +#ifdef WIN32 #pragma warning( disable:4251 ) #endif -// Class: GLViewer_MarkerDrawer -// Descr: Drawer for GLViewer_MarkerSet +/*! + \class GLViewer_MarkerDrawer + Drawer for GLViewer_MarkerSet +*/ class GLVIEWER_API GLViewer_MarkerDrawer : public GLViewer_Drawer { @@ -30,26 +49,32 @@ public: GLViewer_MarkerDrawer(); ~GLViewer_MarkerDrawer(); + //! Redefined method virtual void create( float, float, bool ); private: - void drawMarker( float&, float&, float&, QColor&, GLViewer_AspectLine* ); + //! Draws marker in point (x,y) of \param radius with \param color and \param aspect + void drawMarker( float& x, float& y, float& radius, QColor& color, GLViewer_AspectLine* aspect ); }; -// Class: GLViewer_PolylineDrawer -// Descr: Drawer for GLViewer_Polyline +/*! + \class GLViewer_PolylineDrawer + Drawer for GLViewer_Polyline +*/ class GLVIEWER_API GLViewer_PolylineDrawer : public GLViewer_Drawer { public: GLViewer_PolylineDrawer(); ~GLViewer_PolylineDrawer(); - + //! Redefined method virtual void create( float, float, bool ); }; -// Class: GLViewer_TextDrawer -// Descr: +/*! + \class GLViewer_TextDrawer + Drawer for GLViewer_Text +*/ class GLVIEWER_API GLViewer_TextDrawer: public GLViewer_Drawer { @@ -58,11 +83,13 @@ public: GLViewer_TextDrawer(); ~GLViewer_TextDrawer(); + //! Redefined method virtual void create( float, float, bool ); - void updateObjects(); //after update font + //! Updates objects after updating font + void updateObjects(); }; -#ifdef WNT +#ifdef WIN32 #pragma warning ( default:4251 ) #endif