osgEarth 2.1.1
|
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 |
Configuration options for a models source.
Definition at line 36 of file ModelSource.
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); }
optional<bool>& osgEarth::ModelSourceOptions::depthTestEnabled | ( | ) | [inline] |
whether to read the depth buffer when rendering
Definition at line 61 of file ModelSource.
{ return _depthTestEnabled; }
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 ); }
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; }
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] |
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 39 of file ModelSource.cpp.
{ DriverConfigOptions::mergeConfig( conf ); fromConfig( conf ); }
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; }
optional<bool> osgEarth::ModelSourceOptions::_depthTestEnabled [private] |
Definition at line 75 of file ModelSource.
optional<float> osgEarth::ModelSourceOptions::_maxRange [private] |
Definition at line 73 of file ModelSource.
optional<float> osgEarth::ModelSourceOptions::_minRange [private] |
Definition at line 73 of file ModelSource.
optional<bool> osgEarth::ModelSourceOptions::_overlay [private] |
Definition at line 76 of file ModelSource.
optional<int> osgEarth::ModelSourceOptions::_renderOrder [private] |
Definition at line 74 of file ModelSource.