From 6ba66b722129a970b47a0a2e7de1c6c1514b7f93 Mon Sep 17 00:00:00 2001 From: Ian Caven Date: Thu, 11 May 2023 16:12:05 -0700 Subject: [PATCH] A button is added for convenience to the k4aviewer application to make it easier to copy details about a recording. --- tools/k4aviewer/k4arecordingdockcontrol.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/k4aviewer/k4arecordingdockcontrol.cpp b/tools/k4aviewer/k4arecordingdockcontrol.cpp index f5e21b656..36b8a1356 100644 --- a/tools/k4aviewer/k4arecordingdockcontrol.cpp +++ b/tools/k4aviewer/k4arecordingdockcontrol.cpp @@ -158,6 +158,16 @@ K4ADockControlStatus K4ARecordingDockControl::Show() ImGui::Text("Subordinate delay (us): %d", m_subordinateDelayOffMasterUsec); ImGui::Text("Start timestamp offset: %d", m_startTimestampOffsetUsec); ImGui::Text("Recording Length (us): %lu", m_recordingLengthUsec); + if (ImGui::Button("Copy to clipboard")) + { + std::stringstream sync_settings; + sync_settings << "Depth/color delay (us):" << m_depthDelayOffColorUsec << std::endl; + sync_settings << "Sync mode:" << m_wiredSyncModeLabel.c_str() << std::endl; + sync_settings << "Subordinate delay (us):" << m_subordinateDelayOffMasterUsec << std::endl; + sync_settings << "Start timestamp offset:" << m_startTimestampOffsetUsec << std::endl; + sync_settings << "Recording Length (us):" << m_recordingLengthUsec << std::endl; + ImGui::SetClipboardText(sync_settings.str().c_str()); + } ImGui::Separator(); ImGui::TextUnformatted("Device info");