osgManipulator::SphereProjector Class Reference

SphereProjector projects points onto the given sphere. More...

Inheritance diagram for osgManipulator::SphereProjector:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 SphereProjector ()
 SphereProjector (osg::Sphere *sphere)
void setSphere (osg::Sphere *sphere)
const osg::SpheregetSphere () 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 sphere.
bool isPointInFront (const PointerInfo &pi, const osg::Matrix &localToWorld) const
 Returns true is the point is in front of the cylinder given the eye direction.
void setFront (bool front)

Protected Member Functions

virtual ~SphereProjector ()

Protected Attributes

osg::ref_ptr
< osg::Sphere
_sphere
bool _front


Detailed Description

SphereProjector projects points onto the given sphere.

Constructor & Destructor Documentation

osgManipulator::SphereProjector::SphereProjector (  ) 

osgManipulator::SphereProjector::SphereProjector ( osg::Sphere sphere  ) 

virtual osgManipulator::SphereProjector::~SphereProjector (  )  [protected, virtual]


Member Function Documentation

void osgManipulator::SphereProjector::setSphere ( osg::Sphere sphere  )  [inline]

const osg::Sphere* osgManipulator::SphereProjector::getSphere (  )  const [inline]

virtual bool osgManipulator::SphereProjector::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.

Implements osgManipulator::Projector.

Reimplemented in osgManipulator::SpherePlaneProjector.

bool osgManipulator::SphereProjector::isPointInFront ( const PointerInfo pi,
const osg::Matrix localToWorld 
) const

Returns true is the point is in front of the cylinder given the eye direction.

void osgManipulator::SphereProjector::setFront ( bool  front  )  [inline]


Member Data Documentation

osg::ref_ptr<osg::Sphere> osgManipulator::SphereProjector::_sphere [protected]

bool osgManipulator::SphereProjector::_front [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:41 2007 for the OpenSceneGraph by doxygen 1.5.3.