|
OpenSceneGraph
3.0.1
|
Base class for Projectors. More...

Public Member Functions | |
| Projector () | |
| virtual bool | project (const PointerInfo &pi, osg::Vec3d &projectedPoint) const =0 |
| Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). | |
| void | setLocalToWorld (const osg::Matrix &localToWorld) |
| Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. | |
| const osg::Matrix & | getLocalToWorld () const |
| Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. | |
| const osg::Matrix & | getWorldToLocal () const |
| Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. | |
Protected Member Functions | |
| virtual | ~Projector () |
Protected Attributes | |
| osg::Matrix | _localToWorld |
| osg::Matrix | _worldToLocal |
| bool | _worldToLocalDirty |
Base class for Projectors.
Projectors maps 2D cursor motions to 3D motions.
| virtual osgManipulator::Projector::~Projector | ( | ) | [protected, virtual] |
| const osg::Matrix& osgManipulator::Projector::getLocalToWorld | ( | ) | const [inline] |
Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system.
| const osg::Matrix& osgManipulator::Projector::getWorldToLocal | ( | ) | const [inline] |
Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system.
References osg::Matrixd::invert().
| virtual bool osgManipulator::Projector::project | ( | const PointerInfo & | pi, |
| osg::Vec3d & | projectedPoint | ||
| ) | const [pure virtual] |
Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes).
SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection.
Implemented in osgManipulator::CylinderPlaneProjector, osgManipulator::CylinderProjector, osgManipulator::SpherePlaneProjector, osgManipulator::SphereProjector, osgManipulator::PlaneProjector, and osgManipulator::LineProjector.
| void osgManipulator::Projector::setLocalToWorld | ( | const osg::Matrix & | localToWorld | ) | [inline] |
Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system.
osg::Matrix osgManipulator::Projector::_localToWorld [protected] |
osg::Matrix osgManipulator::Projector::_worldToLocal [mutable, protected] |
bool osgManipulator::Projector::_worldToLocalDirty [mutable, protected] |
| Generated at Thu Sep 27 2012 17:03:17 for the OpenSceneGraph by doxygen 1.7.6.1. |