Results 1 to 10 of 10

Thread: Plotting with OpenGL, searching for best library to use

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2016
    Posts
    57
    Thanks
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Plotting with OpenGL, searching for best library to use

    d_stranz,

    So how is it going for you now with VTK? How easy it is to integrate it with Qt? Have you already managed to do for example some basic Cosine plot with it in a Qt application? Could you share some details if you did, or links to guides maybe? because the guides I see online are not much into specifically doing it with Qt programs.

    Also, how efficient you think is openGL utilized in VTK? And is there big overhead in upper layer code?

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Plotting with OpenGL, searching for best library to use

    Hello! I'm a computer scientist with a similar problem, I also have to plot a lot of data in 2D and 3D for experimentation and presentation. After walking down this road for a while and not finding anything overly convincing, I ended up implementing my own little "framework" based on QPainter for 2D plotting and OpenGL for 3D plotting. Since I always plot graphs of time sequenced data, all I needed for 2D plotting is a QPainter and drawing lines. I made it as fast as can be by culling data that is not on the screen, and skipping lines that would draw into the same pixel as previously drawn lines. I added a few features for scaling and translating the plot widget and individual curves, and have been happily using this nifty little tool now for five years with almost no changes to the code. For generating PDFs and plots of conference papers, I export the relevant data and use gnuplot. For 3D plotting I use libQGLViewer to set up a camera-manipulatable plotting environment, and write OpenGL code for pretty much every individual plot. This doesn't take much time, say one hour development time per plot, not significantly more than you would need when using the interface of a well documented library. In my case I find that 3D plots are usually individual to the problem and most of the time spent on them is lost in thinking about what actually one wants to see, and what one does not, in order to be able to read conclusions out of a plot. Drawing points, lines, spheres, or quadrangles in OpenGL is pretty easy, it is the things around it (setting up a window and the OpenGL environment) that may be challenging for a beginner.

Similar Threads

  1. Replies: 2
    Last Post: 21st January 2016, 17:16
  2. Qt Creator Using alternate openGL library/header files in QT Creator
    By Willybood in forum Qt Tools
    Replies: 2
    Last Post: 24th May 2011, 09:06
  3. Replies: 1
    Last Post: 3rd February 2011, 10:38
  4. QAbstractListModel searching.
    By ComaWhite in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2009, 18:41
  5. Searching in a list.
    By kaushal_gaurav in forum Qt Programming
    Replies: 4
    Last Post: 15th October 2008, 08:00

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.