Public Member Functions | |
PlaneProjector () | |
PlaneProjector (const osg::Plane &plane) | |
void | setPlane (const osg::Plane &plane) |
const osg::Plane & | getPlane () const |
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 plane. | |
Protected Member Functions | |
virtual | ~PlaneProjector () |
Protected Attributes | |
osg::Plane | _plane |
osgManipulator::PlaneProjector::PlaneProjector | ( | ) |
osgManipulator::PlaneProjector::PlaneProjector | ( | const osg::Plane & | plane | ) |
virtual osgManipulator::PlaneProjector::~PlaneProjector | ( | ) | [protected, virtual] |
void osgManipulator::PlaneProjector::setPlane | ( | const osg::Plane & | plane | ) | [inline] |
const osg::Plane& osgManipulator::PlaneProjector::getPlane | ( | ) | const [inline] |
virtual bool osgManipulator::PlaneProjector::project | ( | const PointerInfo & | pi, | |
osg::Vec3 & | projectedPoint | |||
) | const [virtual] |
Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane.
Returns true on successful projection.
Implements osgManipulator::Projector.
osg::Plane osgManipulator::PlaneProjector::_plane [protected] |