VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
osgEarth::ProceduralTreesFeatureSource Class Reference

FeatureSource that reads procedural trees feature tiles.

Inheritance diagram for osgEarth::ProceduralTreesFeatureSource:
Inheritance graph
[legend]

Classes

class  Options
 

Public Member Functions

 META_Layer (osgEarth, ProceduralTreesFeatureSource, Options, TiledFeatureSource, proceduraltreesfeatures)
 
Status insert (const TileKey &key, const FeatureList &features, bool overwrite) override
 
Status openImplementation () override
 
bool isWritable () const override
 

Static Public Member Functions

static void setTreeMap (const DtOsgEarthVegetationLayerSourcePager::DtTreeMap &treeMap)
 

Protected Member Functions

void init () override
 
void addedToMap (const Map *) override
 
FeatureCursor * createFeatureCursorImplementation (const Query &query, ProgressCallback *progress) const override
 
virtual ~ProceduralTreesFeatureSource ()
 

Protected Attributes

osg::ref_ptr
< osgEarth::Procedural::VegetationLayer > 
myVegLayer
 
const Map * myMap = nullptr
 

Static Protected Attributes

static
DtOsgEarthVegetationLayerSourcePager::DtTreeMap 
myTreeMap
 

Constructor & Destructor Documentation

virtual osgEarth::ProceduralTreesFeatureSource::~ProceduralTreesFeatureSource ( )
inlineprotectedvirtual

Member Function Documentation

osgEarth::ProceduralTreesFeatureSource::META_Layer ( osgEarth  ,
ProceduralTreesFeatureSource  ,
Options  ,
TiledFeatureSource  ,
proceduraltreesfeatures   
)
Status osgEarth::ProceduralTreesFeatureSource::insert ( const TileKey &  key,
const FeatureList &  features,
bool  overwrite 
)
override

Inserts a full tile of features to the feature source.

Status osgEarth::ProceduralTreesFeatureSource::openImplementation ( )
override

Layer.

Open the source

void osgEarth::ProceduralTreesFeatureSource::init ( )
overrideprotected

Initialize the layer.

void osgEarth::ProceduralTreesFeatureSource::addedToMap ( const Map *  )
overrideprotected

Called when the layer is added to a map.

FeatureCursor* osgEarth::ProceduralTreesFeatureSource::createFeatureCursorImplementation ( const Query &  query,
ProgressCallback *  progress 
) const
overrideprotected

Return the features if exist for the given query (tile key)

bool osgEarth::ProceduralTreesFeatureSource::isWritable ( ) const
override

FeatureSource.

static void osgEarth::ProceduralTreesFeatureSource::setTreeMap ( const DtOsgEarthVegetationLayerSourcePager::DtTreeMap &  treeMap)
inlinestatic

osgearth procedural vegetation layer will generate the tree map (to retrieve trunk width)

Member Data Documentation

DtOsgEarthVegetationLayerSourcePager::DtTreeMap osgEarth::ProceduralTreesFeatureSource::myTreeMap
staticprotected

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.

osg::ref_ptr<osgEarth::Procedural::VegetationLayer> osgEarth::ProceduralTreesFeatureSource::myVegLayer
protected

Used to extract procedural trees/shrub/ect.

const Map* osgEarth::ProceduralTreesFeatureSource::myMap = nullptr
protected

vegetation layer of the pager


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)