osgEarth 2.1.1
|
Public Member Functions | |
virtual bool | createOrUpdateNode (FeatureCursor *cursor, const Style &style, const FilterContext &context, osg::ref_ptr< osg::Node > &node)=0 |
virtual osg::Group * | getOrCreateStyleGroup (const Style &style, Session *session) |
Interface for a class that can create a Node from a set of features and a style definition. You will provide this to a FeatureModeGraph when creating a feature node in a driver.
Definition at line 123 of file FeatureModelSource.
virtual bool osgEarth::Features::FeatureNodeFactory::createOrUpdateNode | ( | FeatureCursor * | cursor, |
const Style & | style, | ||
const FilterContext & | context, | ||
osg::ref_ptr< osg::Node > & | node | ||
) | [pure virtual] |
Render (or update) a list of features into a node according to the specified style.
Implemented in anonymous_namespace{FeatureLabelModelSource.cpp}::LabelNodeFactory, anonymous_namespace{FeatureStencilModelSource.cpp}::StencilVolumeNodeFactory, and osgEarth::Features::GeomFeatureNodeFactory.
virtual osg::Group* osgEarth::Features::FeatureNodeFactory::getOrCreateStyleGroup | ( | const Style & | style, |
Session * | session | ||
) | [inline, virtual] |
Creates a group that will contain all the geometry corresponding to a given style. The subclass has the option of overriding this in order to create a custom implementation.
Reimplemented in anonymous_namespace{FeatureStencilModelSource.cpp}::StencilVolumeNodeFactory.
Definition at line 141 of file FeatureModelSource.
{ return new osg::Group(); }