59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#ifndef K4AWINDOWSET_H
|
|
#define K4AWINDOWSET_H
|
|
|
|
// Associated header
|
|
//
|
|
|
|
// System headers
|
|
//
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
// Library headers
|
|
//
|
|
#include "k4aimgui_all.h"
|
|
#include <k4a/k4a.hpp>
|
|
|
|
// Project headers
|
|
//
|
|
#include "k4adatasource.h"
|
|
#include "k4amicrophonelistener.h"
|
|
#include "k4avideowindow.h"
|
|
|
|
namespace k4aviewer
|
|
{
|
|
class K4AWindowSet
|
|
{
|
|
public:
|
|
enum class ViewType
|
|
{
|
|
Normal,
|
|
PointCloudViewer
|
|
};
|
|
static void ShowModeSelector(ViewType *viewType,
|
|
bool enabled,
|
|
bool pointCloudViewerEnabled,
|
|
const std::function<void(ViewType)> &changeViewFn);
|
|
|
|
static void StartNormalWindows(const char *sourceIdentifier,
|
|
K4ADataSource<k4a::capture> *cameraDataSource,
|
|
K4ADataSource<k4a_imu_sample_t> *imuDataSource,
|
|
std::shared_ptr<K4AMicrophoneListener> &µphoneDataSource,
|
|
bool enableDepthCamera,
|
|
k4a_depth_mode_t depthMode,
|
|
bool enableColorCamera,
|
|
k4a_image_format_t colorFormat,
|
|
k4a_color_resolution_t colorResolution);
|
|
|
|
static void StartPointCloudWindow(const char *sourceIdentifier,
|
|
const k4a::calibration &calibrationData,
|
|
K4ADataSource<k4a::capture> *cameraDataSource,
|
|
bool enableColorPointCloud);
|
|
};
|
|
} // namespace k4aviewer
|
|
|
|
#endif
|