osgManipulator::CylinderProjector Class Reference

CylinderProjector projects points onto the given cylinder. More...

Inheritance diagram for osgManipulator::CylinderProjector:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CylinderProjector ()
 CylinderProjector (osg::Cylinder *cylinder)
void setCylinder (osg::Cylinder *cylinder)
const osg::CylindergetCylinder () 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 plane.
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 ~CylinderProjector ()

Protected Attributes

osg::ref_ptr
< osg::Cylinder
_cylinder
osg::Vec3 _cylinderAxis
bool _front


Detailed Description

CylinderProjector projects points onto the given cylinder.

Constructor & Destructor Documentation

osgManipulator::CylinderProjector::CylinderProjector (  ) 

osgManipulator::CylinderProjector::CylinderProjector ( osg::Cylinder cylinder  ) 

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


Member Function Documentation

void osgManipulator::CylinderProjector::setCylinder ( osg::Cylinder cylinder  )  [inline]

const osg::Cylinder* osgManipulator::CylinderProjector::getCylinder (  )  const [inline]

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

Implements osgManipulator::Projector.

Reimplemented in osgManipulator::CylinderPlaneProjector.

bool osgManipulator::CylinderProjector::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::CylinderProjector::setFront ( bool  front  )  [inline]


Member Data Documentation

osg::ref_ptr<osg::Cylinder> osgManipulator::CylinderProjector::_cylinder [protected]

osg::Vec3 osgManipulator::CylinderProjector::_cylinderAxis [protected]

bool osgManipulator::CylinderProjector::_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.