OpenSceneGraph 2.8.3

osgManipulator::LineProjector Class Reference

LineProjector projects points onto the closest point on the given line. More...

Inheritance diagram for osgManipulator::LineProjector:

List of all members.

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_typegetLineStart () const
osg::LineSegment::vec_typegetLineStart ()
const osg::LineSegment::vec_typegetLineEnd () const
osg::LineSegment::vec_typegetLineEnd ()
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

Detailed Description

LineProjector projects points onto the closest point on the given line.


Constructor & Destructor Documentation

osgManipulator::LineProjector::LineProjector ( )
osgManipulator::LineProjector::LineProjector ( const osg::LineSegment::vec_type s,
const osg::LineSegment::vec_type e 
)
virtual osgManipulator::LineProjector::~LineProjector ( ) [protected, virtual]

Member Function Documentation

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]

Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3.