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

Give User the Option to Have Full Panel or Only Raster Value at the Bottom #11

Open
ar-siddiqui opened this issue Feb 23, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@ar-siddiqui
Copy link

This plugin would rock even more if the user can have the raster value at the bottom like coordinates as shown below.

Currently, there is no way to hide the panel and still see the raster value. 90% of the time a user just needs to see the value of the raster and doesn't want the panel to occupy space.

It would be great if someone can add a small widget at the bottom like this that shows raster value while making the full panel optional for advance usage.
image

@jorgealmerio jorgealmerio added the enhancement New feature or request label Feb 23, 2021
@jfbourdon
Copy link
Contributor

I looked into this a bit recently and it doesn't seem that the bottom bar can be used by a plugin. However, it is possible to display the value as a tooltip were the mouse is located. I gave it a shot but the performance is poor the way I currently implemented it, optimisation is certainly possible. I'll try again eventually because that's something that I would use myself.

@ar-siddiqui
Copy link
Author

Thank you very much, I appreciate you putting time.
Even if it stays the same way as it is right now but the screen real estate can be limited to a very short window, this would serve the purpose as well.
ESRI currently implements tooltip, but that is not very useful since you have to wait a second or two at each pixel for the value to popup. If a continuous tooltip is displayed that might be annoying to some users.

Maybe a button shortkey can be provided that displays tooltip only when the button is pressed, otherwise it is hidden by default.

@cratcliff
Copy link

@jfbourdon I had need for a QGIS equivalent to ArcMap's Pixel inspector recently and came across your plugin.

I ended up just adding the following line to the printValue() funciton to display the value in QGIS's status bar.
self.iface.statusBarIface().showMessage('Pixel Value: {}'.format(bandvalue))

see Communicating with the user

You can also add buttons/labels etc as widgets in the status bar as well.

@jorgealmerio
Copy link
Owner

Ok, I will try to implement it soon!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants