1 #ifndef ExoViewer_GLWidget_h
2 #define ExoViewer_GLWidget_h
4 #include "OpenGL_Includes.h"
19 void set(
bool _visible, QColor _textColor, QFont _textFont) {
20 this->visible = _visible;
21 this->textColor = _textColor;
22 this->textFont = _textFont;
23 metric =
new QFontMetrics(_textFont);
40 void resize(
int width,
int height);
47 void toggleNames(
bool _suns,
bool _planets,
bool _moons,
bool _smallbodies,
bool _systems,
bool _selected,
48 bool _comparisonAxis,
bool _comparisonPlanets,
bool _comparisonMarked);
49 void setLabelSizes(
int _suns,
int _planets,
int _moons,
int _smallbodies,
int _systems);
50 void setLabelColors(QColor _suns, QColor _planets, QColor _moons, QColor _smallbodies, QColor _systems, QColor _selected);
59 void onMessageLogged( QOpenGLDebugMessage message );
70 void drawSystemLabels();
71 void drawStarLabels();
72 void drawMoonLabels();
73 void drawSmallBodyObjectLabels();
74 void drawLabelsFromBodyInfos(
const ExoViewerLabelCategory& _style,
const std::vector<geAstro::UIBodyInfo>& _bodyInfos,
int _labelidx);
75 void drawLabelOfSelectedObject();
76 void drawLabelWithShadow(vmml::Vector2d _position, QColor _color, QFont _font, QString _name);
77 void drawLabelWithBackground(vmml::Vector2d _position, QColor _color, QFont _font, QString _name);
79 void drawComparisonAxisLabels();
80 void drawComparisonPlanetAxisLabels();
81 void drawComparisonPlanetNameLabels();
82 void drawComparisonMarkedPlanetAxisLabels();
83 void drawComparisonMarkedPlanetNameLabels();
85 QRectF drawPopUpSystemInfoBox(std::shared_ptr<geAstro::System> _system, vmml::Vector2d _p, QFont* _font_, QFontMetrics* _metrics);
99 std::vector<QRectF> labelbounds;
100 std::vector<std::pair<QRectF, int> >rectVector_bodies;
101 std::vector<std::pair<QRectF, int> >rectVector_systems;
104 std::vector<geAstro::ComparisonLabelInfo> comparisonPlanetNameLabelInfos;
105 std::vector<QRectF> comparisonPlanetLabelBounds;
108 QOpenGLDebugLogger* logger;
QFontMetrics * metric
Definition: ExoViewerGLWidget.h:17
QFont textFont
Definition: ExoViewerGLWidget.h:16
bool visible
Definition: ExoViewerGLWidget.h:14
void set(bool _visible, QColor _textColor, QFont _textFont)
Definition: ExoViewerGLWidget.h:19
Definition: ExoEngine.h:50
Definition: ExoViewerGLWidget.h:13
Definition: BodySelectionDialog.h:12
QColor textColor
Definition: ExoViewerGLWidget.h:15