Repository navigation
Commit 3c74056
committed
BVV: fix marker hotkey reliability and fly-to bookmark drift
Fix two bugs in the BVV viewer:
1. The 'M' hotkey for placing markers would silently stop working
mid-session. Now we register SNT shortcuts through BDV's
nputActionBindings instead, which seems way more reliable.
2. Double-clicking a bookmark to fly to its position caused progressive
drift on repeated clicks, and flew to the wrong location entirely
for non-axis-aligned source transforms. The old code multiplied
world coordinates by diagonal matrix elements only, ignoring
rotation. Now computes the full affine mapping and sets the
translation to centre the bookmark on screen.1 parent bac9e5a commit 3c74056
2 files changed
Lines changed: 33 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
708 | 720 | | |
709 | | - | |
710 | | - | |
711 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
712 | 724 | | |
713 | 725 | | |
714 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1139 | 1145 | | |
1140 | 1146 | | |
1141 | 1147 | | |
| |||
2636 | 2642 | | |
2637 | 2643 | | |
2638 | 2644 | | |
2639 | | - | |
| 2645 | + | |
| 2646 | + | |
2640 | 2647 | | |
2641 | 2648 | | |
2642 | 2649 | | |
| |||
0 commit comments