Results 1 to 6 of 6

Thread: Clip existing ContourLines of QwtPlotSpectrogram

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Clip existing ContourLines of QwtPlotSpectrogram

    This is a bug in Qwt, but you can work around it easily:

    Qt Code:
    1. virtual ContourLines YourRasterData::contourLines(
    2. const QwtDoubleRect &rect,
    3. const QSize &raster, const QList<double> &levels,
    4. int flags) const
    5. {
    6. QwtDoubleRect area = rect;
    7. if ( boundingRect().isValid() )
    8. area &= boundingRect();
    9.  
    10. return QwtRasterData::contourLines(area, raster, levels flags);
    11. }
    To copy to clipboard, switch view to plain text mode 

    Or you can use the code from SVN ( 5.2 branch ).

    Uwe

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

    Keir (20th February 2009)

  3. #2
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1

    Default Re: Clip existing ContourLines of QwtPlotSpectrogram

    Superb! Thank you.

  4. #3
    Join Date
    Feb 2009
    Posts
    51
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: Clip existing ContourLines of QwtPlotSpectrogram

    Hi,

    I am also trying to use contour in my program and confused about the qwt contour program. Do I need to implement some contour algorithm to fill my data with points of (x, y, v) or those points have been figured out by the qwt library? I mean, I have a set of (x, y, v) points but the number of those points is just a few and cannot certainly fill up all the display. And if I am to enter the data, where in the Qwt structure should I enter them?

    Any help is greatly appreciated.
    Sincerely,

    Wieland J.

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.