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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user