10#ifndef LINEINTERSECTOR_H
11#define LINEINTERSECTOR_H
14#include <osgUtil/LineSegmentIntersector>
30 LineIntersector(CoordinateFrame cf,
const osg::Vec3d& start,
const osg::Vec3d& end);
36 virtual Intersector*
clone( osgUtil::IntersectionVisitor& iv );
37 virtual void intersect(osgUtil::IntersectionVisitor& iv, osg::Drawable* drawable);
42 double getSkewLinesDistance(
const osg::Vec3d &r1,
const osg::Vec3d &r2,
const osg::Vec3d &v1,
const osg::Vec3d &v2);
OSG-based line intersector class.
Definition LineIntersector.h:24
LineIntersector(CoordinateFrame cf, const osg::Vec3d &start, const osg::Vec3d &end)
LineIntersector()
Definition LineIntersector.cpp:8
std::vector< unsigned int > m_hitIndices
Definition LineIntersector.h:46
bool isVirtualIntersector() const
Definition LineIntersector.cpp:135
float m_offset
Definition LineIntersector.h:45
LineIntersector(CoordinateFrame cf, double x, double y)
virtual void intersect(osgUtil::IntersectionVisitor &iv, osg::Drawable *drawable)
Definition LineIntersector.cpp:97
virtual bool isRightPrimitive(const osg::Geometry *geometry)
Definition LineIntersector.cpp:169
virtual Intersector * clone(osgUtil::IntersectionVisitor &iv)
Definition LineIntersector.cpp:57
void getHitIndices(int &first, int &last) const
Definition LineIntersector.cpp:45
double getSkewLinesDistance(const osg::Vec3d &r1, const osg::Vec3d &r2, const osg::Vec3d &v1, const osg::Vec3d &v2)
Definition LineIntersector.cpp:140
void setOffset(float offset)
Definition LineIntersector.cpp:35
float getOffset() const
Definition LineIntersector.cpp:40