OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions | Protected Attributes
osgManipulator::CylinderPlaneProjector Class Reference

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

Inheritance diagram for osgManipulator::CylinderPlaneProjector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CylinderPlaneProjector ()
 CylinderPlaneProjector (osg::Cylinder *cylinder)
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 plane.
bool isProjectionOnCylinder () const
 Returns true if the previous projection was on the cylinder and false if the projection was on the plane.
osg::Quat getRotation (const osg::Vec3d &p1, bool p1OnCyl, const osg::Vec3d &p2, bool p2OnCyl) const

Protected Member Functions

virtual ~CylinderPlaneProjector ()

Protected Attributes

osg::Plane _plane
bool _onCylinder
osg::Vec3d _planeLineStart
osg::Vec3d _planeLineEnd

Detailed Description

CylinderPlaneProjector projects points onto the given cylinder.


Constructor & Destructor Documentation

osgManipulator::CylinderPlaneProjector::CylinderPlaneProjector ( )
osgManipulator::CylinderPlaneProjector::CylinderPlaneProjector ( osg::Cylinder cylinder)
virtual osgManipulator::CylinderPlaneProjector::~CylinderPlaneProjector ( ) [protected, virtual]

Member Function Documentation

osg::Quat osgManipulator::CylinderPlaneProjector::getRotation ( const osg::Vec3d p1,
bool  p1OnCyl,
const osg::Vec3d p2,
bool  p2OnCyl 
) const
bool osgManipulator::CylinderPlaneProjector::isProjectionOnCylinder ( ) const [inline]

Returns true if the previous projection was on the cylinder and false if the projection was on the plane.

virtual bool osgManipulator::CylinderPlaneProjector::project ( const PointerInfo pi,
osg::Vec3d projectedPoint 
) const [virtual]

Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane.

Returns true on successful projection.

Reimplemented from osgManipulator::CylinderProjector.


Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:16:46 for the OpenSceneGraph by doxygen 1.7.4.