osgEarth 2.1.1
|
Public Member Functions | |
optional< double > & | extrusionDistance () |
const optional< double > & | extrusionDistance () const |
optional< double > & | densificationThreshold () |
const optional< double > & | densificationThreshold () const |
optional< bool > & | inverted () |
const optional< bool > & | inverted () const |
optional< bool > & | mask () |
const optional< bool > & | mask () const |
optional< bool > & | showVolumes () |
const optional< bool > & | showVolumes () const |
FeatureStencilModelOptions (const ConfigOptions &options=ConfigOptions()) | |
Config | getConfig () const |
Protected Member Functions | |
void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< double > | _extrusionDistance |
optional< double > | _densificationThreshold |
optional< bool > | _inverted |
optional< bool > | _mask |
optional< bool > | _showVolumes |
Definition at line 30 of file FeatureStencilModelOptions.
osgEarth::Drivers::FeatureStencilModelOptions::FeatureStencilModelOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) | [inline] |
Definition at line 50 of file FeatureStencilModelOptions.
: FeatureModelSourceOptions( options ), _extrusionDistance( 300000 ), _densificationThreshold( 1000000 ), _inverted( false ), _mask( false ), _showVolumes( false ) { setDriver( "feature_stencil" ); fromConfig( _conf ); }
optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::densificationThreshold | ( | ) | [inline] |
Definition at line 37 of file FeatureStencilModelOptions.
{ return _densificationThreshold; }
const optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::densificationThreshold | ( | ) | const [inline] |
Definition at line 38 of file FeatureStencilModelOptions.
{ return _densificationThreshold; }
const optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::extrusionDistance | ( | ) | const [inline] |
Definition at line 35 of file FeatureStencilModelOptions.
{ return _extrusionDistance; }
optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::extrusionDistance | ( | ) | [inline] |
Definition at line 34 of file FeatureStencilModelOptions.
{ return _extrusionDistance; }
void osgEarth::Drivers::FeatureStencilModelOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 79 of file FeatureStencilModelOptions.
{ conf.getIfSet( "extrusion_distance", _extrusionDistance ); conf.getIfSet( "densification_threshold", _densificationThreshold ); conf.getIfSet( "inverted", _inverted ); conf.getIfSet( "mask", _mask ); conf.getIfSet( "show_volumes", _showVolumes ); //special: you can also set mask=true by naming the config: if ( !_mask.isSet() && conf.key() == "mask_model" ) _mask = true; }
Config osgEarth::Drivers::FeatureStencilModelOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 62 of file FeatureStencilModelOptions.
{ Config conf = FeatureModelSourceOptions::getConfig(); conf.updateIfSet( "extrusion_distance", _extrusionDistance ); conf.updateIfSet( "densification_threshold", _densificationThreshold ); conf.updateIfSet( "inverted", _inverted ); conf.updateIfSet( "mask", _mask ); conf.updateIfSet( "showVolumes", _showVolumes ); return conf; }
const optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::inverted | ( | ) | const [inline] |
Definition at line 41 of file FeatureStencilModelOptions.
{ return _inverted; }
optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::inverted | ( | ) | [inline] |
Definition at line 40 of file FeatureStencilModelOptions.
{ return _inverted; }
const optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::mask | ( | ) | const [inline] |
Definition at line 44 of file FeatureStencilModelOptions.
{ return _mask; }
optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::mask | ( | ) | [inline] |
Definition at line 43 of file FeatureStencilModelOptions.
{ return _mask; }
void osgEarth::Drivers::FeatureStencilModelOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 73 of file FeatureStencilModelOptions.
{ FeatureModelSourceOptions::mergeConfig( conf ); fromConfig( conf ); }
optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::showVolumes | ( | ) | [inline] |
Definition at line 46 of file FeatureStencilModelOptions.
{ return _showVolumes; }
const optional<bool>& osgEarth::Drivers::FeatureStencilModelOptions::showVolumes | ( | ) | const [inline] |
Definition at line 47 of file FeatureStencilModelOptions.
{ return _showVolumes; }
Definition at line 91 of file FeatureStencilModelOptions.
optional<double> osgEarth::Drivers::FeatureStencilModelOptions::_extrusionDistance [private] |
Definition at line 91 of file FeatureStencilModelOptions.
optional<bool> osgEarth::Drivers::FeatureStencilModelOptions::_inverted [private] |
Definition at line 92 of file FeatureStencilModelOptions.
optional<bool> osgEarth::Drivers::FeatureStencilModelOptions::_mask [private] |
Definition at line 92 of file FeatureStencilModelOptions.
optional<bool> osgEarth::Drivers::FeatureStencilModelOptions::_showVolumes [private] |
Definition at line 92 of file FeatureStencilModelOptions.