VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtTerrainAltitudeTable Class Reference

Public Types

typedef DtPoint Point
typedef std::vector< DtChord > ChordVector
typedef std::pair< double, double > Segment
typedef std::set< SegmentSegmentSet

Public Member Functions

 DtTerrainAltitudeTable (const osgEarth::Map *map, unsigned lod, double bias=30000, double factor=2)
 Create from map.
void breakUpChord (const MAKVRinTerra::DtProj &proj, DtChord, ChordVector &chords)

Protected Types

typedef boost::ptr_vector
< DtTerrainAltitudeTable
SubCellVector
typedef std::vector< DtChord > BoundaryVector

Protected Member Functions

 DtTerrainAltitudeTable (const osgEarth::TileKey &tilekey, const osgEarth::Map *map, unsigned lod, MAKVRinTerra::DtProj::CPtr, double bias, double factor)
 Create from map and specific tilekey.
 DtTerrainAltitudeTable (const osgEarth::TileKey &tilekey, const osg::HeightField *field, unsigned xmin, unsigned xmax, unsigned ymin, unsigned ymax, MAKVRinTerra::DtProj::CPtr, double bias, double factor)
 Create from a section of a heightfield.
void removeSegments (const DtChord &chord, SegmentSet &set)
 Creates a set of segments of a chord for which the chord is higher in altitude than the max height for that segment.
void createBoundaries ()
 setup boundary info once tilekey has been set
void setMaxHeight ()
 update max height from max heights of children

Protected Attributes

osgEarth::TileKey myTileKey
MAKVRinTerra::DtProj::CPtr myProj
double myXmin
double myXmax
double myYmin
double myYmax
BoundaryVector myBoundaries
double myMaxHeight
SubCellVector mySubcells
double myBias
double myFactor

Member Typedef Documentation

typedef std::vector<DtChord> DtTerrainAltitudeTable::ChordVector
typedef std::pair<double,double> DtTerrainAltitudeTable::Segment
typedef boost::ptr_vector<DtTerrainAltitudeTable> DtTerrainAltitudeTable::SubCellVector
protected
typedef std::vector<DtChord> DtTerrainAltitudeTable::BoundaryVector
protected

Constructor & Destructor Documentation

DtTerrainAltitudeTable::DtTerrainAltitudeTable ( const osgEarth::Map *  map,
unsigned  lod,
double  bias = 30000,
double  factor = 2 
)

Create from map.

DtTerrainAltitudeTable::DtTerrainAltitudeTable ( const osgEarth::TileKey &  tilekey,
const osgEarth::Map *  map,
unsigned  lod,
MAKVRinTerra::DtProj::CPtr  ,
double  bias,
double  factor 
)
protected

Create from map and specific tilekey.

DtTerrainAltitudeTable::DtTerrainAltitudeTable ( const osgEarth::TileKey &  tilekey,
const osg::HeightField *  field,
unsigned  xmin,
unsigned  xmax,
unsigned  ymin,
unsigned  ymax,
MAKVRinTerra::DtProj::CPtr  ,
double  bias,
double  factor 
)
protected

Create from a section of a heightfield.

Member Function Documentation

void DtTerrainAltitudeTable::breakUpChord ( const MAKVRinTerra::DtProj proj,
DtChord  ,
ChordVector chords 
)
void DtTerrainAltitudeTable::removeSegments ( const DtChord &  chord,
SegmentSet set 
)
protected

Creates a set of segments of a chord for which the chord is higher in altitude than the max height for that segment.

The segments are returned as pairs of parameter values, where the parameter (t-value) moves from 0 at the start of the chord to 1 at the end of the chord.

void DtTerrainAltitudeTable::createBoundaries ( )
protected

setup boundary info once tilekey has been set

void DtTerrainAltitudeTable::setMaxHeight ( )
protected

update max height from max heights of children

Member Data Documentation

osgEarth::TileKey DtTerrainAltitudeTable::myTileKey
protected
MAKVRinTerra::DtProj::CPtr DtTerrainAltitudeTable::myProj
protected
double DtTerrainAltitudeTable::myXmin
protected
double DtTerrainAltitudeTable::myXmax
protected
double DtTerrainAltitudeTable::myYmin
protected
double DtTerrainAltitudeTable::myYmax
protected
BoundaryVector DtTerrainAltitudeTable::myBoundaries
protected
double DtTerrainAltitudeTable::myMaxHeight
protected
SubCellVector DtTerrainAltitudeTable::mySubcells
protected
double DtTerrainAltitudeTable::myBias
protected
double DtTerrainAltitudeTable::myFactor
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)