List of all members.
Detailed Description
Helper class for setting up and acquiring line of sight intersections with terrain. Supports automatic paging in of PagedLOD tiles.
Member Typedef Documentation
Constructor & Destructor Documentation
osgSim::LineOfSight::LineOfSight |
( |
) |
|
Member Function Documentation
Add a line of sight test, consisting of start and end point. Returns the index number of the newly adding LOS test.
void osgSim::LineOfSight::clear |
( |
) |
|
Clear the internal LOS List so it contains no line of sight tests.
void osgSim::LineOfSight::clearDatabaseCache |
( |
) |
[inline] |
Clear the database cache.
Compute the LOS intersections with the specified scene graph. The results are all stored in the form of Intersections list, one per LOS test.
Compute the intersection between the specified scene graph and a single LOS start,end pair. Returns an IntersectionList, of all the points intersected.
Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs.
const osg::Vec3d& osgSim::LineOfSight::getEndPoint |
( |
unsigned int |
i ) |
const [inline] |
Get the end point of single line of sight test.
const Intersections& osgSim::LineOfSight::getIntersections |
( |
unsigned int |
i ) |
const [inline] |
Get the intersection points for a single line of sight test.
unsigned int osgSim::LineOfSight::getNumLOS |
( |
) |
const [inline] |
Get the number of line of sight tests.
const osg::Vec3d& osgSim::LineOfSight::getStartPoint |
( |
unsigned int |
i ) |
const [inline] |
Get the start point of single line of sight test.
Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. Note, if you have multiple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them.
void osgSim::LineOfSight::setEndPoint |
( |
unsigned int |
i, |
|
|
const osg::Vec3d & |
end |
|
) |
| [inline] |
Set the end point of single line of sight test.
void osgSim::LineOfSight::setStartPoint |
( |
unsigned int |
i, |
|
|
const osg::Vec3d & |
start |
|
) |
| [inline] |
Set the start point of single line of sight test.
Member Data Documentation
The documentation for this class was generated from the following file: