|
OpenSceneGraph
3.0.1
|
CylinderProjector projects points onto the given cylinder. More...

Public Member Functions | |
| CylinderProjector () | |
| CylinderProjector (osg::Cylinder *cylinder) | |
| void | setCylinder (osg::Cylinder *cylinder) |
| const osg::Cylinder * | getCylinder () const |
| 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 | 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::Vec3d | _cylinderAxis |
| bool | _front |
CylinderProjector projects points onto the given cylinder.
| virtual osgManipulator::CylinderProjector::~CylinderProjector | ( | ) | [protected, virtual] |
| const osg::Cylinder* osgManipulator::CylinderProjector::getCylinder | ( | ) | const [inline] |
| 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.
| virtual bool osgManipulator::CylinderProjector::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.
Implements osgManipulator::Projector.
Reimplemented in osgManipulator::CylinderPlaneProjector.
| void osgManipulator::CylinderProjector::setCylinder | ( | osg::Cylinder * | cylinder | ) | [inline] |
References osg::Cylinder::getRotation().
| void osgManipulator::CylinderProjector::setFront | ( | bool | front | ) | [inline] |
bool osgManipulator::CylinderProjector::_front [protected] |
| Generated at Thu Sep 27 2012 17:03:17 for the OpenSceneGraph by doxygen 1.7.6.1. |