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

osgEarth::Drivers::FeatureLabelModelOptions Class Reference

Inheritance diagram for osgEarth::Drivers::FeatureLabelModelOptions:
Collaboration diagram for osgEarth::Drivers::FeatureLabelModelOptions:

List of all members.

Public Member Functions

optional< std::string > & url ()
const optional< std::string > & url () const
optional< double > & heightOffset ()
const optional< double > & heightOffset () const
optional< bool > & hideClutter ()
const optional< bool > & hideClutter () const
 FeatureLabelModelOptions (const ConfigOptions &opt=ConfigOptions())
Config getConfig () const

Protected Member Functions

void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< std::string > _url
optional< double > _heightOffset
optional< bool > _hideClutter

Detailed Description

Definition at line 30 of file FeatureLabelModelOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::FeatureLabelModelOptions::FeatureLabelModelOptions ( const ConfigOptions opt = ConfigOptions()) [inline]

Definition at line 43 of file FeatureLabelModelOptions.

                                                                              : FeatureModelSourceOptions( opt ),
            _heightOffset( 0.0 )
        {
            setDriver( "feature_label" );
            fromConfig( _conf );
        }

Member Function Documentation

void osgEarth::Drivers::FeatureLabelModelOptions::fromConfig ( const Config conf) [inline, private]

Reimplemented from osgEarth::Features::FeatureModelSourceOptions.

Definition at line 66 of file FeatureLabelModelOptions.

                                              {
            conf.getIfSet( "url", _url );
            conf.getIfSet( "height_offset", _heightOffset );
            conf.getIfSet( "hide_clutter", _hideClutter );
        }

Here is the call graph for this function:

Config osgEarth::Drivers::FeatureLabelModelOptions::getConfig ( ) const [inline, virtual]

Gets or sets the name of the object

Reimplemented from osgEarth::Features::FeatureModelSourceOptions.

Definition at line 51 of file FeatureLabelModelOptions.

                                 {
            Config conf = FeatureModelSourceOptions::getConfig();
            conf.updateIfSet( "url", _url );
            conf.updateIfSet( "height_offset", _heightOffset );
            conf.updateIfSet( "hide_clutter", _hideClutter );
            return conf;
        }

Here is the call graph for this function:

const optional<double>& osgEarth::Drivers::FeatureLabelModelOptions::heightOffset ( ) const [inline]

Definition at line 37 of file FeatureLabelModelOptions.

{ return _heightOffset; }
optional<double>& osgEarth::Drivers::FeatureLabelModelOptions::heightOffset ( ) [inline]

Definition at line 36 of file FeatureLabelModelOptions.

{ return _heightOffset; }
optional<bool>& osgEarth::Drivers::FeatureLabelModelOptions::hideClutter ( ) [inline]

Definition at line 39 of file FeatureLabelModelOptions.

{ return _hideClutter; }
const optional<bool>& osgEarth::Drivers::FeatureLabelModelOptions::hideClutter ( ) const [inline]

Definition at line 40 of file FeatureLabelModelOptions.

{ return _hideClutter; }
void osgEarth::Drivers::FeatureLabelModelOptions::mergeConfig ( const Config conf) [inline, protected, virtual]

Reimplemented from osgEarth::Features::FeatureModelSourceOptions.

Definition at line 60 of file FeatureLabelModelOptions.

Here is the call graph for this function:

const optional<std::string>& osgEarth::Drivers::FeatureLabelModelOptions::url ( ) const [inline]

Definition at line 34 of file FeatureLabelModelOptions.

{ return _url; }
optional<std::string>& osgEarth::Drivers::FeatureLabelModelOptions::url ( ) [inline]

Definition at line 33 of file FeatureLabelModelOptions.

{ return _url; }

Member Data Documentation

Definition at line 73 of file FeatureLabelModelOptions.

Definition at line 74 of file FeatureLabelModelOptions.

Definition at line 72 of file FeatureLabelModelOptions.


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