osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Private Attributes | Friends

osgEarth::ModelSource Class Reference

Inheritance diagram for osgEarth::ModelSource:
Collaboration diagram for osgEarth::ModelSource:

List of all members.

Public Member Functions

 ModelSource (const ModelSourceOptions &options=ModelSourceOptions())
virtual osg::Node * createNode (ProgressCallback *progress=0L)=0
virtual osg::Object * cloneType () const
virtual osg::Object * clone (const osg::CopyOp &) const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual const char * className () const
virtual const char * libraryName () const
virtual void initialize (const std::string &referenceURI, const Map *map)
const ModelSourceOptionsgetOptions () const

Protected Member Functions

virtual ~ModelSource ()

Private Attributes

const ModelSourceOptions _options
optional< double > _minRange
optional< double > _maxRange
optional< int > _renderOrder

Friends

class Map
class MapEngine
class ModelSourceFactory

Detailed Description

A ModelSource is a plugin object that generates OSG nodes.

Definition at line 82 of file ModelSource.


Constructor & Destructor Documentation

ModelSource::ModelSource ( const ModelSourceOptions options = ModelSourceOptions())

Definition at line 58 of file ModelSource.cpp.

                                                            :
_options( options )
{
    //TODO: is this really necessary?
    this->setThreadSafeRefUnref( true );
}
virtual osgEarth::ModelSource::~ModelSource ( ) [inline, protected, virtual]

Definition at line 110 of file ModelSource.

{ }

Member Function Documentation

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

Reimplemented in osgEarth::Features::FeatureModelSource.

Definition at line 97 of file ModelSource.

{ return "ModelSource"; }
virtual osg::Object* osgEarth::ModelSource::clone ( const osg::CopyOp &  ) const [inline, virtual]

Reimplemented in osgEarth::Features::FeatureModelSource.

Definition at line 95 of file ModelSource.

{ return 0; } // clone() not appropriate
virtual osg::Object* osgEarth::ModelSource::cloneType ( ) const [inline, virtual]

Reimplemented in osgEarth::Features::FeatureModelSource.

Definition at line 94 of file ModelSource.

{ return 0; } // cloneType() not appropriate
virtual osg::Node* osgEarth::ModelSource::createNode ( ProgressCallback progress = 0L) [pure virtual]

Subclass implements this method to create the mode node.

Implemented in SimpleModelSource, and osgEarth::Features::FeatureModelSource.

const ModelSourceOptions& osgEarth::ModelSource::getOptions ( ) const [inline]

Reimplemented in anonymous_namespace{FeatureGeomModelSource.cpp}::FeatureGeomModelSource.

Definition at line 106 of file ModelSource.

                                                     {
            return _options; }

Here is the caller graph for this function:

virtual void osgEarth::ModelSource::initialize ( const std::string &  referenceURI,
const Map map 
) [inline, virtual]
virtual bool osgEarth::ModelSource::isSameKindAs ( const osg::Object *  obj) const [inline, virtual]

Reimplemented in osgEarth::Features::FeatureModelSource.

Definition at line 96 of file ModelSource.

{ return dynamic_cast<const ModelSource*>(obj)!=NULL; }
virtual const char* osgEarth::ModelSource::libraryName ( ) const [inline, virtual]

Reimplemented in osgEarth::Features::FeatureModelSource.

Definition at line 98 of file ModelSource.

{ return "osgEarth"; }

Friends And Related Function Documentation

friend class Map [friend]

Definition at line 118 of file ModelSource.

friend class MapEngine [friend]

Definition at line 119 of file ModelSource.

friend class ModelSourceFactory [friend]

Definition at line 120 of file ModelSource.


Member Data Documentation

Definition at line 115 of file ModelSource.

Definition at line 114 of file ModelSource.

Definition at line 116 of file ModelSource.


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