Kstars
13#include "skypainter.h"
14#include "skyobjects/skyobject.h"
15#include "projections/projector.h"
22 explicit SkyGLPainter(QGLWidget *widget);
23 bool drawPlanet(KSPlanetBase *planet)
override;
24 bool drawPointSource(
const SkyPoint *loc,
float mag,
char sp =
'A')
override;
25 void drawSkyPolygon(LineList *list,
bool forceClip =
true)
override;
26 void drawSkyPolyline(LineList *list, SkipHashList *skipList =
nullptr,
27 LineListLabel *label =
nullptr)
override;
28 void drawSkyLine(SkyPoint *a, SkyPoint *b)
override;
29 void drawSkyBackground()
override;
30 void drawObservingList(
const QList<SkyObject *> &obs)
override;
31 void drawFlags()
override;
33 void begin()
override;
34 void setBrush(
const QBrush &brush)
override;
35 void setPen(
const QPen &pen)
override;
36 void drawHorizon(
bool filled, SkyPoint *labelPoint =
nullptr,
37 bool *drawLabel =
nullptr)
override;
38 bool drawSatellite(Satellite *sat)
override;
39 bool drawSupernova(Supernova *sup)
override;
40 void drawText(
int x,
int y,
const QString text, QFont font, QColor color);
41 bool drawConstellationArtImage(ConstellationsArt *obj)
override;
42 bool drawHips(
bool useCache =
false)
override;
45 bool addItem(SkyPoint *p,
int type,
float width,
char sp =
'a');
46 void drawBuffer(
int type);
47 void drawPolygon(
const QVector<Eigen::Vector2f> &poly,
bool convex =
true,
48 bool flush_buffers =
true);
52 void drawTexturedRectangle(
const QImage &img,
const Eigen::Vector2f &pos,
const float angle,
53 const float sizeX,
const float sizeY);
55 const Projector *m_proj;
57 Eigen::Vector4f m_pen;
58 static const int BUFSIZE = 512;
60 static const int NUMTYPES = (int)SkyObject::TYPE_UNKNOWN + 1;
61 static Eigen::Vector2f m_vertex[NUMTYPES][6 * BUFSIZE];
62 static Eigen::Vector2f m_texcoord[NUMTYPES][6 * BUFSIZE];
63 static Eigen::Vector3f m_color[NUMTYPES][6 * BUFSIZE];
64 static int m_idx[NUMTYPES];
Draws things on the sky, without regard to backend.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.