openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes
osgManipulator::SphereProjector Class Reference
Inheritance diagram for osgManipulator::SphereProjector:
osgManipulator::Projector osg::Referenced osgManipulator::SpherePlaneProjector

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::Vec3d &projectedPoint) const
bool isPointInFront (const PointerInfo &pi, const osg::Matrix &localToWorld) const
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

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

Member Function Documentation

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.

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

Implements osgManipulator::Projector.

Reimplemented in osgManipulator::SpherePlaneProjector.

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

Member Data Documentation


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