Kstars

skymapgldraw.h
1 /*
2  SPDX-FileCopyrightText: 2010 Akarsh Simha <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef SKYMAPGLDRAW_H_
8 #define SKYMAPGLDRAW_H_
9 
10 #include "skymapdrawabstract.h"
11 
12 #include <QGLWidget>
13 /**
14  *@short This class draws the SkyMap using OpenGL. It
15  * implements SkyMapDrawAbstract
16  *@version 1.0
17  *@author Akarsh Simha <[email protected]>
18  */
19 
21 {
22  Q_OBJECT
23 
24  public:
25  /**
26  *@short Constructor
27  */
28  explicit SkyMapGLDraw(SkyMap *parent);
29 
30  protected:
31  virtual void paintEvent(QPaintEvent *e);
32 
33  virtual void initializeGL();
34 
35  virtual void resizeGL(int, int);
36 };
37 
38 #endif
Q_OBJECTQ_OBJECT
This class defines the methods that both rendering engines (GLPainter and QPainter) must implement.
This class draws the SkyMap using OpenGL.
Definition: skymapgldraw.h:20
Canvas widget for displaying the sky bitmap; also handles user interaction events.
Definition: skymap.h:52
SkyMapGLDraw(SkyMap *parent)
Constructor.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.