VR-Forces 4.0.4 Class Documentation
include/vrvCigiQt/DtCigiModelStateMappingLogic.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2009 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: DtCigiModelStateMappingLogic.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00012 
00013 #ifndef DtCigiModelStateMappingLogic_H_
00014 #define DtCigiModelStateMappingLogic_H_
00015 
00016 #include <vrvCigiQt/vrvCigiQt.h>
00017 #include <vrvCigiQt/DtCigiSettingsLogic.h>
00018 
00019 #include <QtCore/QStringList>
00020 
00021 namespace makVrv
00022 {
00023    class DtDe;
00024    class DtCigiModelStateMappingInterface;
00025    class DtModelSemanticsMapper;
00026    class DtMapEditorInterface;
00027    class DtSharedCigiSettingsManager;
00028    class DtPersistenceControlsInterface;
00029    class DtSettingsBackup;
00030 
00034    class DT_DLL_VRVCIGIQT DtCigiModelStateMappingLogic : public DtCigiSettingsLogic
00035    {
00036    public:
00038       DtCigiModelStateMappingLogic(DtDe& de, DtCigiModelStateMappingInterface*
00039          componentMapIf, DtCigiSettingsInterface* settingsIf, 
00040          DtMapEditorInterface* editorIf,
00041          DtPersistenceControlsInterface* toolbarIf);
00042 
00044       virtual ~DtCigiModelStateMappingLogic();
00045 
00046    protected:
00048       virtual void updateValues();
00049 
00051       virtual void initializeStateStrings();
00052 
00054       virtual void on_valueAdded(const std::string& key, const std::string& value, int index);
00055 
00057       virtual void on_valueDeleted(const std::string& key);
00058 
00060       virtual void on_valueRenamed(const std::string& oldName, const std::string& newName);
00061       virtual void cigiMappingsRestored(const DtSettingsBackup* s);
00062 
00063    protected:
00064       DtCigiModelStateMappingInterface& myMapInterface;
00065       DtMapEditorInterface&            myEditorInterface;
00066       DtModelSemanticsMapper&          myModelSemanticsMapper;
00067       QStringList                      myStateStrings;
00068       std::map<int, std::string>       myStateIdToNameMap;
00069       std::map<std::string, int>       myNameToStateIdMap;
00070    };
00071 }
00072 
00073 #endif

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)