Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is part of INSTINCT, the INS Toolkit for Integrated |
2 |
|
|
// Navigation Concepts and Training by the Institute of Navigation of |
3 |
|
|
// the University of Stuttgart, Germany. |
4 |
|
|
// |
5 |
|
|
// This Source Code Form is subject to the terms of the Mozilla Public |
6 |
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this |
7 |
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/. |
8 |
|
|
|
9 |
|
|
#include "Global.hpp" |
10 |
|
|
|
11 |
|
|
#include <imgui.h> |
12 |
|
|
#include <implot.h> |
13 |
|
|
|
14 |
|
|
#include "internal/gui/windows/NodeEditorStyleEditor.hpp" |
15 |
|
|
#include "internal/gui/windows/ImPlotStyleEditor.hpp" |
16 |
|
|
#include "internal/gui/windows/FontSizeEditor.hpp" |
17 |
|
|
#include "internal/gui/windows/ColormapEditor.hpp" |
18 |
|
|
#include "internal/gui/windows/Screenshotter.hpp" |
19 |
|
|
|
20 |
|
|
namespace NAV::gui::windows |
21 |
|
|
{ |
22 |
|
|
bool showImGuiDemoWindow = false; |
23 |
|
|
bool showImPlotDemoWindow = false; |
24 |
|
|
bool showNodeEditorStyleEditor = false; |
25 |
|
|
bool showImPlotStyleEditor = false; |
26 |
|
|
bool showFontSizeEditor = false; |
27 |
|
|
bool showColormapEditor = false; |
28 |
|
|
bool showScreenshotter = false; |
29 |
|
|
|
30 |
|
|
} // namespace NAV::gui::windows |
31 |
|
|
|
32 |
|
✗ |
void NAV::gui::windows::renderGlobalWindows(std::vector<ImVec4>& colors, const std::vector<const char*>& colorNames) |
33 |
|
|
{ |
34 |
|
✗ |
if (showImGuiDemoWindow) |
35 |
|
|
{ |
36 |
|
✗ |
ImGui::ShowDemoWindow(); |
37 |
|
|
} |
38 |
|
✗ |
if (showImPlotDemoWindow) |
39 |
|
|
{ |
40 |
|
✗ |
ImPlot::ShowDemoWindow(); |
41 |
|
|
} |
42 |
|
✗ |
if (showNodeEditorStyleEditor) |
43 |
|
|
{ |
44 |
|
✗ |
gui::windows::ShowNodeEditorStyleEditor(&showNodeEditorStyleEditor, colors, colorNames); |
45 |
|
|
} |
46 |
|
✗ |
if (showImPlotStyleEditor) |
47 |
|
|
{ |
48 |
|
✗ |
gui::windows::ShowImPlotStyleEditor(&showImPlotStyleEditor); |
49 |
|
|
} |
50 |
|
✗ |
if (showFontSizeEditor) |
51 |
|
|
{ |
52 |
|
✗ |
gui::windows::ShowFontSizeEditor(&showFontSizeEditor); |
53 |
|
|
} |
54 |
|
✗ |
if (showColormapEditor) |
55 |
|
|
{ |
56 |
|
✗ |
gui::windows::ShowColormapEditor(&showColormapEditor); |
57 |
|
|
} |
58 |
|
|
#ifdef IMGUI_IMPL_OPENGL_LOADER_GL3W |
59 |
|
✗ |
if (showScreenshotter) |
60 |
|
|
{ |
61 |
|
✗ |
gui::windows::ShowScreenshotter(&showScreenshotter); |
62 |
|
|
} |
63 |
|
|
#endif |
64 |
|
✗ |
} |
65 |
|
|
|