Results 1 to 4 of 4

Thread: Qwt 3D

  1. #1
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded

    Default Qwt 3D

    Hi to all! I'm tried to install Qwt 3D - it is old but good library for 3D plots but it dosnt work. I'm tried everyone way that i can think
    Tried to do qmake on .pro (but it created MSVS project, that dosnt compile), tried to reconfig .pro for nmake (but the same errors at compile), tried to do this instruction (it is on russian).
    Please help me to finally install this or compile this library for me.
    Thanks a lot!
    P.S. I'm working with Qt under MS VS 2010. And sorry for my bad english

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qwt 3D

    I have attached an MSVS 2008 project file that I use to build Qwt 3D. You can probably import it into MSVS 2010 and get it to work. The only thing it requires is an environment variable $(QTDIR) that points to the top level of your Qt installation.

    There are a couple of other minor changes. In qwt3d_plot.cpp, replace the implementation of the Plot3D constructor with this:

    Qt Code:
    1. /*!
    2.   This should be the first call in your derived classes constructors.
    3. */
    4. #if QT_VERSION < 0x040000
    5. Plot3D::Plot3D( QWidget* parent, const char* name )
    6. : QGLWidget( parent, name )
    7. #else
    8. Plot3D::Plot3D( QWidget * parent, const QGLWidget * shareWidget)
    9. : QGLWidget( parent, shareWidget)
    10. #endif
    To copy to clipboard, switch view to plain text mode 

    In qwt3d_openglhelper.h, the includes should be changed to this:

    Qt Code:
    1. #include "qglobal.h"
    2. #if QT_VERSION < 0x040000
    3. #include <qgl.h>
    4. #else
    5. #include <QtOpenGL/qgl.h>
    6. #include <GL/glu.h>
    7. #endif
    To copy to clipboard, switch view to plain text mode 

    Other than that, I am building the library from the original 2004 - 2005 sources that are the most recent on SourceForge. This also presumes that you have an OpenGL installation on your PC, which you almost certainly do if you can build Qt from sources.
    Attached Files Attached Files

  3. The following user says thank you to d_stranz for this useful post:

    UndeadDragon (12th December 2012)

  4. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qwt 3D

    By the way, I am working on a port of Jzy3D (a Java 3D scientific graphics library) to Qt. I have finished the majority of the work, and am now working on debugging and cleaning up memory leaks. It will probably be hosted on the Jzy3D web site and I will make announcements here. See the attached screen shots for what can be done with it. It will be released with the same license as Jzy3D.

    HeightMap.jpg

    CompositeDemo.jpg

    Delaunay.jpg

  5. #4
    Join Date
    Feb 2013
    Posts
    4
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt 3D

    Thanks for your efforts and good information, d_stranz!
    When will it be released?

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.