四个方向 分块渲染

This commit is contained in:
2026-08-12 09:01:25 +08:00
parent b34c0d31b1
commit 9331b4cbf6
24 changed files with 788 additions and 108 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include "Frequency_Trace.h"
#include "Plottable_Real_Time_Data.h"
#include "Heatmap_Utils.h"
#include "../render/Blend2D_Cache.h"
#include <algorithm>
#include <deque>
@@ -47,7 +48,7 @@ void Frequency_Trace_Control::paint(Painter& painter, const Render_State_View& v
std::vector<PointF> points;
points.reserve(samples.size());
for(const auto& [tick, value] : samples)
points.push_back({x.coord_to_pixel(tick), y.coord_to_pixel(value)});
points.push_back(mapped_point(x, tick, y, value));
painter.polyline(points, state.pen);
}
}