14#ifndef OSGSIM_HEIGHTABOVETERRAIN
15#define OSGSIM_HEIGHTABOVETERRAIN 1
The osgSim library is a NodeKit that extends the core scene graph to support nodes and drawables that...
Definition BlinkSequence:27
Base class for all internal nodes in the scene graph.
Definition Node:72
unsigned int NodeMask
This is a set of bits (flags) that represent the Node.
Definition Node:363
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
osgUtil::IntersectionVisitor _intersectionVisitor
Definition HeightAboveTerrain:109
double getHeightAboveTerrain(unsigned int i) const
Get the intersection height for a single height above terrain test.
Definition HeightAboveTerrain:58
DatabaseCacheReadCallback * getDatabaseCacheReadCallback()
Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgrap...
Definition HeightAboveTerrain:87
void setLowestHeight(double lowestHeight)
Set the lowest height that the should be tested for.
Definition HeightAboveTerrain:62
double _lowestHeight
Definition HeightAboveTerrain:104
void setDatabaseCacheReadCallback(DatabaseCacheReadCallback *dcrc)
Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgrap...
void clear()
Clear the internal HAT List so it contains no height above terrain tests.
void clearDatabaseCache()
Clear the database cache.
Definition HeightAboveTerrain:79
const osg::Vec3d & getPoint(unsigned int i) const
Get the source point of single height above terrain test.
Definition HeightAboveTerrain:53
std::vector< HAT > HATList
Definition HeightAboveTerrain:101
unsigned int addPoint(const osg::Vec3d &point)
Add a height above terrain test point in the CoordinateFrame.
void computeIntersections(osg::Node *scene, osg::Node::NodeMask traversalMask=0xffffffff)
Compute the HAT intersections with the specified scene graph.
osg::ref_ptr< DatabaseCacheReadCallback > _dcrc
Definition HeightAboveTerrain:108
HATList _HATList
Definition HeightAboveTerrain:105
static double computeHeightAboveTerrain(osg::Node *scene, const osg::Vec3d &point, osg::Node::NodeMask traversalMask=0xffffffff)
Compute the vertical distance between the specified scene graph and a single HAT point.
void setPoint(unsigned int i, const osg::Vec3d &point)
Set the source point of single height above terrain test.
Definition HeightAboveTerrain:50
unsigned int getNumPoints() const
Get the number of height above terrain tests.
Definition HeightAboveTerrain:47
double getLowestHeight() const
Get the lowest height that the should be tested for.
Definition HeightAboveTerrain:65
HAT(const osg::Vec3d &point)
Definition HeightAboveTerrain:93
osg::Vec3d _point
Definition HeightAboveTerrain:97
double _hat
Definition HeightAboveTerrain:98
Definition LineOfSight:24
IntersectionVisitor is used to testing for intersections with the scene, traversing the scene using g...
Definition IntersectionVisitor:152
#define OSGSIM_EXPORT
Definition Export:38