VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
terrainUtil.h File Reference

Go to the source code of this file.

Classes

struct  MinMaxInfo
 code for checking if a geometry wraps around the borders of the world map More...
 

Functions

DtSphere boundingSphere2DtSphere (const osg::BoundingSphere &boundingSphere)
 
void convertGeometry (const DtTerrainPagingGeometryPtr &geometry, const Coordinate_System *CS, const double worldWidth, std::vector< DtTerrainPagingGeometryPtr > &output)
 Convert geometry to internal coordinate system. More...
 
void convertToOsgEarthCoordSys (DtPoint &p, CS_Type cstype)
 convert to coordinate system used by osgEarth tiles More...
 
void convertFromOsgEarthCoordSys (DtPoint &p, CS_Type cstype)
 convert from coordinate system used by osgEarth tiles More...
 
void convertFromOsgEarthCoordSys (DtVector &p, CS_Type cstype)
 convert from coordinate system used by osgEarth tiles More...
 
void convertFromOsgEarthCoordSys (DtVrfChordIntersectionRecord &record, CS_Type cstype)
 convert from coordinate system used by osgEarth tiles More...
 
void unwrap (double width, DtLocalVertexList &list, std::vector< DtTerrainPagingGeometryPtr > &output)
 unwrap moves points lower one world width if they are on the upper half side of the world this is so when geometries overlap the borders of the map we know they will be on the lower half and then we only have to deal with those cases More...
 
bool extentIntersectsAABB (const DtVector &min1, const DtVector &max1, const DtVector &min2, const DtVector &max2)
 TODO ALL functions below should be inline. More...
 
bool boundariesOverlap (double min1, double max1, double min2, double max2)
 
DtExtent sphereExtent (const DtSphere &sphere)
 
bool shapeIntersectsAABB (const DtLocalVertexList &shape, const DtVector &lower, const DtVector &upper)
 
bool pointIntersectsAABB (const DtVector &p, const DtVector &lower, const DtVector &upper)
 
bool doubleEqual (double d1, double d2)
 
DtVrfChordIntersectionRecordinsertRecordAlongChord (const DtVrfChordIntersectionRecord &record, DtVrfChordIntersectRecordList &intList)
 inserts points inter intersection record list checks each point against the one before and after and rejects if too close More...
 

Function Documentation

DtSphere boundingSphere2DtSphere ( const osg::BoundingSphere &  boundingSphere)
void convertGeometry ( const DtTerrainPagingGeometryPtr geometry,
const Coordinate_System CS,
const double  worldWidth,
std::vector< DtTerrainPagingGeometryPtr > &  output 
)

Convert geometry to internal coordinate system.

void convertToOsgEarthCoordSys ( DtPoint p,
CS_Type  cstype 
)

convert to coordinate system used by osgEarth tiles

void convertFromOsgEarthCoordSys ( DtPoint p,
CS_Type  cstype 
)

convert from coordinate system used by osgEarth tiles

void convertFromOsgEarthCoordSys ( DtVector p,
CS_Type  cstype 
)

convert from coordinate system used by osgEarth tiles

void convertFromOsgEarthCoordSys ( DtVrfChordIntersectionRecord record,
CS_Type  cstype 
)

convert from coordinate system used by osgEarth tiles

void unwrap ( double  width,
DtLocalVertexList list,
std::vector< DtTerrainPagingGeometryPtr > &  output 
)

unwrap moves points lower one world width if they are on the upper half side of the world this is so when geometries overlap the borders of the map we know they will be on the lower half and then we only have to deal with those cases

bool extentIntersectsAABB ( const DtVector min1,
const DtVector max1,
const DtVector min2,
const DtVector max2 
)

TODO ALL functions below should be inline.

bool boundariesOverlap ( double  min1,
double  max1,
double  min2,
double  max2 
)
DtExtent sphereExtent ( const DtSphere sphere)
bool shapeIntersectsAABB ( const DtLocalVertexList shape,
const DtVector lower,
const DtVector upper 
)
bool pointIntersectsAABB ( const DtVector p,
const DtVector lower,
const DtVector upper 
)
bool doubleEqual ( double  d1,
double  d2 
)
DtVrfChordIntersectionRecord* insertRecordAlongChord ( const DtVrfChordIntersectionRecord record,
DtVrfChordIntersectRecordList intList 
)

inserts points inter intersection record list checks each point against the one before and after and rejects if too close


Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)