From 3cfcec1198ff567030fae2063f32637f3daa8b7f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 21 Jan 2005 19:30:35 +0000 Subject: [PATCH] From Tree, add get methods --- include/osgUtil/IntersectVisitor | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/osgUtil/IntersectVisitor b/include/osgUtil/IntersectVisitor index a61b676a6..518307496 100644 --- a/include/osgUtil/IntersectVisitor +++ b/include/osgUtil/IntersectVisitor @@ -60,6 +60,18 @@ class OSGUTIL_EXPORT Hit const osg::Vec3 getWorldIntersectPoint() const { if (_matrix.valid()) return _intersectPoint*(*_matrix); else return _intersectPoint; } const osg::Vec3 getWorldIntersectNormal() const ; + float getRatio() const { return _ratio; } + const osg::LineSegment* getOriginalLineSegment() const { return _originalLineSegment.get(); } + const osg::LineSegment* getLocalLineSegment() const { return _localLineSegment.get(); } + const osg::NodePath& getNodePath() const { return _nodePath; } + const osg::Geode* getGeode() const { return _geode.get(); } + const osg::Drawable* getDrawable() const { return _drawable.get(); } + const osg::RefMatrix* getMatrix() const { return _matrix.get(); } + const osg::RefMatrix* getInverseMatrix() const { return _inverse.get(); } + const VecIndexList& getVecIndexList() const { return _vecIndexList; } + int getPrimitiveIndex() const { return _primitiveIndex; } + + float _ratio; osg::ref_ptr _originalLineSegment; osg::ref_ptr _localLineSegment;