Public Member Functions | |
CylinderPlaneProjector () | |
CylinderPlaneProjector (osg::Cylinder *cylinder) | |
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. | |
bool | isProjectionOnCylinder () const |
Returns true if the previous projection was on the cylinder and false if the projection was on the plane. | |
osg::Quat | getRotation (const osg::Vec3 &p1, bool p1OnCyl, const osg::Vec3 &p2, bool p2OnCyl) const |
Protected Member Functions | |
virtual | ~CylinderPlaneProjector () |
Protected Attributes | |
osg::Plane | _plane |
bool | _onCylinder |
osg::Vec3 | _planeLineStart |
osg::Vec3 | _planeLineEnd |
osgManipulator::CylinderPlaneProjector::CylinderPlaneProjector | ( | ) |
osgManipulator::CylinderPlaneProjector::CylinderPlaneProjector | ( | osg::Cylinder * | cylinder | ) |
virtual osgManipulator::CylinderPlaneProjector::~CylinderPlaneProjector | ( | ) | [protected, virtual] |
virtual bool osgManipulator::CylinderPlaneProjector::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.
Reimplemented from osgManipulator::CylinderProjector.
bool osgManipulator::CylinderPlaneProjector::isProjectionOnCylinder | ( | ) | const [inline] |
Returns true if the previous projection was on the cylinder and false if the projection was on the plane.
osg::Quat osgManipulator::CylinderPlaneProjector::getRotation | ( | const osg::Vec3 & | p1, | |
bool | p1OnCyl, | |||
const osg::Vec3 & | p2, | |||
bool | p2OnCyl | |||
) | const |
osg::Plane osgManipulator::CylinderPlaneProjector::_plane [mutable, protected] |
bool osgManipulator::CylinderPlaneProjector::_onCylinder [mutable, protected] |
osg::Vec3 osgManipulator::CylinderPlaneProjector::_planeLineStart [mutable, protected] |
osg::Vec3 osgManipulator::CylinderPlaneProjector::_planeLineEnd [mutable, protected] |