osgEarth 2.1.1
|
Public Types | |
typedef std::map< std::string, osg::ref_ptr < SymbolDisplayFunctor > > | SymbolDisplayMap |
Public Member Functions | |
Registry () | |
SymbolDisplayFunctor * | getOrCreateDisplay (const std::string &symbol) |
Static Public Member Functions | |
static Registry * | instance (bool erase=false) |
Protected Attributes | |
SymbolDisplayMap | _symbols |
Interface for an object that compiles attributed geometry into OSG scene graph elements based on a Style and a SymbologyContext.
typedef std::map<std::string, osg::ref_ptr<SymbolDisplayFunctor> > osgEarth::Symbology::Registry::SymbolDisplayMap |
Registry::Registry | ( | ) |
Definition at line 24 of file Registry.cpp.
{ }
SymbolDisplayFunctor * Registry::getOrCreateDisplay | ( | const std::string & | symbol | ) |
Definition at line 39 of file Registry.cpp.
{ if (_symbols.find(symbol) == _symbols.end()) { _symbols[symbol] = new SymbolDisplayFunctor; } return _symbols[symbol].get(); }
Registry * Registry::instance | ( | bool | erase = false | ) | [static] |
Definition at line 28 of file Registry.cpp.
{ static osg::ref_ptr<Registry> s_registry = new Registry; if (erase) { s_registry = 0; } return s_registry.get(); // will return NULL on erase }
SymbolDisplayMap osgEarth::Symbology::Registry::_symbols [protected] |