Results 1 to 3 of 3

Thread: How to a waveform in real time in a desktop Application

  1. #1
    Join Date
    Mar 2018
    Beans
    2

    How to a waveform in real time in a desktop Application

    Hi All,

    I new to ubuntu and not familiar with most of the GUI toolkit which helps me draw a waveform in screen and will keep change based on the update.
    I have created a GTK Window with Drawing Area.
    Now I Can't think a way to use this show a waveform which will keep updating based on the input. Am I going in a right direction?

    I have looked into the following link :
    Drawing single pixel (again...)

    But I am not able to access the source that is been shared in this link.
    Any help will be great support. Thanks a lot.

    --Minakshi

  2. #2
    Join Date
    Jan 2017
    Beans
    62

    Re: How to a waveform in real time in a desktop Application

    Here's a link to a GTK3 Line Graph widget: https://github.com/skoona/glinegraph-cairo
    I have not used this widget except to help the developer solve a problem a couple of years ago. If you can't use the widget maybe the code will give you some idea how to proceed.

    In lieu of building and installing the whole package, you can compile and run the example like this:
    download and extract the zip file
    cd to the src/ directory
    gcc $(pkg-config --libs --cflags gtk+-3.0) *.c -o executable
    ./executable


    If you are interested in Qt, Qwt is a lib that I have used: http://qwt.sourceforge.net/ There is an example of a moving plot.
    Also, the lead dev answers questions here: http://www.qtcentre.org/forums/23-Qwt

  3. #3
    Join Date
    Mar 2018
    Beans
    2

    Re: How to a waveform in real time in a desktop Application

    Hi,

    Thanks for response on my query. Actually I don't need to draw a curve or something.
    I want to have black surface which I can treat as a collection of pixels.
    So when get a notification to update the pixel position, then I simply fetch and update the pixel.

    My intention is to use a Application window in place of fb. Any pointer will be a great help.

    --Minakshi

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
  •