14#ifndef OSGUTIL_RAYINTERSECTOR
15#define OSGUTIL_RAYINTERSECTOR 1
Vec3f Vec3
Definition Vec3:21
BoundingBoxd BoundingBox
Definition BoundingBox:257
BoundingSphered BoundingSphere
Definition BoundingSphere:308
std::vector< Node * > NodePath
A vector of Nodes pointers which is used to describe the path from a root node to a descendant.
Definition Node:47
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Pure virtual base class for drawable geometry.
Definition Drawable:89
static Vec3f transform3x3(const Vec3f &v, const Matrixd &m)
apply a 3x3 transform of v*M[0..2,0..2].
Definition Matrixd:665
static Matrixd inverse(const Matrixd &matrix)
Definition Matrixd:536
Base class for all internal nodes in the scene graph.
Definition Node:72
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Texture pure virtual base class that encapsulates OpenGL texture functionality common to the various ...
Definition Texture:422
General purpose double triple for use as vertices, vectors and normals.
Definition Vec3d:30
IntersectionLimit
Definition IntersectionVisitor:46
@ NO_LIMIT
Definition IntersectionVisitor:47
CoordinateFrame
Definition IntersectionVisitor:38
@ MODEL
Definition IntersectionVisitor:42
Intersector(CoordinateFrame cf=MODEL, IntersectionLimit il=NO_LIMIT)
Definition IntersectionVisitor:53
IntersectionVisitor is used to testing for intersections with the scene, traversing the scene using g...
Definition IntersectionVisitor:152
RayIntersector(const osg::Vec3d &start, const osg::Vec3d &direction)
Construct a RayIntersector that runs from start point in specified direction to the infinity.
virtual void setStart(const osg::Vec3d &start)
Definition RayIntersector:92
virtual bool enter(const osg::Node &node)
bool intersectAndClip(osg::Vec3d &s, const osg::Vec3d &d, osg::Vec3d &e, const osg::BoundingBox &bb)
const osg::Vec3d & getDirection() const
Definition RayIntersector:96
osg::Vec3d _start
Definition RayIntersector:119
Intersection getFirstIntersection()
Definition RayIntersector:90
osg::Vec3d _direction
Definition RayIntersector:120
virtual void setDirection(const osg::Vec3d &dir)
Definition RayIntersector:95
Intersections _intersections
Definition RayIntersector:122
RayIntersector * _parent
Definition RayIntersector:117
void insertIntersection(const Intersection &intersection)
Definition RayIntersector:88
RayIntersector(CoordinateFrame cf, double x, double y)
Convenience constructor for supporting picking in WINDOW and PROJECTION coordinates.
RayIntersector(CoordinateFrame cf=MODEL, RayIntersector *parent=NULL, osgUtil::Intersector::IntersectionLimit intersectionLimit=osgUtil::Intersector::NO_LIMIT)
Construct a RayIntersector.
RayIntersector(CoordinateFrame cf, const osg::Vec3d &start, const osg::Vec3d &direction, RayIntersector *parent=NULL, osgUtil::Intersector::IntersectionLimit intersectionLimit=osgUtil::Intersector::NO_LIMIT)
Construct a RayIntersector the runs from start point in specified direction to the infinity in the sp...
std::multiset< Intersection > Intersections
Definition RayIntersector:86
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv)
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)
Intersections & getIntersections()
Definition RayIntersector:89
virtual bool containsIntersections()
Definition RayIntersector:110
virtual bool intersects(const osg::BoundingSphere &bs)
const osg::Vec3d & getStart() const
Definition RayIntersector:93
Definition RayIntersector:56
osg::ref_ptr< osg::RefMatrix > matrix
Definition RayIntersector:67
osg::Vec3d getWorldIntersectPoint() const
Definition RayIntersector:75
std::vector< double > RatioList
Definition RayIntersector:62
double distance
Definition RayIntersector:64
osg::Vec3d localIntersectionPoint
Definition RayIntersector:68
RatioList ratioList
Definition RayIntersector:71
osg::NodePath nodePath
Definition RayIntersector:65
const osg::Vec3 & getLocalIntersectNormal() const
Definition RayIntersector:77
IndexList indexList
Definition RayIntersector:70
osg::Texture * getTextureLookUp(osg::Vec3 &tc) const
Convenience function for mapping the intersection point to any textures assigned to the objects inter...
osg::ref_ptr< osg::Drawable > drawable
Definition RayIntersector:66
osg::Vec3 getWorldIntersectNormal() const
Definition RayIntersector:78
const osg::Vec3d & getLocalIntersectPoint() const
Definition RayIntersector:74
std::vector< unsigned int > IndexList
Definition RayIntersector:61
unsigned int primitiveIndex
Definition RayIntersector:72
osg::Vec3 localIntersectionNormal
Definition RayIntersector:69
Intersection()
Definition RayIntersector:57
#define NULL
Definition Export:55
#define OSGUTIL_EXPORT
Definition Export:40