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

osgEarth::Drivers::OSGTerrainOptions Class Reference

Inheritance diagram for osgEarth::Drivers::OSGTerrainOptions:
Collaboration diagram for osgEarth::Drivers::OSGTerrainOptions:

List of all members.

Public Member Functions

 OSGTerrainOptions (const ConfigOptions &options=ConfigOptions())
optional< float > & heightFieldSkirtRatio ()
const optional< float > & heightFieldSkirtRatio () const
optional< bool > & quickReleaseGLObjects ()
const optional< bool > & quickReleaseGLObjects () const
optional< float > & lodFallOff ()
const optional< float > & lodFallOff () const

Protected Member Functions

virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< float > _skirtRatio
optional< bool > _quickRelease
optional< float > _lodFallOff

Detailed Description

Definition at line 29 of file OSGTerrainOptions.


Constructor & Destructor Documentation

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

Definition at line 32 of file OSGTerrainOptions.

                                                                           : TerrainOptions( options ),
            _skirtRatio( 0.05 ),
            _quickRelease( true ),
            _lodFallOff( 0.0 )
        {
            setDriver( "osgterrain" );
            fromConfig( _conf );
        }

Member Function Documentation

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

Reimplemented from osgEarth::TerrainOptions.

Definition at line 66 of file OSGTerrainOptions.

                                              {
            conf.getIfSet( "skirt_ratio", _skirtRatio );
            conf.getIfSet( "quick_release_gl_objects", _quickRelease );
            conf.getIfSet( "lod_fall_off", _lodFallOff );
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::TerrainOptions.

Definition at line 52 of file OSGTerrainOptions.

                                         {
            Config conf = TerrainOptions::getConfig();
            conf.updateIfSet( "skirt_ratio", _skirtRatio );
            conf.updateIfSet( "quick_release_gl_objects", _quickRelease );
            conf.updateIfSet( "lod_fall_off", _lodFallOff );
            return conf;
        }

Here is the call graph for this function:

const optional<float>& osgEarth::Drivers::OSGTerrainOptions::heightFieldSkirtRatio ( ) const [inline]

Definition at line 43 of file OSGTerrainOptions.

{ return _skirtRatio; }
optional<float>& osgEarth::Drivers::OSGTerrainOptions::heightFieldSkirtRatio ( ) [inline]

Definition at line 42 of file OSGTerrainOptions.

{ return _skirtRatio; }

Here is the caller graph for this function:

optional<float>& osgEarth::Drivers::OSGTerrainOptions::lodFallOff ( ) [inline]

Definition at line 48 of file OSGTerrainOptions.

{ return _lodFallOff; }

Here is the caller graph for this function:

const optional<float>& osgEarth::Drivers::OSGTerrainOptions::lodFallOff ( ) const [inline]

Definition at line 49 of file OSGTerrainOptions.

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

Reimplemented from osgEarth::TerrainOptions.

Definition at line 60 of file OSGTerrainOptions.

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

Here is the call graph for this function:

const optional<bool>& osgEarth::Drivers::OSGTerrainOptions::quickReleaseGLObjects ( ) const [inline]

Definition at line 46 of file OSGTerrainOptions.

{ return _quickRelease; }
optional<bool>& osgEarth::Drivers::OSGTerrainOptions::quickReleaseGLObjects ( ) [inline]

Definition at line 45 of file OSGTerrainOptions.

{ return _quickRelease; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 74 of file OSGTerrainOptions.

Definition at line 73 of file OSGTerrainOptions.

Definition at line 72 of file OSGTerrainOptions.


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