14 #ifndef OSGUTIL_RAYINTERSECTOR
15 #define OSGUTIL_RAYINTERSECTOR 1
17 #include <osgUtil/IntersectionVisitor>
89 inline Intersections&
getIntersections() {
return _parent ? _parent->_intersections : _intersections; }
102 virtual bool enter(
const osg::Node& node);
104 virtual void leave();
108 virtual void reset();
virtual bool containsIntersections()
std::multiset< Intersection > Intersections
const osg::Vec3d & getDirection() const
static Vec3f transform3x3(const Vec3f &v, const Matrixd &m)
unsigned int primitiveIndex
Intersections _intersections
const osg::Vec3 & getLocalIntersectNormal() const
osg::Vec3 localIntersectionNormal
T * clone(const T *t, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
virtual void setDirection(const osg::Vec3d &dir)
std::vector< double > RatioList
static Matrixd inverse(const Matrixd &matrix)
osg::Vec3 getWorldIntersectNormal() const
const osg::Vec3d & getStart() const
osg::Vec3d getWorldIntersectPoint() const
std::vector< unsigned int > IndexList
osg::Vec3d localIntersectionPoint
Intersections & getIntersections()
Intersection getFirstIntersection()
virtual void setStart(const osg::Vec3d &start)
void insertIntersection(const Intersection &intersection)
osg::ref_ptr< osg::RefMatrix > matrix
osg::ref_ptr< osg::Drawable > drawable
const osg::Vec3d & getLocalIntersectPoint() const
std::vector< Node * > NodePath
Shader generator framework.