Skip to content

Cross section hover cursor - #1097

Open
cgoina wants to merge 8 commits into
google:masterfrom
JaneliaSciComp:cross-section-hover-cursor
Open

Cross section hover cursor#1097
cgoina wants to merge 8 commits into
google:masterfrom
JaneliaSciComp:cross-section-hover-cursor

Conversation

@cgoina

@cgoina cgoina commented Aug 14, 2026

Copy link
Copy Markdown

Summary

This implements an option to display the cursor in the cross section synchronously when layers are viewed side-by-side

Details

A toggle (showCrossSectionHoverPosition) echoes the mouse-hover position from the cross-section panel. Sometimes is more convenient to view layers side by side and mouse over image features in order to verify them instead of toggling layers on and off.

  • Bound to the c key and exposed in the viewer settings dialog.
  • Only has an effect when two or more cross-section panels are shown side by side; a single panel never draws it (the active cursor is always in that panel).

cgoina and others added 8 commits August 13, 2026 16:08
Add an opt-in viewer-wide toggle (showCrossSectionHoverPosition) that
draws the mouse-hover position from one 2D cross-section panel as a
reticle marker in every other cross-section panel, fading with distance
from each panel's slice plane. Bound to the "c" key and exposed in the
viewer settings; serialized in the viewer state, Python API, and JSON
schema.
…nt shader (google#1078)

* perf: improve volume rendering loop perf on depth
this speeds up the depth check by interpolating the clip positions to avoid a per ray
step matrix multiplication and depth texture fetch

* test(python, vr): more reliable test and check ortographic and projection

* fix(python, test): restore object alpha for mesh picking test

* chore: format
Add an opt-in viewer-wide toggle (showCrossSectionHoverPosition) that
draws the mouse-hover position from one 2D cross-section panel as a
reticle marker in every other cross-section panel, fading with distance
from each panel's slice plane. Bound to the "c" key and exposed in the
viewer settings; serialized in the viewer state, Python API, and JSON
schema.
…p/neuroglancer into cross-section-hover-cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants