improved measuraments ,cursors, zooming and user interactions
This commit is contained in:
1 parent
0eceaf537b
commit
02620ca946
12 files changed
+1488
-171
No files matched your search
+4
-2
@@ -103,8 +103,10 @@ ExportTable collect_export(ScopeModel& model, RowSet& rows) {
|
||||
// otherwise -- including mid-capture, where the rows follow the live ring too. Reading
|
||||
// the ring while an event is on screen would export data the user cannot see, and
|
||||
// reading the stale snapshot mid-capture would export the *previous* event.
|
||||
std::shared_ptr<const EventSnapshot> snap = model.event();
|
||||
if (model.display_mode() == DisplayMode::Held && snap != nullptr) {
|
||||
// What is on screen: a pause's frozen view, or the trigger's held event. Both are immutable
|
||||
// snapshots, so the export is the picture the user is looking at either way.
|
||||
std::shared_ptr<const EventSnapshot> snap = model.display_snapshot();
|
||||
if (snap != nullptr) {
|
||||
// The snapshot is immutable and already index-aligned, so the visible window is two
|
||||
// binary searches over its stamps and the same index range for every channel.
|
||||
const std::vector<f32>& st = snap->stamps;
|
||||
|
||||
Reference in new issue
Block a user