14#ifndef OSGSIM_ELEVATIONSLICE
15#define OSGSIM_ELEVATIONSLICE 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
DistanceHeightList _distanceHeightIntersections
Definition ElevationSlice:91
osg::ref_ptr< DatabaseCacheReadCallback > _dcrc
Definition ElevationSlice:93
void setDatabaseCacheReadCallback(DatabaseCacheReadCallback *dcrc)
Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgrap...
void setStartPoint(const osg::Vec3d &startPoint)
Set the start point of the slice.
Definition ElevationSlice:40
std::vector< osg::Vec3d > Vec3dList
Definition ElevationSlice:52
std::pair< double, double > DistanceHeight
Definition ElevationSlice:57
void setEndPoint(const osg::Vec3d &endPoint)
Set the end point of the slice.
Definition ElevationSlice:46
DatabaseCacheReadCallback * getDatabaseCacheReadCallback()
Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgrap...
Definition ElevationSlice:83
osg::Vec3d _startPoint
Definition ElevationSlice:88
const Vec3dList & getIntersections() const
Get the intersections in the form of a vector of Vec3d.
Definition ElevationSlice:55
void clearDatabaseCache()
Clear the database cache.
Definition ElevationSlice:75
const DistanceHeightList & getDistanceHeightIntersections() const
Get the intersections in the form a vector of pair<double,double> representing distance along the sli...
Definition ElevationSlice:61
Vec3dList _intersections
Definition ElevationSlice:90
const osg::Vec3d & getStartPoint() const
Get the start point of the slice.
Definition ElevationSlice:43
const osg::Vec3d & getEndPoint() const
Get the end point of the slice.
Definition ElevationSlice:49
static Vec3dList computeElevationSlice(osg::Node *scene, const osg::Vec3d &startPoint, const osg::Vec3d &endPoint, osg::Node::NodeMask traversalMask=0xffffffff)
Compute the vertical distance between the specified scene graph and a single HAT point.
osg::Vec3d _endPoint
Definition ElevationSlice:89
osgUtil::IntersectionVisitor _intersectionVisitor
Definition ElevationSlice:94
void computeIntersections(osg::Node *scene, osg::Node::NodeMask traversalMask=0xffffffff)
Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d.
std::vector< DistanceHeight > DistanceHeightList
Definition ElevationSlice:58
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