Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
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
A button is added for convenience to the k4aviewer application to mak…
…e it easier to copy details about a recording.
  • Loading branch information
icaven committed Dec 14, 2023
commit 6ba66b722129a970b47a0a2e7de1c6c1514b7f93
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