Namespaces | Defines | Functions | Variables

_src_world_planet_ossim.cc File Reference

Planet class is a Facade over ossimplanet or one GIS image. More...

#include "base/module.hh"
#include "base/conf.hh"
#include "base/file.hh"
#include "base/stream.hh"
#include "glue/module.hh"
#include "math/module.hh"
#include "math/funcs.hh"
#include "math/funcs_vector.hh"
#include "object/module.hh"
#include "gfx/module.hh"
#include "gfx/rgb_colors.hh"
#include "graph/module.hh"
#include "graph/scene_graph.hh"
#include "world/module.hh"
#include "world/defs.hh"
#include "world/conf.hh"
#include "world/planet.hh"
#include "world/planet_ossim.hh"

Namespaces

namespace  world
 

world module.


namespace  world::defs

Defines

#define WORLD_PLANET_OSSIM_CC   1
#define NEED_PLANET_CLASS   1
#define WORLD_OSSIM_VERBOSE   1
#define COMPILE_ALTITUDE_MSL   1
#define PAL_OSSIM_VERSION   (OSSIM_MAJOR_VERSION_NUMBER * 10000 + OSSIM_MINOR_VERSION_NUMBER * 100 + OSSIM_RELEASE_NUMBER)
#define TEST_CONVERSION(LAT, LON, ALT)

Functions

template<typename NUMBER_TYPE >
void world::ASSIGN_KWL_NUMBER (ossimKeywordlist &kwl, const char *keyword, NUMBER_TYPE &var)

Variables

const string world::defs::OSSIM_CONF_FILENAME = "ossim.kwl"
const fp world::defs::RECOMPUTE_TANGENT_MATRIX_THRESHOLD = 0.01f
const ossim_uint32 world::defs::DEFAULT_OSSIM_LEVEL_DETAIL = 16
const bool world::defs::DEFAULT_OSSIM_ELEV_ENABLED = true
const fpx world::defs::DEFAULT_OSSIM_ELEV_SCALE = 1.0
const bool world::defs::DEFAULT_OSSIM_MIPMAPPING_FLAG = true

Detailed Description

Planet class is a Facade over ossimplanet or one GIS image.

LastChangedDate:
2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
Author:
Jim E. Brooks http://www.palomino3d.org
 *
 * Degrees vs. radians:
 * --------------------
 * osg::Ellipsoid is based on RADIANS.
 * SphereVertex is based on Degrees.
 * Relevant OSSIM methods are based on DEGREES.
 *
 * Latitude and longitude:
 * -----------------------
 * Latitude is in range {-90,..+90} degrees.
 * Longitude is in range {-180,..,+180} degrees.
 *
 * 

Define Documentation

#define COMPILE_ALTITUDE_MSL   1
#define NEED_PLANET_CLASS   1
#define PAL_OSSIM_VERSION   (OSSIM_MAJOR_VERSION_NUMBER * 10000 + OSSIM_MINOR_VERSION_NUMBER * 100 + OSSIM_RELEASE_NUMBER)
#define TEST_CONVERSION (   LAT,
  LON,
  ALT 
)
Value:
{                                                                               \
        const SphereVertex debugSV( Degree(LAT), Degree(LON), Meter(ALT) );         \
        const WorldVertex  debugWV = SphereVertex2WorldVertex( debugSV );           \
        const SphereVertex debugSV2 = WorldVertex2SphereVertex( debugWV );          \
      /*CERROR << debugSV << std::endl;*/                                           \
      /*CERROR << debugWV << std::endl;*/                                           \
      /*CERROR << debugSV2 << std::endl;*/                                          \
        ASSERT( FP_EQ<fp>( debugSV.mLat, debugSV2.mLat ) );                         \
        ASSERT( FP_EQ<fp>( debugSV.mLon, debugSV2.mLon ) );                         \
        ASSERT( ABS(debugSV.mAlt.FP() - debugSV2.mAlt.FP()) < altMargin );          \
    }
#define WORLD_OSSIM_VERBOSE   1
#define WORLD_PLANET_OSSIM_CC   1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10