|
OpenSceneGraph
3.0.1
|

Classes | |
| struct | WindowData |
| WindowData is used to pass in the Win32 window handle attached the GraphicsContext::Traits structure. More... | |
Public Member Functions | |
| GraphicsWindowWin32 (osg::GraphicsContext::Traits *traits) | |
| ~GraphicsWindowWin32 () | |
| 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 |
| Return whether a valid and usable GraphicsContext has been created. | |
| virtual bool | realizeImplementation () |
| Realize the GraphicsContext. | |
| virtual bool | isRealizedImplementation () const |
| Return true if the graphics context has been realized 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 | setWindowRectangleImplementation (int x, int y, int width, int height) |
| Set the window's position and size. | |
| 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) |
| Override from GUIActionAdapter. | |
| virtual void | raiseWindow () |
| Raise specified window. | |
| virtual void | setWindowName (const std::string &) |
| Set the name of the window. | |
| virtual void | useCursor (bool) |
| Switch on/off the cursor. | |
| virtual void | setCursor (MouseCursor cursor) |
| Set mouse cursor to a specific shape. | |
| virtual void | setSyncToVBlank (bool on) |
| Set sync-to-vblank. | |
| virtual void | setSwapGroup (bool on, GLuint group, GLuint barrier) |
| Set swap group. | |
| virtual LRESULT | handleNativeWindowingEvent (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Handle a native (Win32) windowing event as received from the system. | |
Protected Member Functions | |
| void | init () |
| void | registerWindow () |
| void | unregisterWindow () |
| bool | registerWindowProcedure () |
| bool | unregisterWindowProcedure () |
| HGLRC | createContextImplementation () |
| bool | createWindow () |
| bool | setWindow (HWND handle) |
| void | destroyWindow (bool deleteNativeWindow=true) |
| void | recreateWindow () |
| bool | determineWindowPositionAndStyle (unsigned int screenNum, int clientAreaX, int clientAreaY, unsigned int clientAreaWidth, unsigned int clientAreaHeight, bool decorated, int &x, int &y, unsigned int &w, unsigned int &h, unsigned int &style, unsigned int &extendedStyle) |
| bool | setPixelFormat () |
| void | adaptKey (WPARAM wParam, LPARAM lParam, int &keySymbol, unsigned int &modifierMask, int &unmodifiedKeySymbol) |
| void | transformMouseXY (float &x, float &y) |
| void | setCursorImpl (MouseCursor cursor) |
| HCURSOR | getOrCreateCursor (MouseCursor mouseShape) |
Protected Attributes | |
| HCURSOR | _currentCursor |
| WNDPROC | _windowProcedure |
| double | _timeOfLastCheckEvents |
| int | _screenOriginX |
| int | _screenOriginY |
| unsigned int | _screenWidth |
| unsigned int | _screenHeight |
| int | _windowOriginXToRealize |
| int | _windowOriginYToRealize |
| unsigned int | _windowWidthToRealize |
| unsigned int | _windowHeightToRealize |
| bool | _initialized |
| bool | _valid |
| bool | _realized |
| bool | _ownsWindow |
| bool | _closeWindow |
| bool | _destroyWindow |
| bool | _destroying |
| MouseCursor | _mouseCursor |
| MouseCursor | _appMouseCursor |
| Persist which mouse cursor was used before switching to the resize cursors. | |
| std::map< MouseCursor, HCURSOR > | _mouseCursorMap |
| std::map< std::pair< int, int > , bool > | _keyMap |
| bool | _applyWorkaroundForMultimonitorMultithreadNVidiaWin32Issues |
| void osgViewer::GraphicsWindowWin32::adaptKey | ( | WPARAM | wParam, |
| LPARAM | lParam, | ||
| int & | keySymbol, | ||
| unsigned int & | modifierMask, | ||
| int & | unmodifiedKeySymbol | ||
| ) | [protected] |
| virtual void osgViewer::GraphicsWindowWin32::checkEvents | ( | ) | [virtual] |
Check to see if any events have been generated.
Reimplemented from osgViewer::GraphicsWindow.
| virtual const char* osgViewer::GraphicsWindowWin32::className | ( | ) | const [inline, virtual] |
return the name of the object's class type.
Must be defined by derived classes.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::closeImplementation | ( | ) | [virtual] |
Close the graphics context.
Reimplemented from osgViewer::GraphicsWindow.
| HGLRC osgViewer::GraphicsWindowWin32::createContextImplementation | ( | ) | [protected] |
| bool osgViewer::GraphicsWindowWin32::createWindow | ( | ) | [protected] |
| void osgViewer::GraphicsWindowWin32::destroyWindow | ( | bool | deleteNativeWindow = true | ) | [protected] |
| bool osgViewer::GraphicsWindowWin32::determineWindowPositionAndStyle | ( | unsigned int | screenNum, |
| int | clientAreaX, | ||
| int | clientAreaY, | ||
| unsigned int | clientAreaWidth, | ||
| unsigned int | clientAreaHeight, | ||
| bool | decorated, | ||
| int & | x, | ||
| int & | y, | ||
| unsigned int & | w, | ||
| unsigned int & | h, | ||
| unsigned int & | style, | ||
| unsigned int & | extendedStyle | ||
| ) | [protected] |
| HCURSOR osgViewer::GraphicsWindowWin32::getOrCreateCursor | ( | MouseCursor | mouseShape | ) | [protected] |
| virtual void osgViewer::GraphicsWindowWin32::grabFocus | ( | ) | [virtual] |
Get focus.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::grabFocusIfPointerInWindow | ( | ) | [virtual] |
Get focus on if the pointer is in this window.
Reimplemented from osgViewer::GraphicsWindow.
| virtual LRESULT osgViewer::GraphicsWindowWin32::handleNativeWindowingEvent | ( | HWND | hwnd, |
| UINT | uMsg, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam | ||
| ) | [virtual] |
Handle a native (Win32) windowing event as received from the system.
| void osgViewer::GraphicsWindowWin32::init | ( | ) | [protected] |
| virtual bool osgViewer::GraphicsWindowWin32::isRealizedImplementation | ( | ) | const [inline, virtual] |
Return true if the graphics context has been realized and is ready to use.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowWin32::isSameKindAs | ( | const Object * | object | ) | const [inline, virtual] |
Reimplemented from osgViewer::GraphicsWindow.
| virtual const char* osgViewer::GraphicsWindowWin32::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 bool osgViewer::GraphicsWindowWin32::makeCurrentImplementation | ( | ) | [virtual] |
Make this graphics context current.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::raiseWindow | ( | ) | [virtual] |
Raise specified window.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowWin32::realizeImplementation | ( | ) | [virtual] |
Realize the GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
| void osgViewer::GraphicsWindowWin32::recreateWindow | ( | ) | [protected] |
| void osgViewer::GraphicsWindowWin32::registerWindow | ( | ) | [protected] |
| bool osgViewer::GraphicsWindowWin32::registerWindowProcedure | ( | ) | [protected] |
| virtual bool osgViewer::GraphicsWindowWin32::releaseContextImplementation | ( | ) | [virtual] |
Release the graphics context.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::requestWarpPointer | ( | float | x, |
| float | y | ||
| ) | [virtual] |
Override from GUIActionAdapter.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::setCursor | ( | MouseCursor | cursor | ) | [virtual] |
Set mouse cursor to a specific shape.
Reimplemented from osgViewer::GraphicsWindow.
| void osgViewer::GraphicsWindowWin32::setCursorImpl | ( | MouseCursor | cursor | ) | [protected] |
| bool osgViewer::GraphicsWindowWin32::setPixelFormat | ( | ) | [protected] |
| virtual void osgViewer::GraphicsWindowWin32::setSwapGroup | ( | bool | on, |
| GLuint | group, | ||
| GLuint | barrier | ||
| ) | [virtual] |
Set swap group.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::setSyncToVBlank | ( | bool | on | ) | [virtual] |
Set sync-to-vblank.
Reimplemented from osgViewer::GraphicsWindow.
| bool osgViewer::GraphicsWindowWin32::setWindow | ( | HWND | handle | ) | [protected] |
| virtual bool osgViewer::GraphicsWindowWin32::setWindowDecorationImplementation | ( | bool | flag | ) | [virtual] |
Set Window decoration.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::setWindowName | ( | const std::string & | ) | [virtual] |
Set the name of the window.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowWin32::setWindowRectangleImplementation | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) | [virtual] |
Set the window's position and size.
Reimplemented from osgViewer::GraphicsWindow.
| virtual void osgViewer::GraphicsWindowWin32::swapBuffersImplementation | ( | ) | [virtual] |
Swap the front and back buffers.
Reimplemented from osgViewer::GraphicsWindow.
| void osgViewer::GraphicsWindowWin32::transformMouseXY | ( | float & | x, |
| float & | y | ||
| ) | [protected] |
| void osgViewer::GraphicsWindowWin32::unregisterWindow | ( | ) | [protected] |
| bool osgViewer::GraphicsWindowWin32::unregisterWindowProcedure | ( | ) | [protected] |
| virtual void osgViewer::GraphicsWindowWin32::useCursor | ( | bool | ) | [virtual] |
Switch on/off the cursor.
Reimplemented from osgViewer::GraphicsWindow.
| virtual bool osgViewer::GraphicsWindowWin32::valid | ( | ) | const [inline, virtual] |
Return whether a valid and usable GraphicsContext has been created.
Reimplemented from osgViewer::GraphicsWindow.
bool osgViewer::GraphicsWindowWin32::_applyWorkaroundForMultimonitorMultithreadNVidiaWin32Issues [protected] |
Persist which mouse cursor was used before switching to the resize cursors.
bool osgViewer::GraphicsWindowWin32::_closeWindow [protected] |
HCURSOR osgViewer::GraphicsWindowWin32::_currentCursor [protected] |
bool osgViewer::GraphicsWindowWin32::_destroying [protected] |
bool osgViewer::GraphicsWindowWin32::_destroyWindow [protected] |
bool osgViewer::GraphicsWindowWin32::_initialized [protected] |
std::map<std::pair<int, int>, bool> osgViewer::GraphicsWindowWin32::_keyMap [protected] |
std::map<MouseCursor,HCURSOR> osgViewer::GraphicsWindowWin32::_mouseCursorMap [protected] |
bool osgViewer::GraphicsWindowWin32::_ownsWindow [protected] |
bool osgViewer::GraphicsWindowWin32::_realized [protected] |
unsigned int osgViewer::GraphicsWindowWin32::_screenHeight [protected] |
int osgViewer::GraphicsWindowWin32::_screenOriginX [protected] |
int osgViewer::GraphicsWindowWin32::_screenOriginY [protected] |
unsigned int osgViewer::GraphicsWindowWin32::_screenWidth [protected] |
double osgViewer::GraphicsWindowWin32::_timeOfLastCheckEvents [protected] |
bool osgViewer::GraphicsWindowWin32::_valid [protected] |
unsigned int osgViewer::GraphicsWindowWin32::_windowHeightToRealize [protected] |
int osgViewer::GraphicsWindowWin32::_windowOriginXToRealize [protected] |
int osgViewer::GraphicsWindowWin32::_windowOriginYToRealize [protected] |
WNDPROC osgViewer::GraphicsWindowWin32::_windowProcedure [protected] |
unsigned int osgViewer::GraphicsWindowWin32::_windowWidthToRealize [protected] |
| Generated at Thu Sep 27 2012 17:03:31 for the OpenSceneGraph by doxygen 1.7.6.1. |