![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtQtModelSetStringProvider.h,v $ $Revision: 1.16 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvCoreQt/vrvCoreQt.h> 00015 #include <vrvCore/DtModelSetStringProvider.h> 00016 #include <boost/bimap.hpp> 00017 00018 namespace makVrv 00019 { 00020 00021 class DtDe; 00022 00028 class DT_DLL_VRVCOREQT DtQtModelSetStringProvider : 00029 public DtModelSetStringProvider 00030 { 00031 00032 public: 00033 00035 DtQtModelSetStringProvider(DtDe& de); 00036 00038 virtual ~DtQtModelSetStringProvider(); 00039 00041 virtual void getModelSetList( StringList& outList ) const; 00042 00044 virtual DtUnicode modelSetToString( int modelSet ) const; 00045 00047 virtual int stringToModelSet( const DtUnicode& modelSetString ) const; 00048 00050 int numModelSets() const; 00051 00054 virtual void setModelSetName( int modelSet, const DtUnicode& name ); 00055 00056 protected: 00057 00058 typedef boost::bimap<DtUnicode, int> ModelSetMap; 00059 DtDe& myDe; 00060 ModelSetMap myModelSetMap; 00061 }; 00062 }