osgEarth 2.1.1
Functions

/home/cube/sources/osgearth/src/osgEarthSymbology/ModelSymbolizer.cpp File Reference

#include <osgEarthSymbology/ModelSymbolizer>
#include <osgEarthSymbology/MarkerSymbol>
#include <osgEarth/HTTPClient>
#include <osg/Geode>
#include <osg/Version>
#include <osgDB/ReadFile>
#include <osgDB/ReaderWriter>
Include dependency graph for ModelSymbolizer.cpp:

Go to the source code of this file.

Functions

static osg::Node * getNode (const std::string &str)

Function Documentation

static osg::Node* getNode ( const std::string &  str) [static]

Definition at line 34 of file ModelSymbolizer.cpp.

{
    osg::ref_ptr<osg::Node> output;
#if OSG_VERSION_LESS_THAN(2,9,8)
    osg::ref_ptr<osgDB::ReaderWriter::Options> options = new osgDB::ReaderWriter::Options;
    options->setObjectCacheHint(osgDB::ReaderWriter::Options::CACHE_ALL);
#else
    osg::ref_ptr<osgDB::Options> options = new osgDB::Options;
    options->setObjectCacheHint(osgDB::Options::CACHE_ALL);
#endif
    if ( HTTPClient::readNodeFile( str, output, options.get(), 0 ) == HTTPClient::RESULT_OK )
    {
        osg::notify(osg::NOTICE) << "loaded " << str << std::endl;
    }
    else
    {
        osg::notify(osg::NOTICE) << "can't load " << str << std::endl;
    }
    return output.release();
}

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines