VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgFontManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgFontManager_H_
11 #define DtOsgFontManager_H_
12 
13 #include <vrvOsg/vrvOsg.h>
14 
16 
17 #include <osg/ref_ptr>
18 
19 #include <string>
20 #include <map>
21 
22 namespace osgText
23 {
24  class Font;
25 }
26 
27 namespace makVrv
28 {
29  class DtDe;
30 
34  {
35 
36  public:
37 
38 
41  static DtOsgFontManager& instance(DtDe& de);
42 
44  virtual osgText::Font* getFont( const std::string& fontName );
45 
46  protected:
47 
49 
50  protected:
51  typedef std::map<std::string, osg::ref_ptr<osgText::Font> > FontMap;
52 
55 
56  };
57 }
58 
59 #endif
60 
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtDe & myDe
Definition: DtOsgFontManager.h:53
Contains makVrv::DtVirtualBaseClass class.
The DtOsgFontManager caches ttf fonts for it clients.
Definition: DtOsgFontManager.h:33
std::map< std::string, osg::ref_ptr< osgText::Font > > FontMap
Definition: DtOsgFontManager.h:51
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
FontMap myFontMap
Definition: DtOsgFontManager.h:54

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)