Public Member Functions | Private Member Functions | Private Attributes | Friends

world::OssimPlanet Class Reference

OssimPlanet class is a Facade over ossimplanet. More...

#include <_src_world_planet_ossim.hh>

Inheritance diagram for world::OssimPlanet:
world::Planet

List of all members.

Public Member Functions

virtual shptr< ObjectGetRootObject (void)
virtual bool IfFlat (void)
virtual const MatrixGetTangentMatrix (const SphereVertex &sv)
virtual WorldVertex ComputeUpVector (const SphereVertex &sv)
virtual WorldVertex SphereVertex2WorldVertex (const SphereVertex &sv)
virtual SphereVertex WorldVertex2SphereVertex (const WorldVertex &wv)
virtual fpx MeterSimRatio (void)
virtual fp RadiusGraphical (void)
virtual BoxVolume GetVolume (void)

Private Member Functions

 OssimPlanet (void)
 ~OssimPlanet ()
void DebugSelfChecks (void)
void ChangeKeywordRelativePath (ossimKeywordlist &kwl, const char key[])
string FindOssimDataDir (void)
string FindOrMakeCacheDir (void)
void RecomputeMeterSimRatio (void)

Private Attributes

shptr0< Object > mRootObject
 encapsulates ossimplanet as an Object
RefPtr< ossimPlanet > mOssimPlanet
 www.ossim.org
RefPtr< ossimPlanetGeoRefModel > mOssimModel
 tweak
Matrix mTangentMatrix
 tangent to a point on the world
fpx mMeterSimRatio
 ratio of meters to a graphical coordinates
fpx mElevationScale
 defined in data/ossim.kwl

Friends

class Planet

Detailed Description

OssimPlanet class is a Facade over ossimplanet.

Planet is a private implementation of the world module. Unusually, Planet derivatives are instantiated by the base Planet::GetInstance().


Constructor & Destructor Documentation

world::OssimPlanet::OssimPlanet ( void   )  [private]

ctor/dtor.

world::OssimPlanet::~OssimPlanet (  )  [private]

Member Function Documentation

void world::OssimPlanet::ChangeKeywordRelativePath ( ossimKeywordlist &  kwl,
const char  key[] 
) [private]

In an OSSIM keyword list (loaded from data/ossim.kwl), if a path is relative (no leading '/' char), prepend the data dir.

WorldVertex world::OssimPlanet::ComputeUpVector ( const SphereVertex &  sv  )  [virtual]

Compute a normalized "up vector" extending from a point on the world.

Implements world::Planet.

void world::OssimPlanet::DebugSelfChecks ( void   )  [private]

Debug.

string world::OssimPlanet::FindOrMakeCacheDir ( void   )  [private]

Find or create the cache dir.

Returns:
Directory or THROWS EXCEPTION!
string world::OssimPlanet::FindOssimDataDir ( void   )  [private]

Find the directory containing OSSIM configuration. Usually ~/.ossim.

Returns:
Directory or THROWS C++ EXCEPTION!
shptr< Object > world::OssimPlanet::GetRootObject ( void   )  [virtual]
Returns:
The planet's node.

Implements world::Planet.

const Matrix & world::OssimPlanet::GetTangentMatrix ( const SphereVertex &  sv  )  [virtual]

Compute a matrix that is tangent to a point on the world.

Implements world::Planet.

BoxVolume world::OssimPlanet::GetVolume ( void   )  [virtual]
Returns:
Volume of world in 3D space.

Implements world::Planet.

virtual bool world::OssimPlanet::IfFlat ( void   )  [inline, virtual]

Implements world::Planet.

fpx world::OssimPlanet::MeterSimRatio ( void   )  [virtual]
Returns:
meter / graphicCoord

Implements world::Planet.

fp world::OssimPlanet::RadiusGraphical ( void   )  [virtual]

Compute the radius of the planet in graphical coordinates.

Implements world::Planet.

void world::OssimPlanet::RecomputeMeterSimRatio ( void   )  [private]

[private] Re-compute the meter/sim ratio.

WorldVertex world::OssimPlanet::SphereVertex2WorldVertex ( const SphereVertex &  sv  )  [virtual]

Convert spherical coordinates to a 3D vertex.

Implements world::Planet.

virtual SphereVertex world::OssimPlanet::WorldVertex2SphereVertex ( const WorldVertex &  wv  )  [virtual]

Implements world::Planet.


Friends And Related Function Documentation

friend class Planet [friend]

Member Data Documentation

defined in data/ossim.kwl

ratio of meters to a graphical coordinates

RefPtr<ossimPlanetGeoRefModel> world::OssimPlanet::mOssimModel [private]

tweak

RefPtr<ossimPlanet> world::OssimPlanet::mOssimPlanet [private]

www.ossim.org

shptr0<Object> world::OssimPlanet::mRootObject [private]

encapsulates ossimplanet as an Object

tangent to a point on the world


The documentation for this class was generated from the following files:
 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:13