#include <OSGTextFaceFactory.h>
Public Member Functions | |
| ~TextFaceFactory () | |
| TextVectorFace * | createVectorFace (const std::string &family, TextFace::Style style=TextFace::STYLE_PLAIN) |
| TextPixmapFace * | createPixmapFace (const std::string &family, TextFace::Style style=TextFace::STYLE_PLAIN, UInt32 size=32) |
| TextTXFFace * | createTXFFace (const std::string &family, TextFace::Style style=TextFace::STYLE_PLAIN, const TextTXFParam ¶m=TextTXFParam()) |
| void | clearCache () |
| void | getFontFamilies (std::vector< std::string > &families) const |
Static Public Member Functions | |
| static TextFaceFactory & | the () |
Private Types | |
| typedef std::multimap< std::string, TextVectorFace * > | VectorFaceMap |
| typedef std::multimap< std::string, TextPixmapFace * > | PixmapFaceMap |
| typedef std::multimap< std::string, TextTXFFace * > | TXFFaceMap |
Private Member Functions | |
| TextFaceFactory () | |
| TextFaceFactory (const TextFaceFactory &) | |
| const TextFaceFactory & | operator= (const TextFaceFactory &) |
Private Attributes | |
| TextBackend * | _backend |
| VectorFaceMap | _vectorFaceMap |
| PixmapFaceMap | _pixmapFaceMap |
| TXFFaceMap | _txfFaceMap |
Static Private Attributes | |
| static TextFaceFactory | _the |
Definition at line 78 of file OSGTextFaceFactory.h.
|
|
Defines the map that contains the vector faces Definition at line 153 of file OSGTextFaceFactory.h. |
|
|
Defines the map that contains the pixmap faces Definition at line 159 of file OSGTextFaceFactory.h. |
|
|
Defines the map that contains the TXF faces Definition at line 165 of file OSGTextFaceFactory.h. |
|
|
Destroys the TextFaceFactory object. Definition at line 96 of file OSGTextFaceFactory.cpp. References _backend, and clearCache(). 00097 { 00098 clearCache(); 00099 delete _backend; 00100 }
|
|
|
Default Constructor Definition at line 76 of file OSGTextFaceFactory.cpp. References _backend. 00077 : _backend(), _vectorFaceMap(), _pixmapFaceMap(), _txfFaceMap() 00078 { 00079 #if defined(_WIN32) 00080 _backend = new TextWIN32Backend(); 00081 #elif defined(__APPLE__) 00082 _backend = new TextMacBackend(); 00083 //_backend = new TextFT2Backend(); 00084 #elif defined(FT2_LIB) 00085 _backend = new TextFT2Backend(); 00086 #else 00087 _backend = 0; 00088 #endif 00089 }
|
|
|
Copy constructor (not implemented!) |
|
||||||||||||
|
Tries to create a vector face.
Referenced by osg::TextVectorFace::create(). |
|
||||||||||||||||
|
Tries to create a pixmap face.
Referenced by osg::TextPixmapFace::create(). |
|
||||||||||||||||
|
Tries to create a TXF face.
|
|
|
Removes all faces from the face cache. Definition at line 196 of file OSGTextFaceFactory.cpp. References _pixmapFaceMap, _txfFaceMap, _vectorFaceMap, and osg::subRefP(). Referenced by ~TextFaceFactory(). 00197 { 00198 // Vector faces 00199 VectorFaceMap::iterator vIt; 00200 for (vIt = _vectorFaceMap.begin(); vIt != _vectorFaceMap.end(); ++vIt) 00201 { 00202 assert(vIt->second != 0); 00203 subRefP(vIt->second); 00204 } 00205 _vectorFaceMap.clear(); 00206 00207 // Pixmap faces 00208 PixmapFaceMap::iterator pIt; 00209 for (pIt = _pixmapFaceMap.begin(); pIt != _pixmapFaceMap.end(); ++pIt) 00210 { 00211 assert(pIt->second != 0); 00212 subRefP(pIt->second); 00213 } 00214 _pixmapFaceMap.clear(); 00215 00216 // TXF faces 00217 TXFFaceMap::iterator tIt; 00218 for (tIt = _txfFaceMap.begin(); tIt != _txfFaceMap.end(); ++tIt) 00219 { 00220 assert(tIt->second != 0); 00221 subRefP(tIt->second); 00222 } 00223 _txfFaceMap.clear(); 00224 }
|
|
|
Returns the names of all font families available.
|
|
|
Returns the single instance of the FaceFactory singleton.
Definition at line 43 of file OSGTextFaceFactory.inl. References _the. Referenced by osg::TextVectorFace::create(), and osg::TextPixmapFace::create(). 00043 { return _the; }
|
|
|
Copy operator (not implemented!) |
|
|
The single instance of the TextFaceFactory singleton Definition at line 69 of file OSGTextFaceFactory.cpp. Referenced by the(). |
|
|
The backend that creates all faces Definition at line 150 of file OSGTextFaceFactory.h. Referenced by TextFaceFactory(), and ~TextFaceFactory(). |
|
|
The map of vector faces currently instantiated (face cache) Definition at line 156 of file OSGTextFaceFactory.h. Referenced by clearCache(). |
|
|
The map of pixmap faces currently instanciated (face cache) Definition at line 162 of file OSGTextFaceFactory.h. Referenced by clearCache(). |
|
|
The map of TXF faces currently instantiated (face cache) Definition at line 168 of file OSGTextFaceFactory.h. Referenced by clearCache(). |
1.4.3