osgEarth 2.1.1
|
Public Member Functions | |
std::string & | name () |
const std::string & | name () const |
virtual Config | getConfig () const |
void | mergeConfig (const Config &conf) |
Protected Member Functions | |
Resource (const Config &config=Config()) | |
Private Attributes | |
std::string | _name |
Base class for a Resource, which is an external data element managed by a ResourceLibrary.
Definition at line 25 of file Resource.cpp.
{ mergeConfig( conf ); }
Config Resource::getConfig | ( | ) | const [virtual] |
Reimplemented in osgEarth::Symbology::MarkerResource, and osgEarth::Symbology::SkinResource.
Definition at line 39 of file Resource.cpp.
{ Config conf( "resource" ); conf.attr( "name" ) = _name; std::string tags = tagString(); if ( !tags.empty() ) conf.add( "tags", tags ); return conf; }
void Resource::mergeConfig | ( | const Config & | conf | ) |
Reimplemented in osgEarth::Symbology::MarkerResource, and osgEarth::Symbology::SkinResource.
Definition at line 31 of file Resource.cpp.
std::string& osgEarth::Symbology::Resource::name | ( | ) | [inline] |
const std::string& osgEarth::Symbology::Resource::name | ( | ) | const [inline] |
std::string osgEarth::Symbology::Resource::_name [private] |