summaryrefslogtreecommitdiffhomepage
path: root/spline/spline-widget.cpp
AgeCommit message (Collapse)Author
2020-06-30Fix build with Qt 5.15+Rein F
2020-06-05Add proper color keying to tracker-ptAndy Sloane
Instead of just selecting the red/green/blue channels, also subtract the other channels. This allows for point tracking with just colored spots, rather than IR LEDs -- green and magenta work particularly well for this. This keeps the existing "Red/Green/Blue only" options, but adds "Red/Green/Blue/Cyan/Yellow/Magenta filter" options, which do a better job of isolating those colors.
2020-01-17spline/widget: take font color from paletteStanislaw Halik
Issue: #988
2020-01-17spline/widget: fix plot label offsetStanislaw Halik
Issue: #988
2019-08-01add workaround for obsolete qt versionsStanislaw Halik
This should fix CI.
2019-08-01video: reuse working dpi checkStanislaw Halik
2019-08-01spline, video: get rid of needless castsStanislaw Halik
2019-08-01spline: switch back to cubic splinesStanislaw Halik
2019-08-01spline: ensure cubic spline drawn up to max valueStanislaw Halik
2019-08-01spline: don't use faulty devicePixelRatioF()Stanislaw Halik
2019-06-26spline: fix typoStanislaw Halik
2019-06-25spline: fix text going out of boundsStanislaw Halik
2019-06-25spline: set minimum size hintStanislaw Halik
2019-01-16spline: fix deadlock, logic errorStanislaw Halik
Tracking rarely deadlocked when saving mappings. Investigating it further also shown how a wrong bundle was used for Accela's splines.
2019-01-16cruftStanislaw Halik
2018-12-25fix build...Stanislaw Halik
2018-12-25spline: fix buildStanislaw Halik
2018-12-24cmake: decruft, disable deprecated Qt functionsStanislaw Halik
2018-12-24style/quality onlyStanislaw Halik
No functional changes. - add `override' everywhere where missing - almost pass clang's `-Wweak-vtables' - avoid some float/double conversions - remove unused private members - make signedness conversions explicit - put stuff in right namespaces to aid analysis
2018-12-24fix undefined behavior undescore prefixesStanislaw Halik
2018-11-11spline/widget: remove pointless fmaxStanislaw Halik
2018-10-25cleanup onlyStanislaw Halik
- replace warn_unused_result with [[nodiscard]] - remove some redundant w_a_r - replace std::decay with remove_cvref_t - simplify compat/math.hpp
2018-10-05silly busyworkStanislaw Halik
2018-08-27spline/widget: fix min point distance logicStanislaw Halik
- rename the function - return min distance value in position of `x', not pixels - add some DPI scaling for point size and line length - use snap logic where it was ignored
2018-06-26spline: don't use cubicStanislaw Halik
Cubic shows incorrect values for control points close to each other.
2018-06-26spline/widget: remove accidental "snap"Stanislaw Halik
Was affecting rotation splines.
2018-06-26spline/widget: fix drag-too-close handlingStanislaw Halik
Dragging toward adjacent point makes sure it's as close as allowed. Work against any remaining cases where points "merged".
2018-06-26spline: replace open-coded clamp()Stanislaw Halik
2018-06-26spline/widget: use more modern C++ syntaxStanislaw Halik
2018-06-26spline/widget: use <QtEvents>Stanislaw Halik
2018-06-26spline: get rid of nasty "qreal"Stanislaw Halik
2018-06-26spline: play nice with hidpi, no jaggies allowedStanislaw Halik
2018-02-15clean up "static" and "constexpr" typesStanislaw Halik
- use `static constexpr inline' to avoid requiring explicit declarations in object code - use `const Foo* const' to maybe put into readonly binary segment (at least for ELF DSOs) - `constexpr' in function scope has storage, avoid `static' - don't use `constexpr' where there's no advantage, like arrays We'd like to avoid overhead of atomic initialization for each function call. No idea how `static constexpr' requiring storage in the standard plays with atomic initialization requirement. Hearsay points that `constexpr' without `static' in block scope behaves more to our liking. It's all hazy though. I'm not 100% sure if `static inline constexpr' has any storage. Hopefully none, like a #define, and stuff bigger than registers gets coalesced within the same module, with small stuff being immediates.
2018-01-26CLion pedantryStanislaw Halik
Fix few of the inspection warnings from CLion that make any sense at all.
2018-01-18compat/util: retireStanislaw Halik
Adjust usages.
2018-01-16spline/widget: no need to round pixel ratioStanislaw Halik
2018-01-16spline: fix widget for hidpi displaysStanislaw Halik
2018-01-14gui/spline: change horizontal/vertical guide countStanislaw Halik
The amount depends on the max value on X/Y scales.
2017-12-21spline: prepare for widget in tobii tracker dialogStanislaw Halik
2017-10-29static constexpr -> constexprStanislaw Halik
2017-10-27spline/widget: try fix background color on UnixStanislaw Halik
2017-10-21spline/widget: remove dead codeStanislaw Halik
2017-10-21spline/widget: fixesStanislaw Halik
- fix horizontal legend overwritten by bg color - same fix for point circles - don't blit rectangles in paintEvent, cache them
2017-10-20logic, spline: more spline work/fixesStanislaw Halik
- mapping window clamps are now value<max_clamp> in spline - clamp won't mess up saved spline content - clean up artifacts on spline widget
2017-10-20spline: allow switch pitch mapping max Y 90/180Stanislaw Halik
2017-10-02spline: fix background color handlingStanislaw Halik
2017-07-25spline: repaint() is cheaperStanislaw Halik
2017-07-23spline/widget: avoid drawing past the graph's endStanislaw Halik
2017-07-18spline/widget: reduce needless redrawsStanislaw Halik
2017-06-18spline: speed up Qt spline opsStanislaw Halik