0.5.1
Loading...
Searching...
No Matches
DebugMenu.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 "DebugMenu.hpp"
10
11#include <imgui.h>
12
15
17{
18 ImGui::MenuItem("Show ImGui Demo Window", nullptr, &gui::windows::showImGuiDemoWindow);
19 ImGui::MenuItem("Show ImPlot Demo Window", nullptr, &gui::windows::showImPlotDemoWindow);
20
21#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
22 // TODO: The flow animations currently crash under windows
23 ImGui::BeginDisabled();
24#endif
25
26 ImGui::Checkbox("Show Callback Flow", &NodeEditorApplication::showFlowWhenInvokingCallbacks);
27
28 ImGui::Checkbox("Show Notify Flow", &NodeEditorApplication::showFlowWhenNotifyingValueChange);
29
30 ImGui::Checkbox("Show Queue size on pins", &NodeEditorApplication::_showQueueSizeOnPins);
31
32#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
33 ImGui::EndDisabled();
34#endif
35}
Debug Menu.
Global windows.
static bool showFlowWhenInvokingCallbacks
Flag if invokeCallbacks triggers a GUI Flow event.
static bool _showQueueSizeOnPins
Shows the queue size on the pins (every frame the queue mutex will be locked)
static bool showFlowWhenNotifyingValueChange
Flag if notifyOutputValueChanged & notifyInputValueChanged triggers a GUI Flow event.
void ShowDebugMenu()
Show the debug menu dropdown.
Definition DebugMenu.cpp:16
bool showImPlotDemoWindow
Flag whether the ImPlot Demo window should be displayed.
Definition Global.cpp:23
bool showImGuiDemoWindow
Flag whether the ImGui Demo window should be displayed.
Definition Global.cpp:22