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

osgEarth::Features::GeometryCompilerOptions Class Reference

Inheritance diagram for osgEarth::Features::GeometryCompilerOptions:
Collaboration diagram for osgEarth::Features::GeometryCompilerOptions:

List of all members.

Public Member Functions

 GeometryCompilerOptions (const ConfigOptions &conf=ConfigOptions())
optional< double > & maxGranularity ()
const optional< double > & maxGranularity () const
optional< GeoInterpolation > & geoInterp ()
const optional
< GeoInterpolation > & 
geoInterp () const
optional< bool > & mergeGeometry ()
const optional< bool > & mergeGeometry () const
optional< StringExpression > & featureName ()
const optional
< StringExpression > & 
featureName () const
optional< bool > & clustering ()
const optional< bool > & clustering () const
optional
< osgEarth::Features::ResampleFilter::ResampleMode > & 
resampleMode ()
const optional
< osgEarth::Features::ResampleFilter::ResampleMode > & 
resampleMode () const
optional< double > & resampleMaxLength ()
const optional< double > & resampleMaxLength () const
Config getConfig () const
void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< double > _maxGranularity_deg
optional< GeoInterpolation_geoInterp
optional< bool > _mergeGeometry
optional< StringExpression_featureNameExpr
optional< bool > _clustering
optional
< osgEarth::Features::ResampleFilter::ResampleMode
_resampleMode
optional< double > _resampleMaxLength

Detailed Description

Definition at line 34 of file GeometryCompiler.


Constructor & Destructor Documentation

GeometryCompilerOptions::GeometryCompilerOptions ( const ConfigOptions conf = ConfigOptions())

Definition at line 49 of file GeometryCompiler.cpp.

                                                                            :
ConfigOptions( conf ),
_maxGranularity_deg( 5.0 ),
_mergeGeometry( false ),
_clustering( true )
{
    fromConfig(_conf);
}

Here is the call graph for this function:


Member Function Documentation

optional<bool>& osgEarth::Features::GeometryCompilerOptions::clustering ( ) [inline]

Whether to cluster feature geometries together for speed

Definition at line 57 of file GeometryCompiler.

{ return _clustering; }

Here is the caller graph for this function:

const optional<bool>& osgEarth::Features::GeometryCompilerOptions::clustering ( ) const [inline]

Definition at line 58 of file GeometryCompiler.

{ return _clustering; }
const optional<StringExpression>& osgEarth::Features::GeometryCompilerOptions::featureName ( ) const [inline]

Definition at line 54 of file GeometryCompiler.

{ return _featureNameExpr; }
optional<StringExpression>& osgEarth::Features::GeometryCompilerOptions::featureName ( ) [inline]

Expression to evaluate to extract a feature's readable name

Definition at line 53 of file GeometryCompiler.

{ return _featureNameExpr; }

Here is the caller graph for this function:

void GeometryCompilerOptions::fromConfig ( const Config conf) [private]

Definition at line 59 of file GeometryCompiler.cpp.

{
    conf.getIfSet   ( "max_granularity", _maxGranularity_deg );
    conf.getIfSet   ( "merge_geometry",  _mergeGeometry );
    conf.getIfSet   ( "clustering",      _clustering );
    conf.getObjIfSet( "feature_name",    _featureNameExpr );
    conf.getIfSet   ( "geo_interpolation", "great_circle", _geoInterp, GEOINTERP_GREAT_CIRCLE );
    conf.getIfSet   ( "geo_interpolation", "rhumb_line",   _geoInterp, GEOINTERP_RHUMB_LINE );
}

Here is the call graph for this function:

Here is the caller graph for this function:

const optional<GeoInterpolation>& osgEarth::Features::GeometryCompilerOptions::geoInterp ( ) const [inline]

Definition at line 46 of file GeometryCompiler.

{ return _geoInterp; }
optional<GeoInterpolation>& osgEarth::Features::GeometryCompilerOptions::geoInterp ( ) [inline]

Interpolation type to use for geodetic points

Definition at line 45 of file GeometryCompiler.

{ return _geoInterp; }

Here is the caller graph for this function:

Config GeometryCompilerOptions::getConfig ( ) const [virtual]

Reimplemented from osgEarth::ConfigOptions.

Definition at line 70 of file GeometryCompiler.cpp.

{
    Config conf = ConfigOptions::getConfig();
    conf.addIfSet   ( "max_granularity", _maxGranularity_deg );
    conf.addIfSet   ( "merge_geometry",  _mergeGeometry );
    conf.addIfSet   ( "clustering",      _clustering );
    conf.addObjIfSet( "feature_name",    _featureNameExpr );
    conf.addIfSet   ( "geo_interpolation", "great_circle", _geoInterp, GEOINTERP_GREAT_CIRCLE );
    conf.addIfSet   ( "geo_interpolation", "rhumb_line",   _geoInterp, GEOINTERP_RHUMB_LINE );
    return conf;
}

Here is the call graph for this function:

const optional<double>& osgEarth::Features::GeometryCompilerOptions::maxGranularity ( ) const [inline]

Definition at line 42 of file GeometryCompiler.

{ return _maxGranularity_deg; }
optional<double>& osgEarth::Features::GeometryCompilerOptions::maxGranularity ( ) [inline]

Maximum span of a generated edge, in degrees. Applicable to geocentric maps only

Definition at line 41 of file GeometryCompiler.

{ return _maxGranularity_deg; }

Here is the caller graph for this function:

void GeometryCompilerOptions::mergeConfig ( const Config conf) [virtual]

Reimplemented from osgEarth::ConfigOptions.

Definition at line 83 of file GeometryCompiler.cpp.

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

Here is the call graph for this function:

optional<bool>& osgEarth::Features::GeometryCompilerOptions::mergeGeometry ( ) [inline]

Whether to merge geometry from multiple features

Definition at line 49 of file GeometryCompiler.

{ return _mergeGeometry; }

Here is the caller graph for this function:

const optional<bool>& osgEarth::Features::GeometryCompilerOptions::mergeGeometry ( ) const [inline]

Definition at line 50 of file GeometryCompiler.

{ return _mergeGeometry; }
optional<double>& osgEarth::Features::GeometryCompilerOptions::resampleMaxLength ( ) [inline]

Definition at line 64 of file GeometryCompiler.

{ return _resampleMaxLength; }

Here is the caller graph for this function:

const optional<double>& osgEarth::Features::GeometryCompilerOptions::resampleMaxLength ( ) const [inline]

Definition at line 65 of file GeometryCompiler.

{ return _resampleMaxLength;}
optional<osgEarth::Features::ResampleFilter::ResampleMode>& osgEarth::Features::GeometryCompilerOptions::resampleMode ( ) [inline]

Definition at line 61 of file GeometryCompiler.

{ return _resampleMode;}

Here is the caller graph for this function:

const optional<osgEarth::Features::ResampleFilter::ResampleMode>& osgEarth::Features::GeometryCompilerOptions::resampleMode ( ) const [inline]

Definition at line 62 of file GeometryCompiler.

{ return _resampleMode;}

Member Data Documentation

Definition at line 78 of file GeometryCompiler.

Definition at line 77 of file GeometryCompiler.

Definition at line 75 of file GeometryCompiler.

Definition at line 74 of file GeometryCompiler.

Definition at line 76 of file GeometryCompiler.

Definition at line 80 of file GeometryCompiler.

Definition at line 79 of file GeometryCompiler.


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