13 #include <osgEarth/FeatureSource>
14 #include <osgEarthProcedural/VegetationLayer>
15 #include <osgEarthProcedural/VegetationFeatureGenerator>
28 META_LayerOptions(osgEarth,
Options, TiledFeatureSource::Options);
29 virtual Config getConfig()
const;
31 void fromConfig(
const Config& conf);
39 Status insert(
const TileKey& key,
const FeatureList& features,
bool overwrite)
override;
44 Status openImplementation()
override;
52 void addedToMap(
const Map*)
override;
55 FeatureCursor* createFeatureCursorImplementation(
const Query& query, ProgressCallback* progress)
const override;
64 bool isWritable()
const override;
77 const Map* myMap =
nullptr;
Definition: proceduralTreesFeatureSource.h:25
static void setTreeMap(const DtOsgEarthVegetationLayerSourcePager::DtTreeMap &treeMap)
osgearth procedural vegetation layer will generate the tree map (to retrieve trunk width) ...
Definition: proceduralTreesFeatureSource.h:67
osg::ref_ptr< osgEarth::Procedural::VegetationLayer > myVegLayer
Used to extract procedural trees/shrub/ect.
Definition: proceduralTreesFeatureSource.h:74
OSGEARTH_SPECIALIZE_CONFIG(osgEarth::CDBFeatureSource::Options)
#define DT_DLL_vantageTerrainImplementation
This file is used to determine how to build.
Definition: vantageTerrainImplementationDefines.h:28
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
static DtOsgEarthVegetationLayerSourcePager::DtTreeMap myTreeMap
hold a copy of the tree map to avoid having to access the vegetation layer for it, which is a bit expensive. This is used by the feature cursor to determine if a tile has any trees in it.
Definition: proceduralTreesFeatureSource.h:59
virtual ~ProceduralTreesFeatureSource()
Definition: proceduralTreesFeatureSource.h:71
FeatureSource that reads procedural trees feature tiles.
Definition: proceduralTreesFeatureSource.h:22