Results 1 to 7 of 7

Thread: Fill area with color depending on third value array

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: Fill area with color depending on third value array

    I recommend to use one of the development branches > Qwt 6.1, where you find the FilterPointsAggressive flag, that will reduce the number of points to be painted to a reasonable number.

    Then overload QwtPlotCurve::fillCurve, the polygon parameter contains the points to be painted already being translated in widget coordinates. When using the QwtScaleMap
    you can always translate between widget and plot coordinates.

    Have a look at the implementation of QwtPlotCurve::fillCurve - the code is only truth, when trying to understand how certain things work.

    HTH,
    Uwe

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

    Vasya (26th February 2020)

Similar Threads

  1. Replies: 5
    Last Post: 17th December 2014, 13:07
  2. Replies: 10
    Last Post: 7th March 2012, 19:22
  3. Replies: 3
    Last Post: 7th September 2011, 13:26
  4. Fill area of QPainterPath
    By vides2012 in forum Qt Programming
    Replies: 6
    Last Post: 17th June 2011, 14:00
  5. Replies: 1
    Last Post: 9th May 2011, 16:19

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.