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

Add PreRender event to MinimalScene #325

Merged
merged 2 commits into from
Dec 3, 2021
Merged

Conversation

chapulina
Copy link
Contributor

🎉 New feature

Summary

The new PreRender event is triggered right before the camera is updated, so plugins can make modifications that will be reflected on the current frame.

Test it

I added a test that makes sure the event is triggered.

I'm also using this event in a downstream plugin to place some gizmos right in front of the camera. If I do this on the Render event, I get some jitter:

axes

But with PreRender they stay in place:

prerender

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

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

Signed-off-by: Louise Poubel <[email protected]>
@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #325 (9ebefc8) into ign-gui6 (d790029) will increase coverage by 0.16%.
The diff coverage is 87.09%.

Impacted file tree graph

@@             Coverage Diff              @@
##           ign-gui6     #325      +/-   ##
============================================
+ Coverage     65.63%   65.80%   +0.16%     
============================================
  Files            32       34       +2     
  Lines          4723     4761      +38     
============================================
+ Hits           3100     3133      +33     
- Misses         1623     1628       +5     
Impacted Files Coverage Δ
include/ignition/gui/GuiEvents.hh 100.00% <ø> (ø)
src/plugins/world_control/WorldControl.cc 76.86% <75.00%> (-2.34%) ⬇️
src/GuiEvents.cc 100.00% <100.00%> (ø)
src/plugins/marker_manager/MarkerManager.cc 60.86% <100.00%> (+0.26%) ⬆️
src/plugins/minimal_scene/MinimalScene.cc 61.21% <100.00%> (+0.28%) ⬆️
...plugins/world_control/WorldControlEventListener.cc 100.00% <100.00%> (ø)
...plugins/world_control/WorldControlEventListener.hh 100.00% <100.00%> (ø)

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 f8af480...9ebefc8. Read the comment docs.

@chapulina chapulina merged commit 679744a into ign-gui6 Dec 3, 2021
@chapulina chapulina deleted the chapulina/6/prerender branch December 3, 2021 18:06
chapulina added a commit that referenced this pull request Dec 8, 2021
* Added log storing for ign-gui (#272)

Signed-off-by: Nikhil Nair <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>

Co-authored-by: Louise Poubel <[email protected]>

* Don't crash if a plugin has invalid QML (#315)

Signed-off-by: Louise Poubel <[email protected]>

* Set marker point size from message (#317)

Signed-off-by: Louise Poubel <[email protected]>

* Don't set visual scale for point markers (#321)

Signed-off-by: Louise Poubel <[email protected]>

* Fix TopicEcho plugin message display (#322)

- Change binding of width property in delegate (see: https://stackoverflow.com/questions/63767669/parent-is-null-in-listview-delegate-after-upgrade-to-qt-5-15)
- Use scoped reference to model.display (see: https://forum.qt.io/topic/92085/using-qstringlistmodel-as-model-in-listview)

Signed-off-by: Rhys Mainwaring <[email protected]>

* Use qmldir to define QML module with IgnSpinBox (#319)

Signed-off-by: William Wedler <[email protected]>
Co-authored-by: Louise Poubel <[email protected]>

* Add PreRender event to MinimalScene (#325)

Signed-off-by: Louise Poubel <[email protected]>

* Offer a way to disable warnings on marker manager (#326)

Signed-off-by: Louise Poubel <[email protected]>

Co-authored-by: Alejandro Hernández Cordero <[email protected]>

* Fix codecheck (#329)

Signed-off-by: Louise Poubel <[email protected]>

* Fix codecheck (#332)

Signed-off-by: Louise Poubel <[email protected]>

* Grid config: set values from startup and improve layout (#324)

Signed-off-by: Louise Poubel <[email protected]>

Co-authored-by: Nikhil Nair <[email protected]>
Co-authored-by: Rhys Mainwaring <[email protected]>
Co-authored-by: Will <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
Co-authored-by: Jenn Nguyen <[email protected]>
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.

2 participants