Results 1 to 9 of 9

Thread: Plotting around 1000 shape items in qwt polar/ qwt plot. Help needed.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    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: Plotting around 1000 shape items in qwt polar/ qwt plot. Help needed.

    When you don't need to scale the vehicles according to the scales I would go with symbols instead of shapes. QPainterPath can be use for both, but the advantage of QwtSymbols implements a pixmap cache, what might be of importance for the performance when having 1000 of them ( at least on graphic stacks running the raster paint engine ).

    Next you have to decide:


    • QwtPlotCurve
    • QwtPlotMarker
    • a customized plot item displaying 3D points ( like QwtPlotSpectroCurve ) - the z value would be for the vehicle type.


    When having a limited number of vehicle categories ( trucks, small car, big car ... ) you could implement it using one curve for each category. In terms of rendering performance this will be the most performant implementation, but might be a problem, when you need to implement operations on individual element ( f.e drag&drop or controlling an specific stacking order ). When using markers you will have 1000 plot items, what means some overhead, when the plot framework iterates over all items ( f.e. finding the combined bounding rectangle for autoscaling ).

    Uwe

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

    vishaal_sss (11th February 2015)

Similar Threads

  1. Replies: 7
    Last Post: 15th May 2019, 09:44
  2. system gets struced when add 1000+ QPixmap items to scene
    By prasad.ece2 in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2014, 07:48
  3. Problem in plotting 3D plot using QWT
    By johnMick in forum Newbie
    Replies: 1
    Last Post: 15th July 2011, 11:19
  4. Replies: 1
    Last Post: 9th September 2010, 10:22
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

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.