osgEarth 2.1.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes

osgEarth::Symbology::Registry Class Reference

Inheritance diagram for osgEarth::Symbology::Registry:
Collaboration diagram for osgEarth::Symbology::Registry:

List of all members.

Public Types

typedef std::map< std::string,
osg::ref_ptr
< SymbolDisplayFunctor > > 
SymbolDisplayMap

Public Member Functions

 Registry ()
SymbolDisplayFunctorgetOrCreateDisplay (const std::string &symbol)

Static Public Member Functions

static Registryinstance (bool erase=false)

Protected Attributes

SymbolDisplayMap _symbols

Detailed Description

Interface for an object that compiles attributed geometry into OSG scene graph elements based on a Style and a SymbologyContext.

Definition at line 35 of file Registry.


Member Typedef Documentation

typedef std::map<std::string, osg::ref_ptr<SymbolDisplayFunctor> > osgEarth::Symbology::Registry::SymbolDisplayMap

Definition at line 44 of file Registry.


Constructor & Destructor Documentation

Registry::Registry ( )

Definition at line 24 of file Registry.cpp.

{
}

Member Function Documentation

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
}

Here is the call graph for this function:


Member Data Documentation

SymbolDisplayMap osgEarth::Symbology::Registry::_symbols [protected]

Definition at line 48 of file Registry.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines