2#ifndef HANDLERINTERSECTOR_H 
    3#define HANDLERINTERSECTOR_H 
    6#include <osgUtil/LineSegmentIntersector> 
   28    virtual Intersector* 
clone( osgUtil::IntersectionVisitor& iv );
 
   29    virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable);
 
   36    double getSkewLinesDistance(
const osg::Vec3d &r1, 
const osg::Vec3d &r2, 
const osg::Vec3d &v1, 
const osg::Vec3d &v2, 
double &intersectionRatio);
 
 
A class that allows to catch intersections with line loops and lines OpenGL types.
Definition HandlerIntersector.h:16
 
virtual bool isRightPrimitive(const osg::Geometry *geometry)
Definition HandlerIntersector.cpp:194
 
void setOffset(float offset)
Definition HandlerIntersector.cpp:39
 
float m_offset
Definition HandlerIntersector.h:39
 
osg::Drawable * selectorDrawable
Definition HandlerIntersector.h:41
 
HandlerIntersector(CoordinateFrame cf, double x, double y)
 
double getSkewLinesDistance(const osg::Vec3d &r1, const osg::Vec3d &r2, const osg::Vec3d &v1, const osg::Vec3d &v2, double &intersectionRatio)
Definition HandlerIntersector.cpp:163
 
HandlerIntersector(CoordinateFrame cf, const osg::Vec3d &start, const osg::Vec3d &end)
 
void getHitIndices(int &first, int &last) const
Definition HandlerIntersector.cpp:49
 
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)
Definition HandlerIntersector.cpp:102
 
float getOffset() const
Definition HandlerIntersector.cpp:44
 
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv)
Definition HandlerIntersector.cpp:61
 
std::vector< unsigned int > m_hitIndices
Definition HandlerIntersector.h:40
 
bool isVirtualIntersector() const
Definition HandlerIntersector.cpp:158
 
HandlerIntersector()
Definition HandlerIntersector.cpp:8
 
void setHandlerDrawable(osg::Drawable *handler)
Definition HandlerIntersector.h:33