osgEarth 2.1.1
Functions

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

#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>
Include dependency graph for MarkerSymbolizer.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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
}

Here is the caller graph for this function:

static double getRandomValueInRange ( double  value) [static]

Definition at line 47 of file MarkerSymbolizer.cpp.

{
    return (-value/2) + ((rand() * value)/(RAND_MAX-1));
}

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines