osgEarth 2.1.1
|
#include <osgEarthSymbology/ModelSymbolizer>
#include <osgEarthSymbology/MarkerSymbol>
#include <osgEarth/HTTPClient>
#include <osg/Geode>
#include <osg/Version>
#include <osgDB/ReadFile>
#include <osgDB/ReaderWriter>
Go to the source code of this file.
Functions | |
static osg::Node * | getNode (const std::string &str) |
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(); }