![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsgChannelManager.h,v $ $Revision: 1.35 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtOsgChannelManager_H_ 00014 #define DtOsgChannelManager_H_ 00015 00016 #include <vrvOsg/vrvOsg.h> 00017 #include <vrvCore/DtChannelManager.h> 00018 #include <vrvUtil/DtWindowConfiguration.h> 00019 #include <vrvUtil/virtualConstructor.h> 00020 00021 namespace osgViewer 00022 { 00023 class CompositeViewer; 00024 } 00025 00026 namespace makVrv 00027 { 00028 00029 class DtOsgRenderer; 00030 00033 class DT_DLL_VRVOSG DtOsgChannelManager : public DtChannelManager 00034 { 00035 00036 public: 00037 00039 DtOsgChannelManager(DtDe& de,DtWindow* window, 00040 DtChannelConfigurations& channelConfigs); 00041 00043 virtual ~DtOsgChannelManager(); 00044 00046 virtual void destroyChannel(const std::string& displayName, const std::string& windowName, 00047 const std::string& channelName); 00048 00049 osgViewer::CompositeViewer* viewer(); 00050 00051 protected: 00052 00054 DtChannel* realizeConfiguration(DtChannelConfiguration& config); 00055 00056 DtOsgRenderer* myRenderer; 00057 00058 }; 00059 00060 class DtOsgChannelManagerCreator : public DtChannelManagerCreator 00061 { 00062 public: 00063 00066 virtual DtChannelManager* create(DtDe& anIG, DtWindow* window, 00067 DtChannelConfigurations& channelConfigs); 00068 00069 }; 00070 } 00071 00072 #endif 00073