osgSim::ElevationSlice Class Reference
List of all members.
Detailed Description
Helper class for setting up and acquiring height above terrain intersections with terrain.
Member Typedef Documentation
Constructor & Destructor Documentation
osgSim::ElevationSlice::ElevationSlice |
( |
|
) |
|
Member Function Documentation
void osgSim::ElevationSlice::clearDatabaseCache |
( |
|
) |
[inline] |
Clear the database cache.
Compute the vertical distance between the specified scene graph and a single HAT point.
Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector.
Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs.
const DistanceHeightList& osgSim::ElevationSlice::getDistanceHeightIntersections |
( |
|
) |
const [inline] |
Get the intersections in the form a vector of pair<double,double> representing distance along the slice and height.
const osg::Vec3d& osgSim::ElevationSlice::getEndPoint |
( |
|
) |
const [inline] |
Get the end point of the slice.
const Vec3dList& osgSim::ElevationSlice::getIntersections |
( |
|
) |
const [inline] |
Get the intersections in the form of a vector of Vec3d.
const osg::Vec3d& osgSim::ElevationSlice::getStartPoint |
( |
|
) |
const [inline] |
Get the start point of the slice.
Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. Note, if you have multiple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them.
void osgSim::ElevationSlice::setEndPoint |
( |
const osg::Vec3d & |
endPoint |
) |
[inline] |
Set the end point of the slice.
void osgSim::ElevationSlice::setStartPoint |
( |
const osg::Vec3d & |
startPoint |
) |
[inline] |
Set the start point of the slice.
Member Data Documentation
The documentation for this class was generated from the following file: