You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(realsense-viewer): viewport grid and metadata overlay
Adds an optional 2-D grid line overlay and per-stream metadata overlay
to the realsense-viewer stream viewports, compiled on demand via the
BUILD_VIEWPORT_GRID_OVERLAY CMake flag (default OFF).
Grid configuration is read at startup from config-settings.xml
(placed next to the exe) under a <realsense-viewer>/<viewport-grid>
hierarchy, keeping the file extensible for future viewer-wide settings:
<realsense-viewer>
<viewport-grid>
<horizontal_lines count="1"/> <!-- range 1-5, default 1 -->
<vertical_lines count="1"/> <!-- range 1-5, default 1 -->
<line_width pixels="1"/> <!-- >= 1, default 1 -->
<line_color r="255" g="255" b="255"/> <!-- default white -->
</viewport-grid>
</realsense-viewer>
Out-of-range values fall back to their defaults (no clamping).
Missing file or invalid XML falls back to all defaults silently.
Two toggle buttons are added to each stream header bar:
- Grid icon (fa-th, U+F00A): toggles the GL line grid over the viewport
- Info icon: toggles metadata text overlay (stream type, format,
resolution, frame#, timestamp, FPS)
Both buttons start in the off state on every launch.
GL color state is properly saved/restored (GL_CURRENT_BIT) to prevent
the grid color from bleeding into adjacent PiP thumbnails.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CMake/lrs_options.cmake
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,3 +63,4 @@ option(USE_EXTERNAL_LZ4 "Use externally build LZ4 library instead of building an
63
63
option(BUILD_ASAN"Enable AddressSanitizer"OFF)
64
64
option(BUILD_ROSBAG2"Build and use rosbag2 recording system"ON) # temporary flag, should be removed when deprecated ROSBAG1 recording system is removed
65
65
mark_as_advanced(BUILD_ASAN)
66
+
option(BUILD_VIEWPORT_GRID_OVERLAY"Build 2D viewport grid overlay for realsense-viewer (configurable via config-settings.xml)"OFF)
0 commit comments