summaryrefslogtreecommitdiffhomepage
path: root/pose-widget/glwidget.cpp
AgeCommit message (Collapse)Author
2016-09-27pose-widget: larger octopus resolution. simplify code.Stanislaw Halik
2016-09-21many: remove compat/pi-constant.hppStanislaw Halik
With -D_USE_MATH_DEFINES MSVC defines the standard M_PI and friends. Since this preprocessor definition is now always passed as part of the build system for MSVC. We can use M_PI as if on a mission.
2016-08-12all: rename modules s#^opentrack-##. and opentrack -> apiStanislaw Halik
Adjust usages.
2016-08-10pose-widget, gui: allow for drawing regardless if window visibleStanislaw Halik
2016-08-08gui: make octopus pitch the right wayStanislaw Halik
2016-07-31pose-widget, tracker/{aruco,pt}: check more often for widget visibilityStanislaw Halik
It looks weird otherwise.
2016-07-23pose-widget: use common code for euler -> rmatStanislaw Halik
2016-07-23pose-widget: don't display when window hiddenStanislaw Halik
When the opentrack window isn't displayed (minimized or hidden by some other window), don't bother with refreshing the image.
2016-07-23pose-widget: don't do barycentric lookup twiceStanislaw Halik
In the affine transformation (aka the pose widget) of The Octopus we use barycentric coordinates of two triangles making up The Octopus rectangle. Triangles are symmetrical. Take advantage of the symmetry (no perspective transform applied) and take barycentric coordinates only once.
2016-05-26many modules: trivial cleanups onlyStanislaw Halik
- Remove "this->" where it's not needed. Possibly rename shadowed vars. - Don't reload the options bundle manually since `options::opts' exists for that very reason. - Remove '^ \+$' whitespace - :retab
2016-05-14pose-widget: don't promote to doubleStanislaw Halik
Committer shouldn't push so fast to get a chance to rebase. Closes #356
2016-05-14pose-widget: try harder to avoid small denominatorStanislaw Halik
Previous commit fixed only the case with one perpendicular axis of rotation with the rest fixed at origin. This one works with all three degrees of freedom enabled. Reported-by: @MathijsG Issue: #356
2016-05-13pose-widget: avoid too small denominator in perpendicular alignmentStanislaw Halik
With a very small denominator in barycentric coords formula we get a dissociated octopus that took PCP and LSD in one sitting. A dead Octopus is just a bunch of blue spheres. IOW, in division with too small a denominator operand the results are numerically unstable. This is done in the constructor in a convoluted way as to avoid branching during calculating for each pixel. Issue: #356 Reported-by: @MathijsG
2016-05-13many: remove unneeded implicit type conversion double <-> floatStanislaw Halik
2015-12-18pose-widget: also bilinear interpolation of alpha valueStanislaw Halik
2015-12-18glwidget: use transparent octopus backgroundStanislaw Halik
2015-10-03pose-widget: simplifyStanislaw Halik
2015-10-03pose-widget: fix black border around The OctopusStanislaw Halik
2015-10-03pose-widget: use bilinear filteringStanislaw Halik
now The Octopus looks better.
2015-08-31pose-widget: simplifyStanislaw Halik
2015-08-31pose-widget: add commentStanislaw Halik
2015-08-22props changed onlyStanislaw Halik
Some source files had executable bit on. Remove it.
2015-08-21pose-widget: use unsigned char, sprinkle constopentrack-2.3-rc16Stanislaw Halik
2015-08-18nix -Wnarrowing, not needed since previous commitStanislaw Halik
2015-08-18simple-mat: replace initializer_list with variadic ctorStanislaw Halik
Gives us type safety rather than argument count mismatch. Also there's no more narrowing conversion issue. Replace usages. Explicitly delete initializer_list ctor.
2015-08-13pose-widget: const nonsenseStanislaw Halik
2015-08-11pose-widget: we no longer warn on narrowing conversionsStanislaw Halik
2015-08-11pose-widget: don't pollute global namespaceStanislaw Halik
2015-08-11pose-widget: use floatsStanislaw Halik
2015-07-20octopus: update copyrightStanislaw Halik
2015-07-19fix osx, app bundle now buildsStanislaw Halik
2015-06-15octopus: simplify vector mathStanislaw Halik
Also rename identifiers for clarity.
2015-06-05octopus, pt, aruco: optimize image copyingStanislaw Halik
Perform less operations in inner loop where pixels are accessed.
2015-06-01octopus: use more simple-mat, less open-coded mathStanislaw Halik
2015-06-01glwidget: use simple-mat cross and dot productStanislaw Halik
2015-06-01octopus: take advantage of simple-mat swizzlesStanislaw Halik
2015-05-31this static modifier doesn't belongStanislaw Halik
2015-05-31ui: allow for octopus screen traversalStanislaw Halik
The octopus will now traverse the screen in response to translation input. Previously it could only rotate, severely hampering its maneuverability.
2015-05-31glwidget: crude rewrite to simple-mat headerStanislaw Halik
2014-11-02rename pose widget subdirStanislaw Halik