osgEarth 2.1.1
Public Member Functions | Private Member Functions | Private Attributes

osgEarth::MaskLayerOptions Class Reference

Inheritance diagram for osgEarth::MaskLayerOptions:
Collaboration diagram for osgEarth::MaskLayerOptions:

List of all members.

Public Member Functions

 MaskLayerOptions (const ConfigOptions &options=ConfigOptions())
 MaskLayerOptions (const std::string &name, const MaskSourceOptions &driverOptions=MaskSourceOptions())
optional< std::string > & name ()
const optional< std::string > & name () const
optional< MaskSourceOptions > & driver ()
const optional
< MaskSourceOptions > & 
driver () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)
void setDefaults ()

Private Attributes

optional< std::string > _name
optional< MaskSourceOptions_driver

Detailed Description

Configuration options for a MaskLayer.

Definition at line 36 of file MaskLayer.


Constructor & Destructor Documentation

MaskLayerOptions::MaskLayerOptions ( const ConfigOptions options = ConfigOptions())

Definition at line 27 of file MaskLayer.cpp.

                                                                 :
ConfigOptions( options )
{
    setDefaults();
    fromConfig( _conf ); 
}

Here is the call graph for this function:

MaskLayerOptions::MaskLayerOptions ( const std::string &  name,
const MaskSourceOptions driverOptions = MaskSourceOptions() 
)

Definition at line 34 of file MaskLayer.cpp.

                                                                                                  :
ConfigOptions()
{
    setDefaults();
    fromConfig( _conf );
    _name = name;
    _driver = driverOptions;
}

Here is the call graph for this function:


Member Function Documentation

optional<MaskSourceOptions>& osgEarth::MaskLayerOptions::driver ( ) [inline]

Options for the underlying model source driver.

Definition at line 52 of file MaskLayer.

{ return _driver; }

Here is the caller graph for this function:

const optional<MaskSourceOptions>& osgEarth::MaskLayerOptions::driver ( ) const [inline]

Definition at line 53 of file MaskLayer.

{ return _driver; }
void MaskLayerOptions::fromConfig ( const Config conf) [private]

Definition at line 60 of file MaskLayer.cpp.

{
    conf.getIfSet( "name", _name );
}

Here is the call graph for this function:

Here is the caller graph for this function:

Config MaskLayerOptions::getConfig ( ) const [virtual]

Reimplemented from osgEarth::ConfigOptions.

Definition at line 50 of file MaskLayer.cpp.

{
    Config conf = ConfigOptions::getConfig();

    conf.updateIfSet( "name", _name );

    return conf;
}

Here is the call graph for this function:

void MaskLayerOptions::mergeConfig ( const Config conf) [virtual]

Reimplemented from osgEarth::ConfigOptions.

Definition at line 66 of file MaskLayer.cpp.

{
    ConfigOptions::mergeConfig( conf );
    fromConfig( conf );
}

Here is the call graph for this function:

const optional<std::string>& osgEarth::MaskLayerOptions::name ( ) const [inline]

Definition at line 47 of file MaskLayer.

{ return _name; }
optional<std::string>& osgEarth::MaskLayerOptions::name ( ) [inline]

The readable name of the layer.

Definition at line 46 of file MaskLayer.

{ return _name; }

Here is the caller graph for this function:

void MaskLayerOptions::setDefaults ( ) [private]

Definition at line 44 of file MaskLayer.cpp.

{
    //nop
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 64 of file MaskLayer.

Definition at line 63 of file MaskLayer.


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