Skip to content

Commit

Permalink
FML: add accessor for the feature source
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Feb 22, 2019
1 parent fff5664 commit 176c7bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/osgEarthFeatures/FeatureModelLayer
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ namespace osgEarth { namespace Features

//! The feature source from which to read geometry. Use this OR setFeatureLayer
void setFeatureSource(FeatureSource* fs);
FeatureSource* getFeatureSource() const;

//! Forces a rebuild on this FeatureModelLayer.
void dirty();
Expand Down
6 changes: 6 additions & 0 deletions src/osgEarthFeatures/FeatureModelLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ FeatureModelLayer::setFeatureSource(FeatureSource* source)
}
}

FeatureSource*
FeatureModelLayer::getFeatureSource() const
{
return _featureSource.get();
}

void
FeatureModelLayer::setCreateFeatureNodeFactoryCallback(CreateFeatureNodeFactoryCallback* value)
{
Expand Down

0 comments on commit 176c7bd

Please sign in to comment.