Adaption of FreeCAD to QuarterWidget

-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
This commit is contained in:
Stefan Tröger
2014-07-19 15:18:14 +02:00
committed by wmayer
parent e1265c874d
commit 72cab0c002
74 changed files with 1855 additions and 1180 deletions

View File

@@ -31,7 +31,6 @@
#include <QApplication>
#include <QIcon>
#include <QThread>
#include <Inventor/Qt/SoQt.h>
#if defined(Q_OS_WIN)
#include <windows.h>
#elif defined(Q_WS_X11)
@@ -46,7 +45,8 @@
#include <Gui/BitmapFactory.h>
#include <Gui/MainWindow.h>
#include <Gui/SoFCDB.h>
#include <Gui/Quarter/Quarter.h>
#include <Inventor/SoDB.h>
static
QWidget* setupMainWindow();
@@ -163,7 +163,7 @@ FreeCADGui_setupWithoutGUI(PyObject * /*self*/, PyObject *args)
if (!SoDB::isInitialized()) {
// init the Inventor subsystem
SoDB::init();
SoQt::init("FreeCAD");
SIM::Coin3D::Quarter::Quarter::init();
}
if (!Gui::SoFCDB::isInitialized()) {
Gui::SoFCDB::init();
@@ -260,7 +260,7 @@ QWidget* setupMainWindow()
if (!SoDB::isInitialized()) {
// init the Inventor subsystem
SoDB::init();
SoQt::init(mw);
SIM::Coin3D::Quarter::Quarter::init();
Gui::SoFCDB::init();
}