VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtSkyConditionsManager.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2011 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtSkyConditionsManager.h,v $ $Revision: 1.0 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCore/vrvCore.h>
00016 #include <makArchives/DtSkyConditionsListRecord.h>
00017 #include <makArchives/DtCloudLayerRecord.h>
00018 #include <makArchives/DtEnvironmentRecord.h>
00019 #include <vrvUtil/DtVirtualBaseClass.h>
00020 
00021 static const char* theSkyConditionsFilename = "../appData/settings/vrfSkyConditions.xml";
00022 
00023 namespace makVrv
00024 {   
00025    class DtDe;
00026 
00030    class DT_DLL_VRVCORE DtSkyConditionsManager : public DtVirtualBaseClass
00031    {
00032    public:
00033 
00035       static DtSkyConditionsManager& instance(DtDe& de);
00036 
00038       virtual ~DtSkyConditionsManager();
00039 
00041       unsigned int currentSkyConditions() const;
00042 
00044       virtual void setCurrentSkyConditions( const std::string& value);
00045 
00047       virtual void setCurrentSkyConditions(unsigned int value);
00048 
00050       virtual void createDefaultFile();
00051 
00052    protected:
00053 
00055       DtSkyConditionsManager(makVrv::DtDe&);
00056 
00058       virtual void applySkyCondition( makArchives::DtSkyConditionRecord& rec);
00059 
00061       virtual bool hasCloudLayer(const makArchives::DtCloudLayerRecord& rec) const;
00063       virtual void loadDefaults();
00064 
00066       virtual void saveAsDefaults();
00067 
00068    protected:
00069 
00070       DtDe& myDe;
00071       makArchives::DtSkyConditionsListRecord mySkyConditions;
00072       makArchives::DtEnvironmentRecord::CloudLayerRecordList myCloudLayers;
00073 
00074    };
00075 }
00076 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)