VR-Forces 4.0.4 Class Documentation
include/vrvOsg/DtOsgFontManager.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2009 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtOsgFontManager.h,v $ $Revision: 1.2 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtOsgFontManager_H_ 
00014 #define DtOsgFontManager_H_ 
00015  
00016 #include <vrvOsg/vrvOsg.h> 
00017 
00018 #include <vrvUtil/DtVirtualBaseClass.h>
00019 
00020 #include <osg/ref_ptr>
00021 
00022 #include <string>
00023 #include <map>
00024 
00025 namespace osgText
00026 {
00027    class Font;
00028 }
00029 
00030 namespace makVrv 
00031 { 
00032    class DtDe;
00033 
00036    class DT_DLL_VRVOSG DtOsgFontManager : public DtVirtualBaseClass
00037    {
00038 
00039    public:
00040 
00041 
00044       static DtOsgFontManager& instance(DtDe& de);
00045 
00047       virtual osgText::Font* getFont( const std::string& fontName );
00048 
00049    protected:
00050 
00051       DtOsgFontManager(DtDe& de);
00052 
00053    protected: 
00054       typedef std::map<std::string, osg::ref_ptr<osgText::Font> > FontMap;
00055 
00056       DtDe& myDe;     
00057       FontMap myFontMap;
00058 
00059    };
00060 } 
00061  
00062 #endif 
00063  

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)