PDA

View Full Version : Qwt 3D



UndeadDragon
14th November 2012, 17:04
Hi to all! I'm tried to install Qwt 3D (http://qwtplot3d.sourceforge.net/) - 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 (http://qtlinux.narod.ru/install_qwtplot3d.htm) (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 :)

d_stranz
2nd December 2012, 01:18
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:



/*!
This should be the first call in your derived classes constructors.
*/
#if QT_VERSION < 0x040000
Plot3D::Plot3D( QWidget* parent, const char* name )
: QGLWidget( parent, name )
#else
Plot3D::Plot3D( QWidget * parent, const QGLWidget * shareWidget)
: QGLWidget( parent, shareWidget)
#endif


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



#include "qglobal.h"
#if QT_VERSION < 0x040000
#include <qgl.h>
#else
#include <QtOpenGL/qgl.h>
#include <GL/glu.h>
#endif


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.

d_stranz
17th December 2012, 17:05
By the way, I am working on a port of Jzy3D (http://www.jzy3d.org) (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.

8507

8508

8509

warcraff123456
9th March 2013, 01:10
Thanks for your efforts and good information, d_stranz!
When will it be released?