osgEarth 2.1.1
Public Member Functions | Protected Attributes

FeatureStencilModelSourceDriver Class Reference

Inheritance diagram for FeatureStencilModelSourceDriver:
Collaboration diagram for FeatureStencilModelSourceDriver:

List of all members.

Public Member Functions

 FeatureStencilModelSourceDriver ()
virtual const char * className ()
FeatureStencilModelSource * create (const Options *options)
virtual ReadResult readObject (const std::string &file_name, const Options *options) const

Protected Attributes

Mutex _createMutex
int _renderBinStart

Detailed Description

Definition at line 591 of file FeatureStencilModelSource.cpp.


Constructor & Destructor Documentation

FeatureStencilModelSourceDriver::FeatureStencilModelSourceDriver ( ) [inline]

Definition at line 594 of file FeatureStencilModelSource.cpp.

                                      :
        _renderBinStart( RENDER_BIN_START )
    {
        supportsExtension( "osgearth_model_feature_stencil", "osgEarth feature stencil plugin" );
    }

Member Function Documentation

virtual const char* FeatureStencilModelSourceDriver::className ( ) [inline, virtual]

Definition at line 600 of file FeatureStencilModelSource.cpp.

    {
        return "osgEarth Feature Stencil Model Plugin";
    }
FeatureStencilModelSource* FeatureStencilModelSourceDriver::create ( const Options *  options) [inline]

Definition at line 605 of file FeatureStencilModelSource.cpp.

    {
        ScopedLock<Mutex> lock( _createMutex );

        FeatureStencilModelSource* obj = new FeatureStencilModelSource( 
            getModelSourceOptions(options), 
            _renderBinStart );

        _renderBinStart += MAX_NUM_STYLES*4;

        return obj;
    }

Here is the caller graph for this function:

virtual ReadResult FeatureStencilModelSourceDriver::readObject ( const std::string &  file_name,
const Options *  options 
) const [inline, virtual]

Definition at line 618 of file FeatureStencilModelSource.cpp.

    {
        if ( !acceptsExtension(osgDB::getLowerCaseFileExtension( file_name )))
            return ReadResult::FILE_NOT_HANDLED;

        FeatureStencilModelSourceDriver* nonConstThis = const_cast<FeatureStencilModelSourceDriver*>(this);
        return nonConstThis->create( options );
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 628 of file FeatureStencilModelSource.cpp.

Definition at line 629 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