osgEarth 2.1.1
Classes | Namespaces | Defines | Functions | Variables

/home/cube/sources/osgearth/src/osgEarthUtil/SkyNode.cpp File Reference

#include <osgEarthUtil/SkyNode>
#include <osgEarthUtil/StarData>
#include <osgEarth/ShaderComposition>
#include <osgEarth/FindNode>
#include <osgEarth/MapNode>
#include <osg/MatrixTransform>
#include <osg/ShapeDrawable>
#include <osg/BlendFunc>
#include <osg/FrontFace>
#include <osg/CullFace>
#include <osg/Program>
#include <osg/Point>
#include <osg/Shape>
#include <osg/Depth>
#include <osg/Quat>
#include <sstream>
#include <time.h>
Include dependency graph for SkyNode.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{SkyNode.cpp}::DoNotIncludeInNearFarComputationCallback
struct  anonymous_namespace{SkyNode.cpp}::OverrideNearFarValuesCallback
struct  anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor
struct  anonymous_namespace{SkyNode.cpp}::Sun

Namespaces

namespace  anonymous_namespace{SkyNode.cpp}

Defines

#define LC   "[SkyNode] "
#define BIN_STARS   -10
#define BIN_SUN   -9
#define BIN_ATMOSPHERE   -8
#define d2r(X)   osg::DegreesToRadians(X)
#define r2d(X)   osg::RadiansToDegrees(X)
#define nrad(X)   { while( X > TWO_PI ) X -= TWO_PI; while( X < 0.0 ) X += TWO_PI; }
#define nrad2(X)   { while( X <= -osg::PI ) X += TWO_PI; while( X > osg::PI ) X -= TWO_PI; }

Functions

osg::Geometry * anonymous_namespace{SkyNode.cpp}::s_makeEllipsoidGeometry (const osg::EllipsoidModel *ellipsoid, double outerRadius)
osg::Geometry * anonymous_namespace{SkyNode.cpp}::s_makeDiscGeometry (double radius)
double anonymous_namespace{SkyNode.cpp}::getJulianDate (int year, int month, int date)

Variables

static const double anonymous_namespace{SkyNode.cpp}::TWO_PI = (2.0*osg::PI)
static const double anonymous_namespace{SkyNode.cpp}::JD2000 = 2451545.0
static char anonymous_namespace{SkyNode.cpp}::s_atmosphereVertexSource [] = "} \n"
static char anonymous_namespace{SkyNode.cpp}::s_atmosphereFragmentSource [] = "} \n"
static char anonymous_namespace{SkyNode.cpp}::s_sunVertexSource [] = "} \n"
static char anonymous_namespace{SkyNode.cpp}::s_sunFragmentSource [] = "} \n"
static const char anonymous_namespace{SkyNode.cpp}::s_starVertexSource [] = "} \n"
static const char anonymous_namespace{SkyNode.cpp}::s_starFragmentSource [] = "} \n"

Define Documentation

#define BIN_ATMOSPHERE   -8

Definition at line 49 of file SkyNode.cpp.

#define BIN_STARS   -10

Definition at line 47 of file SkyNode.cpp.

#define BIN_SUN   -9

Definition at line 48 of file SkyNode.cpp.

#define d2r (   X)    osg::DegreesToRadians(X)

Definition at line 248 of file SkyNode.cpp.

#define LC   "[SkyNode] "

Definition at line 40 of file SkyNode.cpp.

#define nrad (   X)    { while( X > TWO_PI ) X -= TWO_PI; while( X < 0.0 ) X += TWO_PI; }

Definition at line 250 of file SkyNode.cpp.

#define nrad2 (   X)    { while( X <= -osg::PI ) X += TWO_PI; while( X > osg::PI ) X -= TWO_PI; }

Definition at line 251 of file SkyNode.cpp.

#define r2d (   X)    osg::RadiansToDegrees(X)

Definition at line 249 of file SkyNode.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines