osgManipulator::Projector Class Reference

Inheritance diagram for osgManipulator::Projector:

osg::Referenced osgManipulator::CylinderProjector osgManipulator::LineProjector osgManipulator::PlaneProjector osgManipulator::SphereProjector osgManipulator::CylinderPlaneProjector osgManipulator::SpherePlaneProjector

List of all members.

Public Member Functions

 Projector ()
virtual bool project (const PointerInfo &pi, osg::Vec3 &projectedPoint) const =0
void setLocalToWorld (const osg::Matrix &localToWorld)
const osg::MatrixgetLocalToWorld () const
const osg::MatrixgetWorldToLocal () const

Protected Member Functions

virtual ~Projector ()

Protected Attributes

osg::Matrix _localToWorld
osg::Matrix _worldToLocal
bool _worldToLocalDirty


Detailed Description

Base class for Projectors. Projectors maps 2D cursor motions to 3D motions.

Constructor & Destructor Documentation

osgManipulator::Projector::Projector (  ) 

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


Member Function Documentation

virtual bool osgManipulator::Projector::project ( const PointerInfo pi,
osg::Vec3 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::LineProjector, osgManipulator::PlaneProjector, osgManipulator::SphereProjector, osgManipulator::SpherePlaneProjector, osgManipulator::CylinderProjector, and osgManipulator::CylinderPlaneProjector.

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.

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().


Member Data Documentation


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

Generated on Wed Jul 30 23:59:07 2008 for openscenegraph by  doxygen 1.5.6