
Public Member Functions | |
| GraphicsWindowX11 (osg::GraphicsContext::Traits *traits) | |
| 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. | |
| virtual bool | valid () const |
| Create a new mouse cursor from the usual bitmap data. | |
| virtual bool | realizeImplementation () |
| Realise the GraphicsContext. | |
| virtual bool | isRealizedImplementation () const |
| Return true if the graphics context has been realised and is ready to use. | |
| virtual void | closeImplementation () |
| Close the graphics context. | |
| virtual bool | makeCurrentImplementation () |
| Make this graphics context current. | |
| virtual bool | releaseContextImplementation () |
| Release the graphics context. | |
| virtual void | swapBuffersImplementation () |
| Swap the front and back buffers. | |
| virtual void | checkEvents () |
| Check to see if any events have been generated. | |
| virtual bool | setWindowDecorationImplementation (bool flag) |
| Set Window decoration. | |
| virtual void | grabFocus () |
| Get focus. | |
| virtual void | grabFocusIfPointerInWindow () |
| Get focus on if the pointer is in this window. | |
| virtual void | requestWarpPointer (float x, float y) |
| requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. | |
| virtual bool | setWindowRectangleImplementation (int x, int y, int width, int height) |
| Set the window's position and size. | |
| virtual void | setWindowName (const std::string &name) |
| Set the name of the window. | |
| virtual void | setCursor (MouseCursor cursor) |
| Set mouse cursor to a specific shape. | |
| Display * | getDisplay () const |
| Display * | getEventDisplay () const |
| Display * | getDisplayToUse () const |
| Window & | getParent () |
| Window & | getWindow () |
| GLXContext & | getGLXContext () |
| Cursor | getCurrentCursor () |
Protected Member Functions | |
| ~GraphicsWindowX11 () | |
| Cursor | getOrCreateCursor (MouseCursor mouseShape) |
| bool | createVisualInfo () |
| bool | createWindow () |
| bool | setWindow (Window window) |
| void | init () |
| void | transformMouseXY (float &x, float &y) |
| void | adaptKey (XKeyEvent &keyevent, int &keySymbol, unsigned int &modifierMask) |
Protected Attributes | |
| bool | _valid |
| Display * | _display |
| Display * | _eventDisplay |
| Window | _parent |
| Window | _window |
| XVisualInfo * | _visualInfo |
| GLXContext | _glxContext |
| Cursor | _currentCursor |
| Atom | _deleteWindow |
| bool | _initialized |
| bool | _realized |
| bool | _ownsWindow |
| double | _timeOfLastCheckEvents |
| std::map < MouseCursor, Cursor > | _mouseCursorMap |
Classes | |
| struct | WindowData |
| WindowData is used to pass in the X11 window handle attached the GraphicsContext::Traits structure. More... | |
| osgViewer::GraphicsWindowX11::GraphicsWindowX11 | ( | osg::GraphicsContext::Traits * | traits | ) | [inline] |
| osgViewer::GraphicsWindowX11::~GraphicsWindowX11 | ( | ) | [protected] |
| virtual bool osgViewer::GraphicsWindowX11::isSameKindAs | ( | const Object * | object | ) | const [inline, virtual] |
Reimplemented from osgViewer::GraphicsWindow.
| virtual const char* osgViewer::GraphicsWindowX11::libraryName | ( | ) | const [inline, virtual] |
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 osgViewer::GraphicsWindow.
| virtual const char* osgViewer::GraphicsWindowX11::className | ( | ) | const [inline, virtual] |
return the name of the object's class type.
Must be defined by derived classes.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowX11::valid | ( | ) | const [inline, virtual] |
Create a new mouse cursor from the usual bitmap data.
Return whether a valid and usable GraphicsContext has been created.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowX11::realizeImplementation | ( | ) | [virtual] |
| virtual bool osgViewer::GraphicsWindowX11::isRealizedImplementation | ( | ) | const [inline, virtual] |
Return true if the graphics context has been realised and is ready to use.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowX11::closeImplementation | ( | ) | [virtual] |
| virtual bool osgViewer::GraphicsWindowX11::makeCurrentImplementation | ( | ) | [virtual] |
| virtual bool osgViewer::GraphicsWindowX11::releaseContextImplementation | ( | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::swapBuffersImplementation | ( | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::checkEvents | ( | ) | [virtual] |
| virtual bool osgViewer::GraphicsWindowX11::setWindowDecorationImplementation | ( | bool | flag | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::grabFocus | ( | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::grabFocusIfPointerInWindow | ( | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::requestWarpPointer | ( | float | x, | |
| float | y | |||
| ) | [virtual] |
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.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowX11::setWindowRectangleImplementation | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::setWindowName | ( | const std::string & | name | ) | [virtual] |
| virtual void osgViewer::GraphicsWindowX11::setCursor | ( | MouseCursor | cursor | ) | [virtual] |
Set mouse cursor to a specific shape.
| Display* osgViewer::GraphicsWindowX11::getDisplay | ( | ) | const [inline] |
| Display* osgViewer::GraphicsWindowX11::getEventDisplay | ( | ) | const [inline] |
| Display* osgViewer::GraphicsWindowX11::getDisplayToUse | ( | ) | const |
| Window& osgViewer::GraphicsWindowX11::getParent | ( | ) | [inline] |
| Window& osgViewer::GraphicsWindowX11::getWindow | ( | ) | [inline] |
| GLXContext& osgViewer::GraphicsWindowX11::getGLXContext | ( | ) | [inline] |
| Cursor osgViewer::GraphicsWindowX11::getCurrentCursor | ( | ) | [inline] |
| Cursor osgViewer::GraphicsWindowX11::getOrCreateCursor | ( | MouseCursor | mouseShape | ) | [protected] |
| bool osgViewer::GraphicsWindowX11::createVisualInfo | ( | ) | [protected] |
| bool osgViewer::GraphicsWindowX11::createWindow | ( | ) | [protected] |
| bool osgViewer::GraphicsWindowX11::setWindow | ( | Window | window | ) | [protected] |
| void osgViewer::GraphicsWindowX11::init | ( | ) | [protected] |
| void osgViewer::GraphicsWindowX11::transformMouseXY | ( | float & | x, | |
| float & | y | |||
| ) | [protected] |
| void osgViewer::GraphicsWindowX11::adaptKey | ( | XKeyEvent & | keyevent, | |
| int & | keySymbol, | |||
| unsigned int & | modifierMask | |||
| ) | [protected] |
bool osgViewer::GraphicsWindowX11::_valid [protected] |
Display* osgViewer::GraphicsWindowX11::_display [protected] |
Display* osgViewer::GraphicsWindowX11::_eventDisplay [protected] |
Window osgViewer::GraphicsWindowX11::_parent [protected] |
Window osgViewer::GraphicsWindowX11::_window [protected] |
XVisualInfo* osgViewer::GraphicsWindowX11::_visualInfo [protected] |
GLXContext osgViewer::GraphicsWindowX11::_glxContext [protected] |
Cursor osgViewer::GraphicsWindowX11::_currentCursor [protected] |
Atom osgViewer::GraphicsWindowX11::_deleteWindow [protected] |
bool osgViewer::GraphicsWindowX11::_initialized [protected] |
bool osgViewer::GraphicsWindowX11::_realized [protected] |
bool osgViewer::GraphicsWindowX11::_ownsWindow [protected] |
double osgViewer::GraphicsWindowX11::_timeOfLastCheckEvents [protected] |
std::map<MouseCursor,Cursor> osgViewer::GraphicsWindowX11::_mouseCursorMap [protected] |