8#ifndef CO_INTERSECTION_H
9#define CO_INTERSECTION_H
26#include <osgUtil/LineSegmentIntersector>
29class IntersectionVisitor;
51 virtual Intersector*
clone(osgUtil::IntersectionVisitor& iv)
override;
52 virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable)
override;
54 void addHandler(osg::ref_ptr<IntersectionHandler> handler);
59 std::vector<osg::ref_ptr<IntersectionHandler>>
_handlers;
72 void addHandler(osg::ref_ptr<IntersectionHandler> handler);
86 void intersect(
const osg::Matrix &mat,
bool mouseHit);
95 std::vector<std::vector<float> > elapsedTimes;
96 std::vector<osg::ref_ptr<IntersectionHandler>> handlers;
Definition: ARToolKit.h:33
Definition: coIntersection.h:28
Definition: coIntersection.h:38
virtual ~IntersectionHandler()
Definition: coIntersection.h:40
virtual bool canHandleDrawable(osg::Drawable *drawable) const =0
virtual void intersect(osgUtil::IntersectionVisitor &iv, coIntersector &is, osg::Drawable *drawable)=0
Definition: coIntersection.h:47
void addHandler(osg::ref_ptr< IntersectionHandler > handler)
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv) override
bool intersectAndClip(osg::Vec3d &s, osg::Vec3d &e, const osg::BoundingBox &bb)
std::vector< osg::ref_ptr< IntersectionHandler > > _handlers
Definition: coIntersection.h:59
coIntersector(const osg::Vec3 &start, const osg::Vec3 &end)
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable) override
Definition: coIntersection.h:63
void forceIsectAllNodes(bool isectAll)
static int myFrame
Definition: coIntersection.h:92
int numIsectAllNodes
Definition: coIntersection.h:79
void isectAllNodes(bool isectAll)
static bool isVerboseIntersection()
virtual ~coIntersection()
void intersect(const osg::Matrix &mat, bool mouseHit)
void addHandler(osg::ref_ptr< IntersectionHandler > handler)
virtual const char * getActionName() const
get the associated action name
float intersectionDist
value of the PointerAppearance.Intersection config var
Definition: coIntersection.h:89
static int myFrameIndex
Definition: coIntersection.h:91
virtual const char * getClassName() const
get the Element's classname
static coIntersection * instance()
coIntersector * newIntersector(const osg::Vec3 &start, const osg::Vec3 &end)
Definition: vruiIntersection.h:24