VR-Forces 5.0.3 Developer's Guide
 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
 

Functions

DtSphere boundingSphere2DtSphere (const osg::BoundingSphere &boundingSphere)
 
void convertGeometry (const DtTerrainPagingGeometryPtr &geometry, const Coordinate_System *CS, const double worldWidth, std::vector< DtTerrainPagingGeometryPtr > &output)
 
void convertToOsgEarthCoordSys (DtPoint &p, CS_Type cstype)
 
void convertFromOsgEarthCoordSys (DtPoint &p, CS_Type cstype)
 
void convertFromOsgEarthCoordSys (DtVector &p, CS_Type cstype)
 
void convertFromOsgEarthCoordSys (DtVrfChordIntersectionRecord &record, CS_Type cstype)
 
void unwrap (double width, DtLocalVertexList &list, std::vector< DtTerrainPagingGeometryPtr > &output)
 
bool extentIntersectsAABB (const DtVector &min1, const DtVector &max1, const DtVector &min2, const DtVector &max2)
 
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)
 

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 
)

Convert geometry to internal coordinate system.

DtExtent sphereExtent ( const DtSphere sphere)

Convert geometry to internal coordinate system.

bool shapeIntersectsAABB ( const DtLocalVertexList shape,
const DtVector lower,
const DtVector upper 
)

Convert geometry to internal coordinate system.

bool pointIntersectsAABB ( const DtVector p,
const DtVector lower,
const DtVector upper 
)

Convert geometry to internal coordinate system.

bool doubleEqual ( double  d1,
double  d2 
)

Convert geometry to internal coordinate system.

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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)