Results 1 to 4 of 4

Thread: How to get the Z-Values out of the rasterviev example??

  1. #1
    Join Date
    Jan 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default How to get the Z-Values out of the rasterviev example??

    Hi @ all,

    First of all, im new to Qt, Qwt and Programming.
    So my Problem is:

    I have a Matrix which i have uploadet to the Qwt rasterview example. I have also implemented a QwtPlotPicker.
    Now with the QwtPlotPicker i am able to get the Position values by draging a Line from Point A to B but instead i would like to get the Matrix intensity Values of the Colormap from A to B and Plot them with QwtPlotCurve.

    Any suggestions for me how to handle this?

    Thx for your Support.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to get the Z-Values out of the rasterviev example??

    The picker returns a position in plot coordinates. Using your raster data object you can find the z-value at that position.
    If you are really interested in the RGB value ( not the z-value ) you could pass the calculated value to the color map.

  3. #3
    Join Date
    Jan 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to get the Z-Values out of the rasterviev example??

    Hi Uwe,

    thank you for the answer!

    I'm sorry but i don't really get that?
    What is my raster data object, do i have to initialize one? Maybe you have an example code? That would help me a lot..

    Thx

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to get the Z-Values out of the rasterviev example??

    In the rasterview example it is the class "RasterData".

    Uwe

Similar Threads

  1. Min Max values
    By mqt in forum Qwt
    Replies: 1
    Last Post: 30th August 2013, 00:50
  2. references or values?
    By Qiieha in forum Qt Programming
    Replies: 4
    Last Post: 26th April 2013, 13:25
  3. How to convert string hex values to its real binary values?
    By AttilaPethe in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2012, 22:47
  4. How to set values in QByteArray?
    By Gokulnathvc in forum Newbie
    Replies: 2
    Last Post: 19th July 2011, 06:44
  5. Get Co-ordinates Values
    By amitpatel22 in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2011, 11:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.