Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

A button is added for convenience to the k4aviewer application #1970

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tools/k4aviewer/k4arecordingdockcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down