Intoduce new osgWidget::PdfReader and osgWidget::VncClient front ends to osgWidget,

with new pdf plugin and updated vnc plugin that now support these front ends.

Updated osgpdf and osgvnc examples to new these new interfaces.
This commit is contained in:
Robert Osfield
2008-12-07 17:02:30 +00:00
parent 0114ac4734
commit 6f356aeb97
20 changed files with 752 additions and 476 deletions

View File

@@ -324,11 +324,11 @@ class OSG_EXPORT Image : public Object
virtual void update(NodeVisitor* nv) {}
/** method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window.*/
virtual void sendPointerEvent(int x, int y, int buttonMask) {}
/** method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. Return true if handled. */
virtual bool sendPointerEvent(int x, int y, int buttonMask) { return false; }
/** method for sending key events to images that are acting as front ends to interactive surfaces such as a vnc or browser window.*/
virtual void sendKeyEvent(int key, bool keyDown) {}
/** method for sending key events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. Return true if handled.*/
virtual bool sendKeyEvent(int key, bool keyDown) { return false; }
/** method for passing frame information to the custom Image classes, to be called only when objects associated with imagery are not culled.*/
virtual void setFrameLastRendered(const osg::FrameStamp* frameStamp) {}