19 #ifndef OSGEARTH_FEATURES_CUSTOMMODEL_COMPILER_H
20 #define OSGEARTH_FEATURES_CUSTOMMODEL_COMPILER_H 1
23 #include <osgEarthFeatures/Common>
24 #include <osgEarthFeatures/Feature>
25 #include <osgEarthFeatures/FeatureCursor>
26 #include <osgEarthFeatures/ResampleFilter>
27 #include <osgEarthSymbology/Style>
28 #include <osgEarth/GeoMath>
30 namespace osgEarth {
namespace Features
32 using namespace osgEarth;
33 using namespace osgEarth::Symbology;
35 class SubstituteCustomModelFilter;
45 const optional<double>&
maxGranularity()
const {
return _maxGranularity_deg; }
48 optional<GeoInterpolation>&
geoInterp() {
return _geoInterp; }
49 const optional<GeoInterpolation>&
geoInterp()
const {
return _geoInterp; }
56 optional<StringExpression>&
featureName() {
return _featureNameExpr; }
57 const optional<StringExpression>&
featureName()
const {
return _featureNameExpr; }
61 const optional<bool>&
clustering()
const {
return _clustering; }
68 optional<osgEarth::Features::ResampleFilter::ResampleMode>&
resampleMode() {
return _resampleMode;}
69 const optional<osgEarth::Features::ResampleFilter::ResampleMode>&
resampleMode()
const {
return _resampleMode;}
77 void mergeConfig(
const Config& conf );
86 optional<osgEarth::Features::ResampleFilter::ResampleMode>
_resampleMode;
89 void fromConfig(
const Config& conf );
117 FeatureCursor* input,
119 const FilterContext& context);
124 const FilterContext& context);
127 FeatureList& mungeableInput,
129 const FilterContext& context);
140 #endif // OSGEARTH_FEATURES_GEOMETRY_COMPILER_H