File indexing completed on 2022-12-06 18:58:53

0001 /*
0002     SPDX-FileCopyrightText: 2010 Akarsh Simha <akarsh.simha@kdemail.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef SKYMAPGLDRAW_H_
0008 #define SKYMAPGLDRAW_H_
0009 
0010 #include "skymapdrawabstract.h"
0011 
0012 #include <QGLWidget>
0013 /**
0014  *@short This class draws the SkyMap using OpenGL. It
0015  * implements SkyMapDrawAbstract
0016  *@version 1.0
0017  *@author Akarsh Simha <akarsh.simha@kdemail.net>
0018  */
0019 
0020 class SkyMapGLDraw : public QGLWidget, public SkyMapDrawAbstract
0021 {
0022     Q_OBJECT
0023 
0024   public:
0025     /**
0026          *@short Constructor
0027          */
0028     explicit SkyMapGLDraw(SkyMap *parent);
0029 
0030   protected:
0031     virtual void paintEvent(QPaintEvent *e);
0032 
0033     virtual void initializeGL();
0034 
0035     virtual void resizeGL(int, int);
0036 };
0037 
0038 #endif