![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2012 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00009 00010 #pragma once 00011 #include <vrvOsgQt/vrvOsgQt.h> 00012 #include <vrvOsg/DtOsgWindow.h> 00013 00014 class QMainWindow; 00015 class QWidget; 00016 00017 namespace makVrv 00018 { 00019 class DtDe; 00020 class DtQtDeMainWindow; 00021 class DtOsgAdapterQtWidget; 00022 class DtQtOsgKeyAdapter; 00023 class DtWindowConfiguration; 00024 00027 class DT_DLL_VRVOSGQT DtDeMainWindowEmbeddedOsgWindow : public DtOsgWindow 00028 { 00029 public: 00030 00034 DtDeMainWindowEmbeddedOsgWindow(DtDe& de, DtWindowConfiguration& wc); 00035 00037 virtual ~DtDeMainWindowEmbeddedOsgWindow(); 00038 00040 virtual int width() const; 00041 00043 virtual int height() const; 00044 00046 virtual bool isValid() const; 00047 00049 virtual void setPosition(int x,int y); 00050 00052 virtual void resize(int width, int height); 00053 00055 virtual void toggleFullScreen(); 00056 00058 virtual bool isFullScreen(); 00059 00061 virtual int screenNumber() const; 00062 00064 DtOsgAdapterQtWidget* adapterWidget(); 00065 00066 protected: 00067 00070 void createAdapterAndContext(QWidget* parent); 00071 00072 protected: 00073 00074 DtQtDeMainWindow* myMainWindow; 00075 DtOsgAdapterQtWidget* myAdapter; 00076 DtQtOsgKeyAdapter* myKeyAdapter; 00077 }; 00078 00082 class DT_DLL_VRVOSGQT DtDeMainWindowEmbeddedOsgWindowCreator 00083 : public DtWindowCreator 00084 { 00085 public: 00086 00087 DtDeMainWindowEmbeddedOsgWindowCreator(); 00088 00089 virtual ~DtDeMainWindowEmbeddedOsgWindowCreator(); 00090 00092 virtual DtWindow* create(DtDe&, DtWindowConfiguration&); 00093 }; 00094 }