0.4.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
14
16namespace nm = NAV::NodeManager;
18
20{
21 ImGui::MenuItem("Show ImGui Demo Window", nullptr, &gui::windows::showImGuiDemoWindow);
22 ImGui::MenuItem("Show ImPlot Demo Window", nullptr, &gui::windows::showImPlotDemoWindow);
23
24#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
25 // TODO: The flow animations currently crash under windows
26 ImGui::BeginDisabled();
27#endif
28
29 ImGui::Checkbox("Show Callback Flow", &nm::showFlowWhenInvokingCallbacks);
30
31 ImGui::Checkbox("Show Notify Flow", &nm::showFlowWhenNotifyingValueChange);
32
33 ImGui::Checkbox("Show Queue size on pins", &NodeEditorApplication::_showQueueSizeOnPins);
34
35#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
36 ImGui::EndDisabled();
37#endif
38}
Debug Menu.
Global windows.
Manages all Nodes.
static bool _showQueueSizeOnPins
Shows the queue size on the pins (every frame the queue mutex will be locked)
bool showFlowWhenNotifyingValueChange
Flag if notifyOutputValueChanged & notifyInputValueChanged triggers a GUI Flow event.
bool showFlowWhenInvokingCallbacks
Flag if invokeCallbacks triggers a GUI Flow event.
void ShowDebugMenu()
Show the debug menu dropdown.
Definition DebugMenu.cpp:19
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