![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtSimpleDeWidget.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvOsgQt/vrvOsgQt.h> 00015 #include <vrvCore/DtWindow.h> 00016 #include <QtGui/QWidget> 00017 00018 namespace makVrv 00019 { 00020 class DtDe; 00021 class DtPluginManager; 00022 class DtOsgAdapterQtWidget; 00023 00026 class DT_DLL_VRVOSGQT DtSimpleDeWidget : public QWidget 00027 { 00028 Q_OBJECT 00029 00030 public: 00031 00033 DtSimpleDeWidget(QWidget * parent = 0, Qt::WindowFlags f = 0 ); 00034 00036 virtual ~DtSimpleDeWidget(); 00037 00038 DtDe* de(); 00039 00040 DtOsgAdapterQtWidget* adapterWidget(); 00041 00042 void buildAdapterWidget(); 00043 00044 void buildTicker(); 00045 00046 protected: 00047 00048 void createIg(); 00049 00050 void preIgInitialize(); 00051 00052 void overrideIgFunctionality(); 00053 00054 void igInitialize(); 00055 00056 void postIgInitialize(); 00057 00058 virtual void resizeEvent( QResizeEvent* event); 00059 00060 protected: 00061 00062 DtDe* myDe; 00063 DtPluginManager* myPluginManager; 00064 DtOsgAdapterQtWidget* myAdapterWidget; 00065 00066 }; 00067 00070 class DT_DLL_VRVOSGQT DtSimpleDeWidgetCreator : public DtWindowCreator 00071 { 00072 00073 public: 00074 00075 DtSimpleDeWidgetCreator(DtSimpleDeWidget* pWidget); 00076 00078 virtual DtWindow* create(DtDe& de, DtWindowConfiguration& wc); 00079 00080 protected: 00081 00082 DtSimpleDeWidget* myWidget; 00083 00084 }; 00085 }