Public Member Functions | |
SpherePlaneProjector () | |
SpherePlaneProjector (osg::Sphere *sphere) | |
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 sphere. | |
bool | isProjectionOnSphere () const |
Returns true if the previous projection was on the sphere and false if the projection was on the plane. | |
osg::Quat | getRotation (const osg::Vec3 &p1, bool p1OnSphere, const osg::Vec3 &p2, bool p2OnSphere, float radialFactor=0.0f) const |
Protected Member Functions | |
virtual | ~SpherePlaneProjector () |
Protected Attributes | |
osg::Plane | _plane |
bool | _onSphere |
osgManipulator::SpherePlaneProjector::SpherePlaneProjector | ( | ) |
osgManipulator::SpherePlaneProjector::SpherePlaneProjector | ( | osg::Sphere * | sphere | ) |
virtual osgManipulator::SpherePlaneProjector::~SpherePlaneProjector | ( | ) | [protected, virtual] |
virtual bool osgManipulator::SpherePlaneProjector::project | ( | const PointerInfo & | pi, | |
osg::Vec3 & | projectedPoint | |||
) | const [virtual] |
Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere.
Returns true on successful projection.
Reimplemented from osgManipulator::SphereProjector.
bool osgManipulator::SpherePlaneProjector::isProjectionOnSphere | ( | ) | const [inline] |
Returns true if the previous projection was on the sphere and false if the projection was on the plane.
osg::Quat osgManipulator::SpherePlaneProjector::getRotation | ( | const osg::Vec3 & | p1, | |
bool | p1OnSphere, | |||
const osg::Vec3 & | p2, | |||
bool | p2OnSphere, | |||
float | radialFactor = 0.0f | |||
) | const |
osg::Plane osgManipulator::SpherePlaneProjector::_plane [mutable, protected] |
bool osgManipulator::SpherePlaneProjector::_onSphere [mutable, protected] |