OpenSceneGraph
3.0.1
|
LineProjector projects points onto the closest point on the given line. More...
Public Member Functions | |
LineProjector () | |
LineProjector (const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e) | |
void | setLine (const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e) |
const osg::LineSegment::vec_type & | getLineStart () const |
osg::LineSegment::vec_type & | getLineStart () |
const osg::LineSegment::vec_type & | getLineEnd () const |
osg::LineSegment::vec_type & | getLineEnd () |
virtual bool | project (const PointerInfo &pi, osg::Vec3d &projectedPoint) const |
Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. | |
Protected Member Functions | |
virtual | ~LineProjector () |
Protected Attributes | |
osg::ref_ptr< osg::LineSegment > | _line |
LineProjector projects points onto the closest point on the given line.
osgManipulator::LineProjector::LineProjector | ( | ) |
osgManipulator::LineProjector::LineProjector | ( | const osg::LineSegment::vec_type & | s, |
const osg::LineSegment::vec_type & | e | ||
) |
virtual osgManipulator::LineProjector::~LineProjector | ( | ) | [protected, virtual] |
const osg::LineSegment::vec_type& osgManipulator::LineProjector::getLineEnd | ( | ) | const [inline] |
osg::LineSegment::vec_type& osgManipulator::LineProjector::getLineEnd | ( | ) | [inline] |
const osg::LineSegment::vec_type& osgManipulator::LineProjector::getLineStart | ( | ) | const [inline] |
osg::LineSegment::vec_type& osgManipulator::LineProjector::getLineStart | ( | ) | [inline] |
virtual bool osgManipulator::LineProjector::project | ( | const PointerInfo & | pi, |
osg::Vec3d & | projectedPoint | ||
) | const [virtual] |
Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line.
Returns true on successful projection.
Implements osgManipulator::Projector.
void osgManipulator::LineProjector::setLine | ( | const osg::LineSegment::vec_type & | s, |
const osg::LineSegment::vec_type & | e | ||
) | [inline] |
![]() | Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5. |