osgEarth 2.1.1
Public Member Functions | Protected Attributes

anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource Class Reference

Inheritance diagram for anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource:
Collaboration diagram for anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource:

List of all members.

Public Member Functions

 FeatureStencilModelSource (const ModelSourceOptions &options, int renderBinStart)
virtual const
FeatureModelSourceOptions
getFeatureModelOptions () const
void initialize (const std::string &referenceURI, const Map *map)
FeatureNodeFactorycreateFeatureNodeFactory ()

Protected Attributes

int _renderBinStart
const FeatureStencilModelOptions _options

Detailed Description

Definition at line 549 of file FeatureStencilModelSource.cpp.


Constructor & Destructor Documentation

anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::FeatureStencilModelSource ( const ModelSourceOptions options,
int  renderBinStart 
) [inline]

Definition at line 552 of file FeatureStencilModelSource.cpp.

                                                                                           :
            FeatureModelSource( options ),
            _options( options ),
            _renderBinStart( renderBinStart )
        {
            // make sure we have stencil bits. Note, this only works before
            // a viewer gets created. You may need to allocate stencil bits
            // yourself if you make this object after realizing a viewer.
            if ( osg::DisplaySettings::instance()->getMinimumNumStencilBits() < 8 )
            {
                osg::DisplaySettings::instance()->setMinimumNumStencilBits( 8 );
            }
        }

Member Function Documentation

FeatureNodeFactory* anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::createFeatureNodeFactory ( ) [inline, virtual]

Implements osgEarth::Features::FeatureModelSource.

Definition at line 579 of file FeatureStencilModelSource.cpp.

        {
            return new StencilVolumeNodeFactory( _options, _renderBinStart );
        }
virtual const FeatureModelSourceOptions& anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::getFeatureModelOptions ( ) const [inline, virtual]

Reimplemented from osgEarth::Features::FeatureModelSource.

Definition at line 567 of file FeatureStencilModelSource.cpp.

        {
            return _options;
        }
void anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::initialize ( const std::string &  referenceURI,
const Map map 
) [inline, virtual]

Initialize the NodeSource.

Reimplemented from osgEarth::Features::FeatureModelSource.

Definition at line 573 of file FeatureStencilModelSource.cpp.

        {
            FeatureModelSource::initialize( referenceURI, map );
        }

Member Data Documentation

const FeatureStencilModelOptions anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::_options [protected]

Reimplemented from osgEarth::Features::FeatureModelSource.

Definition at line 586 of file FeatureStencilModelSource.cpp.

int anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource::_renderBinStart [protected]

Definition at line 585 of file FeatureStencilModelSource.cpp.


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