diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2020-11-20 02:22:09 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-20 02:22:09 +0000 | 
| commit | f0e7870d66bbaf42ec0f1cd03dcc2da0dee6dd56 (patch) | |
| tree | 93fe9db7a734d49b398fd876c73c82daf507a9e6 /pose-widget/pose-widget.hpp | |
| parent | 3cc3ef246ad71c463c8952bcc96984b25d85b516 (diff) | |
| parent | 354fff96ffa06753c69a721ad017d621e95927d0 (diff) | |
Merge pull request #1173 from GO63-samara/unstable
Fix display of the Octopus pose in the Pose-widget.
Diffstat (limited to 'pose-widget/pose-widget.hpp')
| -rw-r--r-- | pose-widget/pose-widget.hpp | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/pose-widget/pose-widget.hpp b/pose-widget/pose-widget.hpp index b3267ff9..49044d93 100644 --- a/pose-widget/pose-widget.hpp +++ b/pose-widget/pose-widget.hpp @@ -14,7 +14,9 @@  #include <QWidget>  #include <QImage> +#include <QCheckBox> +//#define TEST  namespace pose_widget_impl {  using namespace euler; @@ -25,13 +27,17 @@ public:      pose_widget(QWidget *parent = nullptr);      void present(double xAngle, double yAngle, double zAngle, double x, double y, double z);      QSize sizeHint() const override; - +    QCheckBox mirror{QCheckBox{"Mirror", this}};  private: +    void resizeEvent(QResizeEvent *event) override;      void paintEvent(QPaintEvent*) override;      Pose_ R, T;      QImage front{QImage{":/images/side1.png"}.convertToFormat(QImage::Format_ARGB32)}; -    QImage back{QImage{":/images/side6.png"}.convertToFormat(QImage::Format_ARGB32)}; +    QImage back {QImage{":/images/side6.png"}.convertToFormat(QImage::Format_ARGB32) +                                             .mirrored(true,false)}; +    QImage shine {QImage{front.width(), front.height(), QImage::Format_ARGB32}}; +    QImage shadow{QImage{front.width(), front.height(), QImage::Format_ARGB32}};  };  } | 
