osgEarth 2.1.1
|
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 ModelSourceOptions & | getOptions () 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 |
A ModelSource is a plugin object that generates OSG nodes.
Definition at line 82 of file ModelSource.
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.
{ }
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; }
virtual void osgEarth::ModelSource::initialize | ( | const std::string & | referenceURI, |
const Map * | map | ||
) | [inline, virtual] |
Initialize the NodeSource.
Reimplemented in anonymous_namespace{FeatureGeomModelSource.cpp}::FeatureGeomModelSource, anonymous_namespace{FeatureLabelModelSource.cpp}::FeatureLabelModelSource, anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource, SimpleModelSource, and osgEarth::Features::FeatureModelSource.
Definition at line 102 of file ModelSource.
{ }
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"; }
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.
optional<double> osgEarth::ModelSource::_maxRange [private] |
Definition at line 115 of file ModelSource.
optional<double> osgEarth::ModelSource::_minRange [private] |
Definition at line 114 of file ModelSource.
const ModelSourceOptions osgEarth::ModelSource::_options [private] |
Reimplemented in anonymous_namespace{FeatureGeomModelSource.cpp}::FeatureGeomModelSource, anonymous_namespace{FeatureLabelModelSource.cpp}::FeatureLabelModelSource, anonymous_namespace{FeatureStencilModelSource.cpp}::FeatureStencilModelSource, SimpleModelSource, and osgEarth::Features::FeatureModelSource.
Definition at line 113 of file ModelSource.
optional<int> osgEarth::ModelSource::_renderOrder [private] |
Definition at line 116 of file ModelSource.