Commit graph

214 commits

Author SHA1 Message Date
Allan Bazinet
ea5977b688 Use std math functions 2024-11-10 13:03:44 -08:00
Allan Bazinet
e9f06aa681 Visually differentiate cumulative / current plots 2024-11-10 11:17:43 -08:00
Allan Bazinet
c3979cb537 Correct cumulative spectrum calculation 2024-11-10 11:05:13 -08:00
Allan Bazinet
e154dd244e Simplify summarization function 2024-11-10 10:52:40 -08:00
Allan Bazinet
74f78f8001 Hoist bins division 2024-11-10 10:39:59 -08:00
Allan Bazinet
eb61b6c66c Lose defuct m_sum array; tune spectrum math 2024-11-10 10:31:39 -08:00
Allan Bazinet
e55dbab509 Return to use of standard 2d gain for linear avg 2024-11-10 10:02:27 -08:00
Allan Bazinet
dafe03c5d3 Plot accessor tuning 2024-11-10 09:37:15 -08:00
Allan Bazinet
41d7880303 Address decode line text latency possibility 2024-11-10 09:25:11 -08:00
Allan Bazinet
c5f373a259 Hoist gain multiplier 2024-11-10 07:55:20 -08:00
Allan Bazinet
2488aa6114 Rework graph responsibilities
Simplify drawing, change, and replot logic
2024-11-10 07:41:10 -08:00
Allan Bazinet
bb8b849d58 Tune replot setup and usage 2024-11-10 06:43:50 -08:00
Allan Bazinet
b46cee3f5b Eliminate legacy pen selection 2024-11-10 04:24:01 -08:00
Allan Bazinet
ffa7e34602 Rename replot cache 2024-11-10 04:10:38 -08:00
Allan Bazinet
8a60d31933 Kill off Fortran plotsave() routine
It would be difficult to consider a more unspeakable horror than this; I can’t even think rationally about it. It must be purged, the implementation burned, the ashes scattered, and the ground salted. Dramatically improves replot performance.
2024-11-10 03:56:31 -08:00
Allan Bazinet
9c61c9d02f Pass replot on stack 2024-11-09 22:47:20 -08:00
Allan Bazinet
6a959afb2a Use m_w directly, instead of hack computation 2024-11-09 22:30:29 -08:00
Allan Bazinet
ffadc1e3dd Less blinding spectrum divisions 2024-11-09 20:55:43 -08:00
Allan Bazinet
6bf5dc3556 Antialias spectrum poly line 2024-11-09 17:56:55 -08:00
Allan Bazinet
acaaa9e1a7 Emplace points into points polygon 2024-11-09 13:23:04 -08:00
Allan Bazinet
092e5316d1 Use QPolygon for spectrum draw 2024-11-09 13:15:00 -08:00
Allan Bazinet
ef949fd6d1 Always place hover indicator above dial 2024-11-09 07:37:04 -08:00
Allan Bazinet
2c673059d0 Use default argument 2024-11-09 07:09:41 -08:00
Allan Bazinet
1ebf92f319 Tune and document opaque painting 2024-11-09 06:59:38 -08:00
Allan Bazinet
0a3215f69d Simplify plotter inheritance
Plotter can be a QWidget; doesn’t need to be a QFrame.
2024-11-09 05:51:37 -08:00
Allan Bazinet
0560cd5342 Remove paint event recursion guard
We don’t do anything in the paint event that would trigger another paint event; should not need to guard.
2024-11-09 05:17:21 -08:00
Allan Bazinet
fc6ea196c2 Document and revise filter logic 2024-11-08 07:51:56 -08:00
Allan Bazinet
27cb05a0b4 Improve filter efficiency 2024-11-08 07:31:19 -08:00
Allan Bazinet
54f1033c47 Revise m_freqPerPixel initialization 2024-11-08 07:12:52 -08:00
Allan Bazinet
9bbfba27ef Add sanity guards to pixmap creation 2024-11-08 07:08:09 -08:00
Allan Bazinet
e2848b7fdb Simplify float conversion math operations 2024-11-08 05:50:43 -08:00
Allan Bazinet
42efdbfc43 Reduce plotter memory usage
Cut up single overlay pixmap into two smaller pixmaps, displaying only what’s not the filter bandpass.
2024-11-08 04:49:04 -08:00
Allan Bazinet
3cae023fd8 Correct updates on start frequency change 2024-11-07 21:13:59 -08:00
Allan Bazinet
a030b20c2f Update drawing guards 2024-11-07 20:16:19 -08:00
Allan Bazinet
f405a25d74 Compute height directly in drawFilter() 2024-11-07 19:04:55 -08:00
Allan Bazinet
e78612b94a Quick fix for filter display 2024-11-07 18:02:20 -08:00
Allan Bazinet
07f96a83d7 Draw dials on BPP change 2024-11-07 17:54:31 -08:00
Allan Bazinet
2ebf5e2437 Ongoing filter display fixes 2024-11-07 17:51:23 -08:00
Allan Bazinet
45c4001989 Don’t need composition mode for dial drawing 2024-11-07 17:03:59 -08:00
Allan Bazinet
83700f9b4a Plotter update tuning 2024-11-07 13:44:04 -08:00
Allan Bazinet
632bb48a12 Improve dial display efficiency
Optimize drawing of dial pixmaps and dramatically reduce their memory footprint.
2024-11-07 13:10:26 -08:00
Allan Bazinet
15f385e272 Improve decode line drawing text efficiencty 2024-11-07 08:19:31 -08:00
Allan Bazinet
83ff95696e Handle high-DPI displays in plotter 2024-11-07 07:31:29 -08:00
Allan Bazinet
0265d661c4 Cover scale with filter overlay 2024-11-07 07:00:04 -08:00
Allan Bazinet
71e1c810ed Normalize dial / hover drawing 2024-11-07 06:38:20 -08:00
Allan Bazinet
70553090de Document spectrum drawing 2024-10-31 07:08:48 -07:00
Allan Bazinet
46374408bf Simplify spectrum drawing 2024-10-31 06:53:30 -07:00
Allan Bazinet
a559d511f9 Use scoped value for replot 2024-10-31 06:26:44 -07:00
Allan Bazinet
365f045979 Eliminate color table global 2024-10-26 07:02:01 -07:00
Allan Bazinet
e8fccb0dc7 fractionalPart could be constexpr if std::modf is 2024-10-26 06:35:35 -07:00