osgEarth 2.1.1
|
#include <osgEarthSymbology/MarkerSymbolizer>
#include <osgEarthSymbology/MarkerSymbol>
#include <osgDB/ReadFile>
#include <osgDB/ReaderWriter>
#include <osg/Geometry>
#include <osg/MatrixTransform>
#include <osg/Material>
#include <osg/Geode>
#include <osg/Version>
Go to the source code of this file.
Functions | |
static osg::Node * | getNode (const std::string &str) |
static double | getRandomValueInRange (double value) |
static osg::Node* getNode | ( | const std::string & | str | ) | [static] |
Definition at line 32 of file MarkerSymbolizer.cpp.
{ #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); osg::Node* node = osgDB::readNodeFile(str, options.get()); return node; #else osg::ref_ptr<osgDB::Options> options = new osgDB::Options; options->setObjectCacheHint(osgDB::Options::CACHE_ALL); osg::Node* node = osgDB::readNodeFile(str, options.get()); return node; #endif }
static double getRandomValueInRange | ( | double | value | ) | [static] |
Definition at line 47 of file MarkerSymbolizer.cpp.
{
return (-value/2) + ((rand() * value)/(RAND_MAX-1));
}