VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtSharedLoaderSettings.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCore/DtSharedSettings.h>
00013 #include <vrvCore/DtSettingsBackupManager.h>
00014 #include <makArchives/DtLoaderSettingsRecord.h>
00015 
00016 #include <vrvCore/DtRecordSettingsBackup.h>
00017 
00018 #include <string>
00019 #include <vector>
00020 
00021 namespace makArchives
00022 {
00023    class DtLoaderSettingsRecord;
00024 }
00025 
00026 namespace makVrv
00027 {
00028 
00029    class DtDe;
00030    class DtSharedLoaderSettings;
00031 
00032    typedef DtSharedRecordSettingsBackup<DtSharedLoaderSettings,
00033       makArchives::DtLoaderSettingsRecord> DtLoaderSettingsBackup;
00034 
00037    class DT_DLL_VRVCORE DtSharedLoaderSettings : public DtSharedSettings
00038    {
00039    public:
00040 
00042       virtual ~DtSharedLoaderSettings();
00043 
00046 
00047       bool ddsFlip() const;
00048       void setDdsFlip(bool flip);
00049 
00050       int metaFlightPerformanceBias() const;
00051       void setMetaFlightPerformanceBias(int setting);
00052 
00053       float metaFlightGeometryOffsetFactor() const;
00054       void setMetaFlightGeometryOffsetFactor(float val);
00055 
00056       bool metaFlightCompressVirtualTextures() const;
00057       void setMetaFlightCompressVirtualTextures(bool val);
00058 
00060 
00062       void setFromRecord( const makArchives::DtLoaderSettingsRecord& rec );
00063 
00065       void getRecord( makArchives::DtLoaderSettingsRecord& rec ) const;
00066 
00067       const DtLoaderSettingsBackup* settingsBackup() const
00068       {
00069          return mySettingsBackup;
00070       }
00071 
00072       DtLoaderSettingsBackup* settingsBackup()
00073       {
00074          return mySettingsBackup;
00075       }
00076 
00078       virtual void backup();
00079 
00081       static std::string className();
00082 
00083    protected:
00084 
00086       friend class DtReadSettingsLock<DtSharedLoaderSettings>;
00087       friend class DtWriteSettingsLock<DtSharedLoaderSettings>;
00088       friend class DtSharedSettingsManager;
00089 
00091       DtSharedLoaderSettings(DtSharedSettingsManager& manager);
00092 
00093    protected:
00094 
00095       int myMetaFlightPerformanceBias;
00096       bool myDdsFlip;
00097       float myMetaFlightGeometryOffsetFactor;
00098       bool myMetaFlightCompressVirtualTextures;
00099 
00100       DtLoaderSettingsBackup* mySettingsBackup;
00101 
00102    };
00103 
00104 }

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)