14 #ifndef OSGSIM_LINEOFSIGHT
15 #define OSGSIM_LINEOFSIGHT 1
17 #include <osgUtil/IntersectionVisitor>
19 #include <osgSim/Export>
31 void clearDatabaseCache();
33 void pruneUnusedDatabaseCache();
67 unsigned int getNumLOS()
const {
return _LOSList.size(); }
84 const Intersections&
getIntersections(
unsigned int i)
const {
return _LOSList[i]._intersections; }
osgUtil::IntersectionVisitor _intersectionVisitor
unsigned int getMaximumNumOfFilesToCache() const
This class provides an object-oriented thread mutex interface.
LOS(const osg::Vec3d &start, const osg::Vec3d &end)
osg::ref_ptr< DatabaseCacheReadCallback > _dcrc
Intersections _intersections
const Intersections & getIntersections(unsigned int i) const
unsigned int getNumLOS() const
std::vector< osg::Vec3d > Intersections
const osg::Vec3d & getStartPoint(unsigned int i) const
void setStartPoint(unsigned int i, const osg::Vec3d &start)
FileNameSceneMap _filenameSceneMap
std::vector< LOS > LOSList
void setMaximumNumOfFilesToCache(unsigned int maxNumFilesToCache)
DatabaseCacheReadCallback * getDatabaseCacheReadCallback()
std::map< std::string, osg::ref_ptr< osg::Node > > FileNameSceneMap
OSGDB_EXPORT osg::Node * readNodeFile(const std::string &filename, const Options *options)
OpenThreads::Mutex _mutex
unsigned int _maxNumFilesToCache
void setEndPoint(unsigned int i, const osg::Vec3d &end)
void clearDatabaseCache()
const osg::Vec3d & getEndPoint(unsigned int i) const