Results 1 to 6 of 6

Thread: a few questions about using QwtMatrixRasterData (and other classes)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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: a few questions about using QwtMatrixRasterData (and other classes)

    I have 4 colors. in my case it's very necessary to have only clear colors without smooth gradient between each color.
    can I achieve it with this component? and how... may be try another alternative?
    How to map values to colors is the job of the color map. You can write your own one, but I guess setting QwtLinearColorMap::FixedColors mode is all what needs to be done.
    hereby we have coordinates in the hint near cursor (x, y)
    how to add here the third value of z axis?
    pos is the position in plot coordinates. All you need to do is to ask the matrix raster data object for the z value at the position.
    How to disable zooming out below a certain value (for example when the pic fit to width)?
    Depends on how you have implemented zooming.

    F.e. QwtPlotZoomer never zooms out of the initial scale ranges, that have been set by the application. Here the answer would be simply: don't assign scale ranges you don't want to have.

    Uwe

  2. The following user says thank you to Uwe for this useful post:

    layer (7th March 2013)

Similar Threads

  1. Replies: 3
    Last Post: 11th July 2012, 06:56
  2. Replies: 8
    Last Post: 2nd November 2011, 16:31
  3. Replies: 13
    Last Post: 22nd August 2011, 20:12
  4. Bugs in QwtMatrixRasterData?
    By alex_sh in forum Qwt
    Replies: 13
    Last Post: 23rd January 2011, 11:59
  5. construction of classes within classes
    By mobucl in forum Newbie
    Replies: 8
    Last Post: 10th January 2011, 13:51

Tags for this Thread

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.