osgEarth 2.1.1
Public Member Functions | Public Attributes

osgEarth::Features::GeomFeatureNodeFactory Class Reference

Inheritance diagram for osgEarth::Features::GeomFeatureNodeFactory:
Collaboration diagram for osgEarth::Features::GeomFeatureNodeFactory:

List of all members.

Public Member Functions

 GeomFeatureNodeFactory (const GeometryCompilerOptions &options=GeometryCompilerOptions())
bool createOrUpdateNode (FeatureCursor *features, const Style &style, const FilterContext &context, osg::ref_ptr< osg::Node > &node)

Public Attributes

GeometryCompilerOptions _options

Detailed Description

Definition at line 146 of file FeatureModelSource.


Constructor & Destructor Documentation

GeomFeatureNodeFactory::GeomFeatureNodeFactory ( const GeometryCompilerOptions options = GeometryCompilerOptions())

Definition at line 185 of file FeatureModelSource.cpp.

            : _options( options ) 
{ 
}

Member Function Documentation

bool GeomFeatureNodeFactory::createOrUpdateNode ( FeatureCursor cursor,
const Style style,
const FilterContext context,
osg::ref_ptr< osg::Node > &  node 
) [virtual]

Render (or update) a list of features into a node according to the specified style.

Implements osgEarth::Features::FeatureNodeFactory.

Definition at line 190 of file FeatureModelSource.cpp.

{
    GeometryCompiler compiler( _options );
    node = compiler.compile( features, style, context );
    return node.valid();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 158 of file FeatureModelSource.


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