INSTINCT Code Coverage Report


Directory: src/
File: internal/gui/menus/DebugMenu.cpp
Date: 2025-11-25 23:34:18
Exec Total Coverage
Lines: 0 7 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

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 "DebugMenu.hpp"
10
11 #include <imgui.h>
12
13 #include "internal/gui/windows/Global.hpp"
14 #include "internal/gui/NodeEditorApplication.hpp"
15
16 void NAV::gui::menus::ShowDebugMenu()
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 }
36