Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Mouse Events #228

Merged
merged 8 commits into from Jun 25, 2021
Merged

Added Mouse Events #228

merged 8 commits into from Jun 25, 2021

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented May 28, 2021

Signed-off-by: ahcorde ahcorde@gmail.com

🎉 New feature

Related with this issue #209. I added left and right mouse events. These events are generated by the Scene3D window, otherwise if we try to get the mouse click from other plugin we will get the click in the hole window making more difficult to handle it. Other advantage it's that we are publishing a ignition related event.

Summary

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

@ahcorde ahcorde requested a review from scpeters May 28, 2021 08:45
@ahcorde ahcorde requested a review from chapulina as a code owner May 28, 2021 08:45
@ahcorde ahcorde self-assigned this May 28, 2021
@osrf-triage osrf-triage added this to Inbox in Core development May 28, 2021
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label May 28, 2021
@codecov
Copy link

codecov bot commented May 28, 2021

Codecov Report

Merging #228 (941803b) into main (6d0de68) will increase coverage by 0.24%.
The diff coverage is 100.00%.

❗ Current head 941803b differs from pull request most recent head 4401552. Consider uploading reports for the commit 4401552 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #228      +/-   ##
==========================================
+ Coverage   65.31%   65.56%   +0.24%     
==========================================
  Files          24       25       +1     
  Lines        3088     3104      +16     
==========================================
+ Hits         2017     2035      +18     
+ Misses       1071     1069       -2     
Impacted Files Coverage Δ
include/ignition/gui/GuiEvents.hh 100.00% <ø> (ø)
src/GuiEvents.cc 100.00% <100.00%> (ø)
src/plugins/scene3d/Scene3D.cc 42.22% <100.00%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d0de68...4401552. Read the comment docs.

@ahcorde ahcorde marked this pull request as draft May 28, 2021 12:52
@ahcorde ahcorde force-pushed the ahcorde/3/mouseclickmodifiers branch from f7387ad to d249652 Compare June 9, 2021 08:59
@ahcorde ahcorde changed the title Added key modifiers to the click events Added Mouse Events Jun 9, 2021
@ahcorde ahcorde marked this pull request as ready for review June 9, 2021 09:04
@ahcorde ahcorde moved this from Inbox to In review in Core development Jun 9, 2021
Copy link
Contributor

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but the INTEGRATION_Scene3d test is segfaulting now.

@mjcarroll
Copy link
Contributor

@osrf-jenkins retest this please

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you looked into the INTEGRATION_Scene3d test failure?

include/ignition/gui/GuiEvents.hh Show resolved Hide resolved
@chapulina chapulina mentioned this pull request Jun 15, 2021
8 tasks
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a PR that uses these events, @ahcorde ? It would be nice to make sure the events have everything we need before merging and releasing. These classes don't use the PIMPL pattern, so if we realize later that they need more fields, we can't break ABI. See #209 (comment) for more context.

@chapulina chapulina mentioned this pull request Jun 17, 2021
7 tasks
@ahcorde
Copy link
Contributor Author

ahcorde commented Jun 18, 2021

@chapulina this PR make use of it #231

@ahcorde ahcorde requested a review from jennuine as a code owner June 18, 2021 17:25
@ahcorde ahcorde requested a review from chapulina June 22, 2021 17:15
@ahcorde
Copy link
Contributor Author

ahcorde commented Jun 22, 2021

friendly ping @chapulina

@chapulina
Copy link
Contributor

@ahcorde , how about we target this one at main so we can iterate on it a bit. Then if we see the need to backport we can. It doesn't look like we have a use case for this on Citadel yet, right?

@ahcorde
Copy link
Contributor Author

ahcorde commented Jun 23, 2021

I will wait to this forward port #238 because it includes the scene3d tests.

@ahcorde ahcorde changed the base branch from ign-gui3 to main June 25, 2021 09:28
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde force-pushed the ahcorde/3/mouseclickmodifiers branch from 3796b96 to 54834f3 Compare June 25, 2021 09:29
Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde
Copy link
Contributor Author

ahcorde commented Jun 25, 2021

@chapulina retargeted to main and add PIMPL pattern

Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
@chapulina chapulina added 🏯 fortress Ignition Fortress and removed 🏰 citadel Ignition Citadel labels Jun 25, 2021
ahcorde and others added 2 commits June 25, 2021 20:10
@chapulina chapulina force-pushed the ahcorde/3/mouseclickmodifiers branch from e601fd5 to edcfb77 Compare June 25, 2021 22:42
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed some documentation and tweaks in edcfb77.

I'm on the fence about keeping both the ClickOnScene and ClickToScene events. I think they could be combined into a single event to avoid confusion. But I'll refrain from making more changes until @scpeters opens a PR adding the distance field as proposed in #209 (comment).

Let's go with these for now!

Signed-off-by: Louise Poubel <louise@openrobotics.org>
@chapulina chapulina merged commit 2fc2862 into main Jun 25, 2021
@chapulina chapulina deleted the ahcorde/3/mouseclickmodifiers branch June 25, 2021 23:15
Core development automation moved this from In review to Done Jun 25, 2021
@chapulina chapulina mentioned this pull request Jul 14, 2021
7 tasks
@j-rivero j-rivero removed this from Done in Core development May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants