Ported intersection code to use new osgUtil::LineSegmentIntersector/IntersectionVisitor.

This commit is contained in:
Robert Osfield
2008-07-05 16:39:28 +00:00
parent e70e3a6d5d
commit 9a9c543ffa
4 changed files with 132 additions and 240 deletions

View File

@@ -76,6 +76,8 @@ class OSGGA_EXPORT DriveManipulator : public MatrixManipulator
virtual ~DriveManipulator();
bool intersect(const osg::Vec3d& start, const osg::Vec3d& end, osg::Vec3d& intersection, osg::Vec3d& normal) const;
/** Reset the internal GUIEvent stack.*/
void flushMouseEventStack();

View File

@@ -85,7 +85,7 @@ class OSGGA_EXPORT TerrainManipulator : public MatrixManipulator
virtual ~TerrainManipulator();
bool intersect(const osg::Vec3d& start, const osg::Vec3d& end, osg::Vec3d& intersection);
bool intersect(const osg::Vec3d& start, const osg::Vec3d& end, osg::Vec3d& intersection) const;
/** Reset the internal GUIEvent stack.*/
void flushMouseEventStack();
@@ -122,7 +122,7 @@ class OSGGA_EXPORT TerrainManipulator : public MatrixManipulator
osg::Vec3d _center;
osg::Quat _rotation;
float _distance;
double _distance;
osg::Vec3d _previousUp;
};