kinect/codes/Azure-Kinect-Sensor-SDK/tools/k4aviewer/k4aviewer.h

57 lines
1.0 KiB
C
Raw Normal View History

2024-03-06 18:05:53 +00:00
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef K4AVIEWER_H
#define K4AVIEWER_H
// System headers
//
#include <memory>
// Library headers
//
#include "k4aimgui_all.h"
// Project headers
//
#include "k4aviewersettingsmanager.h"
struct K4AViewerArgs
{
bool HighDpi = false;
};
namespace k4aviewer
{
class K4AViewer
{
public:
explicit K4AViewer(const K4AViewerArgs &args);
~K4AViewer();
void Run();
K4AViewer(const K4AViewer &) = delete;
K4AViewer(const K4AViewer &&) = delete;
K4AViewer &operator=(const K4AViewer &) = delete;
K4AViewer &operator=(const K4AViewer &&) = delete;
private:
void ShowMainMenuBar();
void SetHighDpi();
void ShowErrorOverlay();
void ShowViewerOptionMenuItem(const char *msg, ViewerOption option);
GLFWwindow *m_window;
bool m_showDemoWindow = false;
bool m_showStyleEditor = false;
bool m_showMetricsWindow = false;
bool m_showPerfCounters = false;
};
} // namespace k4aviewer
#endif