Public Member Functions |
| InteractiveImageHandler (osg::Image *image) |
| Constructor to use when the InteractiveImage is in the 3D scene (i.e. not in a fullscreen HUD overlay).
|
| InteractiveImageHandler (osg::Image *image, osg::Texture2D *texture, osg::Camera *camera) |
| Constructor to use when the InteractiveImage is in a fullscreen HUD overlay.
|
| META_Object (osgViewer, InteractiveImageHandler) |
virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *, osg::NodeVisitor *nv) |
virtual bool | cull (osg::NodeVisitor *nv, osg::Drawable *drawable, osg::RenderInfo *renderInfo) const |
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 |
bool | computeIntersections (osgViewer::View *view, float x, float y, const osg::NodePath &nodePath, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff) const |
void | resize (int width, int height) |
Protected Attributes |
osg::observer_ptr< osg::Image > | _image |
osg::observer_ptr< osg::Texture2D > | _texture |
bool | _fullscreen |
osg::observer_ptr< osg::Camera > | _camera |
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.