Results 1 to 3 of 3

Thread: Circular Buffering - Removing Points

  1. #1
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Circular Buffering - Removing Points

    Hi All -

    I'm working with a "scatter" type plot (QwtPlotCurve without the curve) to display data contained in a large circular buffer (200k points updating at around 2k-5k points per second). Adding points to the plot at this rate is no problem - I'm using the DirectPainter and everything is running fine. What I would like to do is remove the points from the plot as they get overwritten in the circular buffer. Is there a trick to this that I haven't found, or does this imply re-plotting the whole buffer? What about something simple like overwriting the next block of points with white-colored points?

    Thanks much,

    Joe.

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

    Default Re: Circular Buffering - Removing Points

    In earlier Qt versions ( Qt 3 ) you had the possibility to paint in XOR mode, but today I'm not aware of any technique to erase something - beside replotting. Maybe there are some optimizations possible using of the characteristics of your samples ( f.e. when they are ordered ).

    Uwe

  3. #3
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Circular Buffering - Removing Points

    Thanks for the reply, Uwe. Optimizing the data somehow was what I was thinking I was going to have to do. We'll see if I can come up with something witty.

    Thanks,

    Joe.

Similar Threads

  1. QUdpSocket Buffering - Approach?
    By xavierda in forum Newbie
    Replies: 6
    Last Post: 31st May 2010, 16:11
  2. Circular QLinkedList
    By dyngoman in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2010, 08:57
  3. double buffering
    By HelloDan in forum Newbie
    Replies: 10
    Last Post: 31st March 2009, 03:14
  4. Double Buffering for plot graphs
    By Tavit in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 13:10
  5. Is there a circular reference here?
    By rh in forum General Programming
    Replies: 3
    Last Post: 22nd January 2006, 21: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.