VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
DtElevationWorld Class Reference
Inheritance diagram for DtElevationWorld:
Inheritance graph
[legend]

Classes

struct  XY

Public Member Functions

 DtElevationWorld ()
 Constructor.
virtual ~DtElevationWorld ()
 Virtual destructor.
virtual void setEnabled (bool)
virtual bool isEnabled () const
void setLocalCoordinateSystem (const Coordinate_System *cs)
void setOsgEarthProfile (const osgEarth::Profile *profile)
void setLOD (unsigned lod)
virtual void addElevationGrid (const osgEarth::TileKey &key, ElevationGrid *grid)
 Add an elevation grid object at the specified key.
virtual boost::optional< doublefindElevationAt (const DtPoint &p, bool *dataAvailable=0) const
virtual ~ElevationGrid ()
 Virtual destructor.
virtual boost::optional< doublevalueAt (double x, double y) const =0
virtual boost::optional< doublevalueAt (double x, double y) const
virtual XY< doubleoffset () const =0
 Local position of upper left post.
virtual XY< doublepostSpacing () const =0
 Spacing (in local) between posts.
virtual XY< unsigned > size () const =0
 Number of posts in each dimension.
virtual double postAt (unsigned x, unsigned y) const =0
virtual boost::optional< doublevalueAt (double x, double y) const
virtual void removeElevationGrid (const osgEarth::TileKey &key)
 Remove and delete an elevation grid objects at the specified keys.

Protected Types

typedef tbb::spin_rw_mutex Mutex
typedef std::map
< osgEarth::TileKey,
boost::shared_ptr
< ElevationGrid > > 
ElevationGridContainer
 struct GridHasher { size_t operator()(const osgEarth::TileKey& val) const { return reinterpret_cast<size_t>(val.get()); } };

Protected Attributes

const Coordinate_SystemmyLocalCoordSys
const osgEarth::Profile * myOsgEarthProfile
unsigned myLOD
bool myEnabledFlag
Mutex myMutex
ElevationGridContainer myElevationGrids

Private Member Functions

 DtElevationWorld (const DtElevationWorld &)
 Non copyable.
DtElevationWorldoperator= (const DtElevationWorld &)
 Non assignable.

Member Typedef Documentation

typedef tbb::spin_rw_mutex DtElevationWorld::Mutex
protected
typedef std::map< osgEarth::TileKey, boost::shared_ptr<ElevationGrid> > DtElevationWorld::ElevationGridContainer
protected

struct GridHasher { size_t operator()(const osgEarth::TileKey& val) const { return reinterpret_cast<size_t>(val.get()); } };

Constructor & Destructor Documentation

DtElevationWorld::DtElevationWorld ( )

Constructor.

virtual DtElevationWorld::~DtElevationWorld ( )
virtual

Virtual destructor.

DtElevationWorld::DtElevationWorld ( const DtElevationWorld )
private

Non copyable.

virtual DtElevationWorld::~ElevationGrid ( )
virtual

Virtual destructor.

Member Function Documentation

virtual void DtElevationWorld::setEnabled ( bool  )
virtual
virtual bool DtElevationWorld::isEnabled ( ) const
virtual
void DtElevationWorld::setLocalCoordinateSystem ( const Coordinate_System cs)
inline
void DtElevationWorld::setOsgEarthProfile ( const osgEarth::Profile *  profile)
inline
void DtElevationWorld::setLOD ( unsigned  lod)
inline
virtual void DtElevationWorld::addElevationGrid ( const osgEarth::TileKey &  key,
ElevationGrid grid 
)
virtual

Add an elevation grid object at the specified key.

Thread safe.

virtual void DtElevationWorld::removeElevationGrid ( const osgEarth::TileKey &  key)
virtual

Remove and delete an elevation grid objects at the specified keys.

Thread safe.

virtual boost::optional<double> DtElevationWorld::findElevationAt ( const DtPoint p,
bool dataAvailable = 0 
) const
virtual
DtElevationWorld& DtElevationWorld::operator= ( const DtElevationWorld )
private

Non assignable.

virtual boost::optional<double> DtElevationWorld::valueAt ( double  x,
double  y 
) const
pure virtual
virtual boost::optional<double> DtElevationWorld::valueAt ( double  x,
double  y 
) const
virtual
virtual XY<double> DtElevationWorld::offset ( ) const
pure virtual

Local position of upper left post.

virtual XY<double> DtElevationWorld::postSpacing ( ) const
pure virtual

Spacing (in local) between posts.

virtual XY<unsigned> DtElevationWorld::size ( ) const
pure virtual

Number of posts in each dimension.

virtual double DtElevationWorld::postAt ( unsigned  x,
unsigned  y 
) const
pure virtual
virtual boost::optional<double> DtElevationWorld::valueAt ( double  x,
double  y 
) const
virtual

Member Data Documentation

const Coordinate_System* DtElevationWorld::myLocalCoordSys
protected
const osgEarth::Profile* DtElevationWorld::myOsgEarthProfile
protected
unsigned DtElevationWorld::myLOD
protected
bool DtElevationWorld::myEnabledFlag
protected
Mutex DtElevationWorld::myMutex
mutableprotected
ElevationGridContainer DtElevationWorld::myElevationGrids
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)