29#ifdef G4VIS_BUILD_OIQT_DRIVER
34#include <Inventor/Qt/SoQt.h>
46#include "moc_G4OpenInventorQt.cpp"
49G4OpenInventorQt::G4OpenInventorQt()
55void G4OpenInventorQt::Initialize()
63 SetInteractorManager(G4SoQt::getInstance());
115G4OpenInventorQt::~G4OpenInventorQt()
125 if (!((G4Qt*)(GetInteractorManager()->GetMainInteractor()))->IsExternalApp()) {
126 QWidget* mainWin = (QWidget*)(GetInteractorManager()->GetMainInteractor());
128 uiQt->AddTabWidget((QWidget*)mainWin,QString(name));
134 G4OpenInventorSceneHandler* pScene = (G4OpenInventorSceneHandler*)&scene;
135 return new G4OpenInventorQtViewer(*pScene, name);
G4UIsession * GetG4UIWindow() const
static G4UImanager * GetUIpointer()