Results 1 to 4 of 4

Thread: QwtPolarPlot as radar display. Plotting in realtime.

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default QwtPolarPlot as radar display. Plotting in realtime.

    Hello
    I need to implement something similar to military radar display.
    I have a program that generates many vector's of doubles (std::vector<double>) and stores them in boost::circular_buffer. Now I need to implement a polar plot to display it in real time, as they are pushed into the buffer.

    I've also found QwtPolar that ideally suits my needs (spectrogram version). But it needs QwtRasterData on input and create the plot.
    My question is: is there a way to implement real time radar display using qwtpolar (or other qwt/qt widgets).
    Last edited by crooveck; 14th March 2013 at 10:13.

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

    Default Re: QwtPolarPlot as radar display. Plotting in realtime.

    The spectrogram example shows how to display a spectrogram - if you don't want this I can't see how this example suits your needs.
    As you have a vector of points it looks more like you want to display a QwtPolarCurve on a polar plot - but what is your question then ?

    Uwe

  3. #3
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QwtPolarPlot as radar display. Plotting in realtime.

    Thanks for your reply Uwe.
    I don't have a vector of points, but many vectors of doubles. Single vector<double> represents data in radial position. If I had 360 vectors like that, I could draw a full circle with 1deg interval. In places where my double value is higher colour changes... that's exactly what polar spectrogram is.
    The problem is, that I'm adding new vectors of double in realtime to the buffer. That's not static data. I do many and many rounds with my "virtual radar antenna" and I i just need that vectors to be drawn on a polar plot, according to the antenna angle.
    My ideal data structure would be something like a standard QwtRasterData but with some functionality of a buffer, into which I can push new vector<double> and each time new data is pushed, plot is refreshing or only new data appears on a plot.

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

    Default Re: QwtPolarPlot as radar display. Plotting in realtime.

    Well this doesn't sound like raster data to me - isn't it more like vector data spanning a region in polar coordinates. Then the region has to be filled where the color of each pixel depends on the distance from the origin ?

    Uwe

Similar Threads

  1. QwtPolarPlot questions
    By Galabis in forum Qwt
    Replies: 4
    Last Post: 28th June 2012, 06:16
  2. Animating a QwtPolarPlot
    By bwnicewo in forum Qt Programming
    Replies: 0
    Last Post: 8th June 2012, 17:54
  3. Replies: 10
    Last Post: 1st April 2012, 08:55
  4. Fast image plotting and display
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 6th December 2008, 13:29
  5. how can i display curve in realtime?
    By blm in forum Qt Programming
    Replies: 1
    Last Post: 11th September 2008, 20:03

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.