osgManipulator::LineProjector Class Reference

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

Inheritance diagram for osgManipulator::LineProjector:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 LineProjector ()
 LineProjector (const osg::Vec3 &s, const osg::Vec3 &e)
void setLine (const osg::Vec3 &s, const osg::Vec3 &e)
const osg::Vec3getLineStart () const
osg::Vec3getLineStart ()
const osg::Vec3getLineEnd () const
osg::Vec3getLineEnd ()
virtual bool project (const PointerInfo &pi, osg::Vec3 &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::Vec3 s,
const osg::Vec3 e 
)

virtual osgManipulator::LineProjector::~LineProjector (  )  [protected, virtual]


Member Function Documentation

void osgManipulator::LineProjector::setLine ( const osg::Vec3 s,
const osg::Vec3 e 
) [inline]

const osg::Vec3& osgManipulator::LineProjector::getLineStart (  )  const [inline]

osg::Vec3& osgManipulator::LineProjector::getLineStart (  )  [inline]

const osg::Vec3& osgManipulator::LineProjector::getLineEnd (  )  const [inline]

osg::Vec3& osgManipulator::LineProjector::getLineEnd (  )  [inline]

virtual bool osgManipulator::LineProjector::project ( const PointerInfo pi,
osg::Vec3 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.


Member Data Documentation

osg::ref_ptr<osg::LineSegment> osgManipulator::LineProjector::_line [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:40 2007 for the OpenSceneGraph by doxygen 1.5.3.