cherish
PointIntersector.h
1 #ifndef POINTINTERSECTOR_H
2 #define POINTINTERSECTOR_H
3 
4 #include <osgUtil/LineSegmentIntersector>
5 #include <osg/Drawable>
6 
7 #include "PolyLineIntersector.h"
8 
16 {
17 public:
19  PointIntersector(const osg::Vec3& start, const osg::Vec3& end);
20  PointIntersector(CoordinateFrame cf, double x, double y);
21  PointIntersector(CoordinateFrame cf, const osg::Vec3d& start, const osg::Vec3d& end);
22 
23  virtual Intersector* clone(osgUtil::IntersectionVisitor &iv);
24  virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable);
25 
26 protected:
27  virtual bool isRightPrimitive(const osg::Geometry* geometry);
28 };
29 
30 #endif // POINTINTERSECTOR_H
It allows to catch intersections with point OpenGL types. It uses shortest distance between the cast ...
Definition: PointIntersector.h:15
A class that allows to catch intersections with line loops and polyline OpenGL types. It uses shortest distance between the cast ray and the geometry line which is calculated as a distance between skew lines. In addition, it filters out the geometries whose primitive sets are different than line-types.
Definition: PolyLineIntersector.h:13