![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2011 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00011 00012 #pragma once 00013 00014 #include <vrvCore/DtDriver.h> 00015 #include <makArchives/DtEnvironmentRecord.h> 00016 00017 #include "exampleCloudDriverPlugin.h" // for exports 00018 #include "DtCloudDriverCommon.h" 00019 00020 namespace makVrv 00021 { 00022 class DtDe; 00023 00024 namespace vrvExampleCloudDriver 00025 { 00026 class DtCloudParser; 00027 00030 class DT_DLL_EXAMPLECLOUDDRIVER DtCloudDriver : public makVrv::DtDriver 00031 { 00032 public: 00033 00035 DtCloudDriver(DtAgentManager& am); 00036 00038 virtual ~DtCloudDriver(); 00039 00041 virtual const std::string& className() const; 00042 00043 protected: 00045 virtual bool onStart(); 00046 00048 virtual bool onStop(); 00049 00052 virtual bool onTick(); 00053 00055 void makeClouds(const DtCloudParser& parser); 00056 00058 void makeWind(const DtCloudParser& parser); 00059 00061 void on_cloudLayerAdded(int index); 00062 00064 void on_cloudLayerDestroyed(int index); 00065 00066 protected: 00067 double myLastUpdate; 00068 00069 makArchives::DtEnvironmentRecord::CloudLayerRecordList myCloudLayers; 00070 WindList myWindList; 00071 }; 00072 } 00073 }