
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::Vec3 & | getLineStart () const |
| osg::Vec3 & | getLineStart () |
| const osg::Vec3 & | getLineEnd () const |
| osg::Vec3 & | getLineEnd () |
| 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 |
| osgManipulator::LineProjector::LineProjector | ( | ) |
| virtual osgManipulator::LineProjector::~LineProjector | ( | ) | [protected, virtual] |
| 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.