0.4.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
Global.cpp
Go to the documentation of this file.
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
19
20namespace NAV::gui::windows
21{
26bool showFontSizeEditor = false;
27bool showColormapEditor = false;
28bool showScreenshotter = false;
29
30} // namespace NAV::gui::windows
31
32void NAV::gui::windows::renderGlobalWindows(std::vector<ImVec4>& colors, const std::vector<const char*>& colorNames)
33{
35 {
36 ImGui::ShowDemoWindow();
37 }
39 {
40 ImPlot::ShowDemoWindow();
41 }
43 {
45 }
47 {
49 }
51 {
53 }
55 {
57 }
58#ifdef IMGUI_IMPL_OPENGL_LOADER_GL3W
60 {
61 gui::windows::ShowScreenshotter(&showScreenshotter);
62 }
63#endif
64}
Colormap editor window.
Font size chooser window.
Global windows.
ImPlot style editor window.
Style Editor window.
Screenshot utility.
bool showNodeEditorStyleEditor
Flag whether the NodeEditor style editor windows should be displayed.
Definition Global.cpp:24
bool showFontSizeEditor
Flag whether the Font size editor window should be displayed.
Definition Global.cpp:26
bool showColormapEditor
Flag whether the Colormap editor window should be displayed.
Definition Global.cpp:27
bool showImPlotStyleEditor
Flag whether the ImPlot style editor windows should be displayed.
Definition Global.cpp:25
bool showScreenshotter
Flag whether the Screenshotter window should be displayed.
Definition Global.cpp:28
void ShowImPlotStyleEditor(bool *show=nullptr)
Shows a window for editing the style of the ImPlot windows.
bool showImPlotDemoWindow
Flag whether the ImPlot Demo window should be displayed.
Definition Global.cpp:23
void ShowColormapEditor(bool *show)
Shows a window for editing the user defined value colormaps.
void renderGlobalWindows(std::vector< ImVec4 > &colors, const std::vector< const char * > &colorNames)
Called every frame to render global windows.
Definition Global.cpp:32
void ShowFontSizeEditor(bool *show=nullptr)
Shows a window for choosing the font size.
bool showImGuiDemoWindow
Flag whether the ImGui Demo window should be displayed.
Definition Global.cpp:22
void ShowNodeEditorStyleEditor(bool *show, std::vector< ImVec4 > &colors, const std::vector< const char * > &colorNames)
Shows a window for editing the style of the Node Editor.