osgUtil::PickVisitor Class Reference

Picking intersection visitor specialises the IntersectVistor to allow more convinient handling of mouse picking. More...

Inheritance diagram for osgUtil::PickVisitor:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 PickVisitor (const osg::Viewport *viewport, const osg::Matrixd &proj, const osg::Matrixd &view, float mx, float my)
void runNestedPickVisitor (osg::Node &node, const osg::Viewport *viewport, const osg::Matrix &proj, const osg::Matrix &view, float mx, float my)
void apply (osg::Projection &projection)
void apply (osg::Camera &camera)

Protected Attributes

float _mx
float _my
osg::ref_ptr< const
osg::Viewport
_lastViewport
osg::Matrixd _lastProjectionMatrix
osg::Matrixd _lastViewMatrix


Detailed Description

Picking intersection visitor specialises the IntersectVistor to allow more convinient handling of mouse picking.


Constructor & Destructor Documentation

osgUtil::PickVisitor::PickVisitor ( const osg::Viewport viewport,
const osg::Matrixd proj,
const osg::Matrixd view,
float  mx,
float  my 
)


Member Function Documentation

void osgUtil::PickVisitor::runNestedPickVisitor ( osg::Node node,
const osg::Viewport viewport,
const osg::Matrix proj,
const osg::Matrix view,
float  mx,
float  my 
)

void osgUtil::PickVisitor::apply ( osg::Projection projection  )  [virtual]

Reimplemented from osg::NodeVisitor.

void osgUtil::PickVisitor::apply ( osg::Camera camera  )  [virtual]

Reimplemented from osg::NodeVisitor.


Member Data Documentation

float osgUtil::PickVisitor::_mx [protected]

float osgUtil::PickVisitor::_my [protected]

osg::ref_ptr<const osg::Viewport> osgUtil::PickVisitor::_lastViewport [protected]

osg::Matrixd osgUtil::PickVisitor::_lastProjectionMatrix [protected]

osg::Matrixd osgUtil::PickVisitor::_lastViewMatrix [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:50 2007 for the OpenSceneGraph by doxygen 1.5.3.