osgEarth 2.1.1
Public Member Functions

osgEarth::Features::FeatureNodeFactory Class Reference

Inheritance diagram for osgEarth::Features::FeatureNodeFactory:
Collaboration diagram for osgEarth::Features::FeatureNodeFactory:

List of all members.

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)

Detailed Description

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.


Member Function Documentation

virtual bool osgEarth::Features::FeatureNodeFactory::createOrUpdateNode ( FeatureCursor cursor,
const Style style,
const FilterContext context,
osg::ref_ptr< osg::Node > &  node 
) [pure virtual]
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(); }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines