Version: 9.12.0
GLViewer_BaseDrawers.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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, or (at your option) any later version.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // Author : OPEN CASCADE
24 // File: GLViewer_BaseDrawers.h
25 // Created: November, 2004
26 //
27 #ifndef GLVIEWER_BASEDRAWERS_H
28 #define GLVIEWER_BASEDRAWERS_H
29 
30 class QColor;
31 
32 #include "GLViewer.h"
33 #include "GLViewer_Drawer.h"
34 
36 
37 #ifdef WIN32
38 #pragma warning( disable:4251 )
39 #endif
40 
47 {
48 public:
51 
53  virtual void create( float, float, bool );
54 
55 private:
57  void drawMarker( float& x, float& y, float& radius, QColor& color, GLViewer_AspectLine* aspect );
58 };
59 
66 {
67 public:
71  virtual void create( float, float, bool );
72 };
73 
80 {
81 
82 public:
85 
87  virtual void create( float, float, bool );
89  void updateObjects();
90 };
91 
92 #ifdef WIN32
93 #pragma warning ( default:4251 )
94 #endif
95 
96 #endif
#define GLVIEWER_API
Macro for exports.
Definition: GLViewer.h:37
Class for manage of presentations in GLViewer.
Definition: GLViewer_AspectLine.h:44
Definition: GLViewer_Drawer.h:193
virtual void create(float xScale, float yScale, bool onlyUpdate)=0
Main method which drawing object in GLViewer.
Definition: GLViewer_BaseDrawers.h:47
Definition: GLViewer_BaseDrawers.h:66
Definition: GLViewer_BaseDrawers.h:80
Quantity_Color color(const QColor &)
Convert QColor object to Quantity_Color object.
Definition: OCCViewer.cxx:28
void drawMarker(QPainter *, const QPoint &, const QRect &, QwtSymbol::Style=QwtSymbol::Ellipse, const QColor &=Qt::black)
Draw marker.
Definition: Plot2d.cxx:325