Kstars

skymapgldraw.h
1/*
2 SPDX-FileCopyrightText: 2010 Akarsh Simha <akarsh.simha@kdemail.net>
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 <akarsh.simha@kdemail.net>
18 */
19
20class SkyMapGLDraw : public QGLWidget, public SkyMapDrawAbstract
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
This class defines the methods that both rendering engines (GLPainter and QPainter) must implement.
This class draws the SkyMap using OpenGL.
SkyMapGLDraw(SkyMap *parent)
Constructor.
virtual void paintEvent(QPaintEvent *e)
Overridden paintEvent method.
This is the canvas on which the sky is painted.
Definition skymap.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.