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

osgEarth::ModelSourceOptions Class Reference

Inheritance diagram for osgEarth::ModelSourceOptions:
Collaboration diagram for osgEarth::ModelSourceOptions:

List of all members.

Public Member Functions

 ModelSourceOptions (const ConfigOptions &options=ConfigOptions())
optional< float > & minRange ()
const optional< float > & minRange () const
optional< float > & maxRange ()
const optional< float > & maxRange () const
optional< int > & renderOrder ()
const optional< int > & renderOrder () const
optional< bool > & depthTestEnabled ()
const optional< bool > & depthTestEnabled () const
virtual Config getConfig () const

Protected Member Functions

virtual void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< float > _minRange
optional< float > _maxRange
optional< int > _renderOrder
optional< bool > _depthTestEnabled
optional< bool > _overlay

Detailed Description

Configuration options for a models source.

Definition at line 36 of file ModelSource.


Constructor & Destructor Documentation

osgEarth::ModelSourceOptions::ModelSourceOptions ( const ConfigOptions options = ConfigOptions()) [inline]

Definition at line 39 of file ModelSource.

                                                                            :
              DriverConfigOptions( options ),
              _minRange(0),
              _maxRange(FLT_MAX),
              _renderOrder( 11 ),
              _depthTestEnabled( true ) { fromConfig(_conf); }

Member Function Documentation

optional<bool>& osgEarth::ModelSourceOptions::depthTestEnabled ( ) [inline]

whether to read the depth buffer when rendering

Definition at line 61 of file ModelSource.

{ return _depthTestEnabled; }

Here is the caller graph for this function:

const optional<bool>& osgEarth::ModelSourceOptions::depthTestEnabled ( ) const [inline]

Definition at line 62 of file ModelSource.

{ return _depthTestEnabled; }
void ModelSourceOptions::fromConfig ( const Config conf) [private]

Reimplemented from osgEarth::DriverConfigOptions.

Reimplemented in osgEarth::Drivers::FeatureSubModelOptions, osgEarth::Drivers::FeatureGeomModelOptions, osgEarth::Drivers::FeatureLabelModelOptions, osgEarth::Drivers::FeatureStencilModelOptions, osgEarth::Drivers::SimpleModelOptions, and osgEarth::Features::FeatureModelSourceOptions.

Definition at line 30 of file ModelSource.cpp.

{
    conf.getIfSet<float>( "min_range", _minRange );
    conf.getIfSet<float>( "max_range", _maxRange );
    conf.getIfSet<int>( "render_order", _renderOrder );
    conf.getIfSet<bool>( "depth_test_enabled", _depthTestEnabled );
}

Here is the call graph for this function:

Config ModelSourceOptions::getConfig ( ) const [virtual]

Gets or sets the name of the object

Reimplemented from osgEarth::DriverConfigOptions.

Reimplemented in osgEarth::Drivers::FeatureSubModelOptions, osgEarth::Drivers::FeatureGeomModelOptions, osgEarth::Drivers::FeatureLabelModelOptions, osgEarth::Drivers::FeatureStencilModelOptions, osgEarth::Drivers::SimpleModelOptions, and osgEarth::Features::FeatureModelSourceOptions.

Definition at line 46 of file ModelSource.cpp.

{
    Config conf = DriverConfigOptions::getConfig();
    conf.updateIfSet( "min_range", _minRange );
    conf.updateIfSet( "max_range", _maxRange );
    conf.updateIfSet( "render_order", _renderOrder );
    conf.updateIfSet( "depth_test_enabled", _depthTestEnabled );
    return conf;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const optional<float>& osgEarth::ModelSourceOptions::maxRange ( ) const [inline]

Definition at line 54 of file ModelSource.

{ return _maxRange; }
optional<float>& osgEarth::ModelSourceOptions::maxRange ( ) [inline]

maximum camera range at which the data is visible

Definition at line 53 of file ModelSource.

{ return _maxRange; }
void ModelSourceOptions::mergeConfig ( const Config conf) [protected, virtual]
const optional<float>& osgEarth::ModelSourceOptions::minRange ( ) const [inline]

Definition at line 50 of file ModelSource.

{ return _minRange; }
optional<float>& osgEarth::ModelSourceOptions::minRange ( ) [inline]

minimum camera range at which the data is visible

Definition at line 49 of file ModelSource.

{ return _minRange; }
const optional<int>& osgEarth::ModelSourceOptions::renderOrder ( ) const [inline]

Definition at line 58 of file ModelSource.

{ return _renderOrder; }
optional<int>& osgEarth::ModelSourceOptions::renderOrder ( ) [inline]

render bin order

Definition at line 57 of file ModelSource.

{ return _renderOrder; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 75 of file ModelSource.

Definition at line 73 of file ModelSource.

Definition at line 73 of file ModelSource.

Definition at line 76 of file ModelSource.

Definition at line 74 of file ModelSource.


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