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

osgEarth::Drivers::FeatureMaskOptions Class Reference

Inheritance diagram for osgEarth::Drivers::FeatureMaskOptions:
Collaboration diagram for osgEarth::Drivers::FeatureMaskOptions:

List of all members.

Public Member Functions

optional< FeatureSourceOptions > & featureOptions ()
const optional
< FeatureSourceOptions > & 
featureOptions () const
osg::ref_ptr< FeatureSource > & featureSource ()
const osg::ref_ptr
< FeatureSource > & 
featureSource () const
 FeatureMaskOptions (const ConfigOptions &options=ConfigOptions())
Config getConfig () const

Protected Member Functions

virtual void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< FeatureSourceOptions_featureOptions
osg::ref_ptr< FeatureSource_featureSource

Detailed Description

Definition at line 31 of file FeatureMaskOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::FeatureMaskOptions::FeatureMaskOptions ( const ConfigOptions options = ConfigOptions()) [inline]

Definition at line 43 of file FeatureMaskOptions.

                                                                            :
            MaskSourceOptions( options )
        {
            setDriver( "feature" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<FeatureSourceOptions>& osgEarth::Drivers::FeatureMaskOptions::featureOptions ( ) [inline]

Feature source from which to read the feature data

Definition at line 35 of file FeatureMaskOptions.

{ return _featureOptions; }
const optional<FeatureSourceOptions>& osgEarth::Drivers::FeatureMaskOptions::featureOptions ( ) const [inline]

Definition at line 36 of file FeatureMaskOptions.

{ return _featureOptions; }
const osg::ref_ptr<FeatureSource>& osgEarth::Drivers::FeatureMaskOptions::featureSource ( ) const [inline]

Definition at line 40 of file FeatureMaskOptions.

{ return _featureSource; }
osg::ref_ptr<FeatureSource>& osgEarth::Drivers::FeatureMaskOptions::featureSource ( ) [inline]

A live feature source instance to use. Note, this does not serialize.

Definition at line 39 of file FeatureMaskOptions.

{ return _featureSource; }
void osgEarth::Drivers::FeatureMaskOptions::fromConfig ( const Config conf) [inline, private]

Reimplemented from osgEarth::MaskSourceOptions.

Definition at line 64 of file FeatureMaskOptions.

                                              {
            if ( conf.hasChild("features") )
                _featureOptions->merge( conf.child("features") );
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::MaskSourceOptions.

Definition at line 51 of file FeatureMaskOptions.

                                 {
            Config conf = MaskSourceOptions::getConfig();
            conf.updateObjIfSet( "features", _featureOptions );
            return conf;
        }

Here is the call graph for this function:

virtual void osgEarth::Drivers::FeatureMaskOptions::mergeConfig ( const Config conf) [inline, protected, virtual]

Reimplemented from osgEarth::MaskSourceOptions.

Definition at line 58 of file FeatureMaskOptions.

Here is the call graph for this function:


Member Data Documentation

Definition at line 69 of file FeatureMaskOptions.

Definition at line 70 of file FeatureMaskOptions.


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