OpenSceneGraph 2.8.3

osgManipulator::SpherePlaneProjector Class Reference

SpherePlaneProjector projects points onto a sphere, failing which it project onto a plane oriented to the viewing direction. More...

Inheritance diagram for osgManipulator::SpherePlaneProjector:

List of all members.

Public Member Functions

 SpherePlaneProjector ()
 SpherePlaneProjector (osg::Sphere *sphere)
virtual bool project (const PointerInfo &pi, osg::Vec3d &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::Vec3d &p1, bool p1OnSphere, const osg::Vec3d &p2, bool p2OnSphere, float radialFactor=0.0f) const

Protected Member Functions

virtual ~SpherePlaneProjector ()

Protected Attributes

osg::Plane _plane
bool _onSphere

Detailed Description

SpherePlaneProjector projects points onto a sphere, failing which it project onto a plane oriented to the viewing direction.


Constructor & Destructor Documentation

osgManipulator::SpherePlaneProjector::SpherePlaneProjector ( )
osgManipulator::SpherePlaneProjector::SpherePlaneProjector ( osg::Sphere sphere)
virtual osgManipulator::SpherePlaneProjector::~SpherePlaneProjector ( ) [protected, virtual]

Member Function Documentation

osg::Quat osgManipulator::SpherePlaneProjector::getRotation ( const osg::Vec3d p1,
bool  p1OnSphere,
const osg::Vec3d p2,
bool  p2OnSphere,
float  radialFactor = 0.0f 
) const
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.

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


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3.