OpenSceneGraph 2.8.4
|
InteractiveImage is an event handler that computes the mouse coordinates in an images coordinate frame and then passes keyboard and mouse events to it. More...
Public Member Functions | |
InteractiveImageHandler (osg::Image *image) | |
META_Object (osgViewer, InteractiveImageHandler) | |
virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *nv) |
Handle events, return true if handled, false otherwise. | |
virtual bool | cull (osg::NodeVisitor *nv, osg::Drawable *drawable, osg::RenderInfo *renderInfo) const |
do customized cull code, return true if drawable should be culled. | |
Protected Member Functions | |
virtual | ~InteractiveImageHandler () |
InteractiveImageHandler () | |
InteractiveImageHandler (const InteractiveImageHandler &, const osg::CopyOp &=osg::CopyOp::SHALLOW_COPY) | |
bool | mousePosition (osgViewer::View *view, osg::NodeVisitor *nv, const osgGA::GUIEventAdapter &ea, int &x, int &y) const |
Protected Attributes | |
osg::observer_ptr< osg::Image > | _image |
bool | _handleKeyboardEvents |
bool | _handledOnKeyboardEvents |
bool | _handleMouseEvents |
bool | _handledOnMouseEvents |
InteractiveImage is an event handler that computes the mouse coordinates in an images coordinate frame and then passes keyboard and mouse events to it.
This event handler is useful for vnc or browser surfaces in the 3D scene.
osgViewer::InteractiveImageHandler::InteractiveImageHandler | ( | osg::Image * | image | ) | [inline] |
virtual osgViewer::InteractiveImageHandler::~InteractiveImageHandler | ( | ) | [inline, protected, virtual] |
osgViewer::InteractiveImageHandler::InteractiveImageHandler | ( | ) | [inline, protected] |
osgViewer::InteractiveImageHandler::InteractiveImageHandler | ( | const InteractiveImageHandler & | , |
const osg::CopyOp & | = osg::CopyOp::SHALLOW_COPY |
||
) | [inline, protected] |
virtual bool osgViewer::InteractiveImageHandler::cull | ( | osg::NodeVisitor * | nv, |
osg::Drawable * | drawable, | ||
osg::RenderInfo * | renderInfo | ||
) | const [virtual] |
do customized cull code, return true if drawable should be culled.
Reimplemented from osg::Drawable::CullCallback.
virtual bool osgViewer::InteractiveImageHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
osgGA::GUIActionAdapter & | aa, | ||
osg::Object * | , | ||
osg::NodeVisitor * | |||
) | [virtual] |
Handle events, return true if handled, false otherwise.
Reimplemented from osgGA::GUIEventHandler.
osgViewer::InteractiveImageHandler::META_Object | ( | osgViewer | , |
InteractiveImageHandler | |||
) |
bool osgViewer::InteractiveImageHandler::mousePosition | ( | osgViewer::View * | view, |
osg::NodeVisitor * | nv, | ||
const osgGA::GUIEventAdapter & | ea, | ||
int & | x, | ||
int & | y | ||
) | const [protected] |
bool osgViewer::InteractiveImageHandler::_handledOnKeyboardEvents [protected] |
bool osgViewer::InteractiveImageHandler::_handledOnMouseEvents [protected] |
bool osgViewer::InteractiveImageHandler::_handleKeyboardEvents [protected] |
bool osgViewer::InteractiveImageHandler::_handleMouseEvents [protected] |
![]() | Generated at Sun Jan 8 2012 13:17:06 for the OpenSceneGraph by doxygen 1.7.4. |