VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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< DtChordChordVector
 
typedef std::pair< double, doubleSegment
 
typedef std::set< SegmentSegmentSet
 

Public Member Functions

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

Protected Types

typedef boost::ptr_vector
< DtTerrainAltitudeTable
SubCellVector
 
typedef std::vector< DtChordBoundaryVector
 

Protected Member Functions

 DtTerrainAltitudeTable (const osgEarth::TileKey &tilekey, const osgEarth::Map *map, unsigned lod, MAKVRinTerra::DtProj::CPtr, double bias, double factor)
 
 DtTerrainAltitudeTable (const osgEarth::TileKey &tilekey, const osg::HeightField *field, unsigned xmin, unsigned xmax, unsigned ymin, unsigned ymax, MAKVRinTerra::DtProj::CPtr, double bias, double factor)
 
void removeSegments (const DtChord &chord, SegmentSet &set)
 
void createBoundaries ()
 
void setMaxHeight ()
 

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 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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)