octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #65835] [Feature Request] qt figure created by


From: Jan Hieronymus
Subject: [Octave-bug-tracker] [bug #65835] [Feature Request] qt figure created by imshow or imagesc to show value at mouse cursor in status bar next to coordinates
Date: Tue, 4 Jun 2024 15:17:47 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?65835>

                 Summary: [Feature Request] qt figure created by imshow or
imagesc to show value at mouse cursor in status bar next to coordinates
                   Group: GNU Octave
               Submitter: xyhausen
               Submitted: Tue 04 Jun 2024 07:17:47 PM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 9.1.0
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 04 Jun 2024 07:17:47 PM UTC By: Jan Hieronymus <xyhausen>
When displaying an image with the qt graphical toolkit, the coordinates of the
mouse pointer are displayed in the status bar in the bottom left corner of the
window as a string with the format "(%1, %2)".

It would be very much appreciated (also by others, e.g.
https://stackoverflow.com/questions/23706937/displaying-pixel-values-of-an-image-in-octave#32973209),
if the data value under the mouse pointer would also be displayed in the
status bar, e.g. with the format "(%1, %2): %3" (or something that resembles
the Matlab behaviour).

It appears, the function "Figure::updateStatusBar" (in file
"libgui/graphics/Figure.cc") is called from "Canvas::canvasMouseMoveEvent" (in
file "libgui/graphics/Canvas.cc") to update the status bar of the figure
window.
Unfortunately, I could not figure out, how to access the image data matrix of
the figure to grab the pixel value, otherwise, I would have suggested a patch.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65835>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]