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

osgEarth::Drivers::FeatureStencilModelOptions Class Reference

Inheritance diagram for osgEarth::Drivers::FeatureStencilModelOptions:
Collaboration diagram for osgEarth::Drivers::FeatureStencilModelOptions:

List of all members.

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

Detailed Description

Definition at line 30 of file FeatureStencilModelOptions.


Constructor & Destructor Documentation

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 );
        }

Member Function Documentation

optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::densificationThreshold ( ) [inline]

Definition at line 37 of file FeatureStencilModelOptions.

const optional<double>& osgEarth::Drivers::FeatureStencilModelOptions::densificationThreshold ( ) const [inline]

Definition at line 38 of file FeatureStencilModelOptions.

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;
        }

Here is the call graph for this function:

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;
        }

Here is the call graph for this function:

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.

Here is the call graph for this function:

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; }

Member Data Documentation

Definition at line 91 of file FeatureStencilModelOptions.

Definition at line 91 of file FeatureStencilModelOptions.

Definition at line 92 of file FeatureStencilModelOptions.

Definition at line 92 of file FeatureStencilModelOptions.

Definition at line 92 of file FeatureStencilModelOptions.


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