Conversation
kushalkolar
commented
May 20, 2025
| class UnderlayCamera(pygfx.Camera): | ||
| class ScreenSpaceCamera(pygfx.Camera): | ||
| """ | ||
| Same as pygfx.ScreenCoordsCamera but y-axis is inverted. |
Member
Author
There was a problem hiding this comment.
@almarklein would be useful to have a pygfx Camera that is in screenspace with inverted y, pointer events use (0, 0) as the top left corner so it would be useful to have the option.
Member
Author
|
@clewis7 ready for review Custom tooltips by providing a function that takes the pointer event and outputs a |
|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/tooltips |
kushalkolar
commented
May 21, 2025
Comment on lines
+533
to
+534
| # overlay render pass | ||
| self.renderer.render(self._overlay_scene, self._overlay_camera, flush=False) |
Member
Author
There was a problem hiding this comment.
@almarklein the overlay render pass without the depth buffer doesn't exist yet right? we'll just keep this here for now and update later I guess.
clewis7
requested changes
May 21, 2025
Member
clewis7
left a comment
There was a problem hiding this comment.
Very nice as always, just a few nitpicky things
kushalkolar
commented
May 22, 2025
Co-authored-by: Caitlin Lewis <69729525+clewis7@users.noreply.github.com>
clewis7
approved these changes
May 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





closes #753
Tooltipclass that can manage displaying tooltips for registeredGraphicsFigure.tooltip_manageris anTooltipinstanceFigure.show_tooltipis a settable propertyFigure.tooltip_manager.register()is a method than can be used for customizable registration of tooltips.Usage options:
Auto-register all
Graphicsthat will be added to the figure. Tooltips display thedataof the hovered vertex or image array element (either grayscale value or RGB(A) values).Manually register a tooltip for a
Graphic.Manually register a tooltip to show custom info by register a function that takes the pointer event and returns a
str:tt-2025-05-20_03.50.28.mp4