Inheritance diagram for osgViewer::GraphicsWindow:

Public Types | |
| enum | MouseCursor { InheritCursor, NoCursor, RightArrowCursor, LeftArrowCursor, InfoCursor, DestroyCursor, HelpCursor, CycleCursor, SprayCursor, WaitCursor, TextCursor, CrosshairCursor, UpDownCursor, LeftRightCursor, TopSideCursor, BottomSideCursor, LeftSideCursor, RightSideCursor, TopLeftCorner, TopRightCorner, BottomRightCorner, BottomLeftCorner } |
| Mouse cursor types, the same ones already present with ancient glut . More... | |
Public Member Functions | |
| GraphicsWindow () | |
| virtual bool | isSameKindAs (const Object *object) const |
| virtual const char * | libraryName () const |
| return the name of the object's library. | |
| virtual const char * | className () const |
| return the name of the object's class type. | |
| void | setEventQueue (osgGA::EventQueue *eventQueue) |
| osgGA::EventQueue * | getEventQueue () |
| const osgGA::EventQueue * | getEventQueue () const |
| virtual void | checkEvents () |
| void | setWindowRectangle (int x, int y, int width, int height) |
| Set the window's position and size. | |
| virtual bool | setWindowRectangleImplementation (int, int, int, int) |
| implementation of setWindowRectangle, should be implemented by derived classes | |
| virtual void | getWindowRectangle (int &x, int &y, int &width, int &height) |
| Get the window's position and size. | |
| void | setWindowDecoration (bool flag) |
| Set Window decoration. | |
| virtual bool | setWindowDecorationImplementation (bool) |
| implementation of setWindowDecoration, should be implemented by derived classes | |
| virtual bool | getWindowDecoration () const |
| Set Window decoration. | |
| virtual void | grabFocus () |
| Get focus. | |
| virtual void | grabFocusIfPointerInWindow () |
| Get focus on if the pointer is in this window. | |
| virtual void | useCursor (bool cursorOn) |
| Switch on/off the cursor. | |
| virtual void | setCursor (MouseCursor) |
| Set mouse cursor to a specific shape. | |
| virtual bool | valid () const |
| Return whether a valid and usable GraphicsContext has been created. | |
| virtual bool | realizeImplementation () |
| Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. | |
| virtual bool | isRealizedImplementation () const |
| Return true if the graphics context has been realised, and is ready to use, implementation. | |
| virtual void | closeImplementation () |
| Close the graphics context implementation. | |
| virtual bool | makeCurrentImplementation () |
| Make this graphics context current implementation. | |
| virtual bool | makeContextCurrentImplementation (GraphicsContext *) |
| Make this graphics context current with specified read context implementation. | |
| virtual bool | releaseContextImplementation () |
| Release the graphics context. | |
| virtual void | bindPBufferToTextureImplementation (GLenum) |
| Pure virtual, Bind the graphics context to associated texture implementation. | |
| virtual void | swapBuffersImplementation () |
| Swap the front and back buffers implementation. | |
| virtual void | requestRedraw () |
| requestRedraw() requests a single redraw. | |
| virtual void | requestContinuousUpdate (bool=true) |
| requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). | |
| virtual void | requestWarpPointer (float, float) |
| requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. | |
Protected Attributes | |
| osg::ref_ptr< osgGA::EventQueue > | _eventQueue |
Note, the GraphicsWindow is subclassed from osg::GraphicsContext, and to provide an implemention you'll need to implement its range of pure virtual functions, you'll find these all have naming convention methodNameImplemention(..). GraphicsWindow adds the event queue ontop of the GraphicsContext, thereby adding a mechnism for adapting Windowing events as well as basics graphics context work, you should wire up custom GraphicsWindowImplementation to push their events through into the EventQueue.
|
|
|
|
|
|
Pure virtual, Bind the graphics context to associated texture implementation. Pure virtual - must be implemented by concrate implementations of GraphicsContext. Implements osg::GraphicsContext. |
|
|
Reimplemented in osgViewer::GraphicsWindowWin32, and osgViewer::GraphicsWindowX11. |
|
|
return the name of the object's class type. Must be defined by derived classes. Reimplemented from osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Close the graphics context implementation. Pure virtual - must be implemented by concrate implementations of GraphicsContext. Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
|
|
|
|
|
|
Set Window decoration.
|
|
||||||||||||||||||||
|
Get the window's position and size.
|
|
|
Get focus.
Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Get focus on if the pointer is in this window.
Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Return true if the graphics context has been realised, and is ready to use, implementation. Pure virtual - must be implemented by concrate implementations of GraphicsContext. Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. Reimplemented from osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Make this graphics context current with specified read context implementation. Pure virtual - must be implemented by concrate implementations of GraphicsContext. |
|
|
Make this graphics context current implementation. Pure virtual - must be implemented by concrate implementations of GraphicsContext. Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext.
Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Release the graphics context.
Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure. Implements osgGA::GUIActionAdapter. |
|
|
requestRedraw() requests a single redraw.
Implements osgGA::GUIActionAdapter. |
|
||||||||||||
|
requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking a aircrafts joystick. Implements osgGA::GUIActionAdapter. Reimplemented in osgViewer::GraphicsWindowWin32, and osgViewer::GraphicsWindowX11. |
|
|
Set mouse cursor to a specific shape.
|
|
|
|
|
|
Set Window decoration.
|
|
|
implementation of setWindowDecoration, should be implemented by derived classes
Reimplemented in osgViewer::GraphicsWindowWin32, and osgViewer::GraphicsWindowX11. |
|
||||||||||||||||||||
|
Set the window's position and size.
|
|
||||||||||||||||||||
|
implementation of setWindowRectangle, should be implemented by derived classes
Reimplemented in osgViewer::GraphicsWindowWin32, and osgViewer::GraphicsWindowX11. |
|
|
Swap the front and back buffers implementation. Pure virtual - must be implemented by Concrate implementations of GraphicsContext. Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
Switch on/off the cursor.
Reimplemented in osgViewer::GraphicsWindowWin32. |
|
|
Return whether a valid and usable GraphicsContext has been created.
Implements osg::GraphicsContext. Reimplemented in osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, and osgViewer::GraphicsWindowEmbedded. |
|
|
|