OpenSceneGraph
3.0.1
|
Classes | |
struct | WindowData |
Public Member Functions | |
GraphicsWindowQt (osg::GraphicsContext::Traits *traits, QWidget *parent=NULL, const QGLWidget *shareWidget=NULL, Qt::WindowFlags f=0) | |
GraphicsWindowQt (GLWidget *widget) | |
virtual | ~GraphicsWindowQt () |
GLWidget * | getGLWidget () |
const GLWidget * | getGLWidget () const |
GLWidget * | getGraphWidget () |
deprecated | |
const GLWidget * | getGraphWidget () const |
deprecated | |
bool | init (QWidget *parent, const QGLWidget *shareWidget, Qt::WindowFlags f) |
virtual bool | setWindowRectangleImplementation (int x, int y, int width, int height) |
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. | |
virtual bool | setWindowDecorationImplementation (bool windowDecoration) |
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 | raiseWindow () |
Raise the window to the top. | |
virtual void | setWindowName (const std::string &name) |
Set the name of the window. | |
virtual std::string | getWindowName () |
Return the name of the window. | |
virtual void | useCursor (bool cursorOn) |
Switch on/off the cursor. | |
virtual void | setCursor (MouseCursor cursor) |
Set mouse cursor to a specific shape. | |
virtual bool | valid () const |
Return whether a valid and usable GraphicsContext has been created. | |
virtual bool | realizeImplementation () |
Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext. | |
virtual bool | isRealizedImplementation () const |
Return true if the graphics context has been realized, 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 | releaseContextImplementation () |
Release the graphics context. | |
virtual void | swapBuffersImplementation () |
Swap the front and back buffers implementation. | |
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. | |
Static Public Member Functions | |
static QGLFormat | traits2qglFormat (const osg::GraphicsContext::Traits *traits) |
static void | qglFormat2traits (const QGLFormat &format, osg::GraphicsContext::Traits *traits) |
static osg::GraphicsContext::Traits * | createTraits (const QGLWidget *widget) |
Protected Attributes | |
GLWidget * | _widget |
bool | _ownsWidget |
QCursor | _currentCursor |
bool | _realized |
Friends | |
class | GLWidget |
osgQt::GraphicsWindowQt::GraphicsWindowQt | ( | osg::GraphicsContext::Traits * | traits, |
QWidget * | parent = NULL , |
||
const QGLWidget * | shareWidget = NULL , |
||
Qt::WindowFlags | f = 0 |
||
) |
osgQt::GraphicsWindowQt::GraphicsWindowQt | ( | GLWidget * | widget | ) |
virtual osgQt::GraphicsWindowQt::~GraphicsWindowQt | ( | ) | [virtual] |
virtual void osgQt::GraphicsWindowQt::closeImplementation | ( | ) | [virtual] |
Close the graphics context implementation.
Pure virtual - must be implemented by concrete implementations of GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
static osg::GraphicsContext::Traits* osgQt::GraphicsWindowQt::createTraits | ( | const QGLWidget * | widget | ) | [static] |
GLWidget* osgQt::GraphicsWindowQt::getGLWidget | ( | ) | [inline] |
const GLWidget* osgQt::GraphicsWindowQt::getGLWidget | ( | ) | const [inline] |
GLWidget* osgQt::GraphicsWindowQt::getGraphWidget | ( | ) | [inline] |
deprecated
const GLWidget* osgQt::GraphicsWindowQt::getGraphWidget | ( | ) | const [inline] |
deprecated
virtual bool osgQt::GraphicsWindowQt::getWindowDecoration | ( | ) | const [virtual] |
Set Window decoration.
Reimplemented from osgViewer::GraphicsWindow.
virtual std::string osgQt::GraphicsWindowQt::getWindowName | ( | ) | [virtual] |
Return the name of the window.
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::getWindowRectangle | ( | int & | x, |
int & | y, | ||
int & | width, | ||
int & | height | ||
) | [virtual] |
Get the window's position and size.
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::grabFocus | ( | ) | [virtual] |
Get focus.
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::grabFocusIfPointerInWindow | ( | ) | [virtual] |
Get focus on if the pointer is in this window.
Reimplemented from osgViewer::GraphicsWindow.
bool osgQt::GraphicsWindowQt::init | ( | QWidget * | parent, |
const QGLWidget * | shareWidget, | ||
Qt::WindowFlags | f | ||
) |
virtual bool osgQt::GraphicsWindowQt::isRealizedImplementation | ( | ) | const [virtual] |
Return true if the graphics context has been realized, and is ready to use, implementation.
Pure virtual - must be implemented by concrete implementations of GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::makeCurrentImplementation | ( | ) | [virtual] |
Make this graphics context current implementation.
Pure virtual - must be implemented by concrete implementations of GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
static void osgQt::GraphicsWindowQt::qglFormat2traits | ( | const QGLFormat & | format, |
osg::GraphicsContext::Traits * | traits | ||
) | [static] |
virtual void osgQt::GraphicsWindowQt::raiseWindow | ( | ) | [virtual] |
Raise the window to the top.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::realizeImplementation | ( | ) | [virtual] |
Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::releaseContextImplementation | ( | ) | [virtual] |
Release the graphics context.
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::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 void osgQt::GraphicsWindowQt::setCursor | ( | MouseCursor | ) | [virtual] |
Set mouse cursor to a specific shape.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::setWindowDecorationImplementation | ( | bool | ) | [virtual] |
implementation of setWindowDecoration, should be implemented by derived classes
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::setWindowName | ( | const std::string & | ) | [virtual] |
Set the name of the window.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::setWindowRectangleImplementation | ( | int | , |
int | , | ||
int | , | ||
int | |||
) | [virtual] |
implementation of setWindowRectangle, should be implemented by derived classes
Reimplemented from osgViewer::GraphicsWindow.
virtual void osgQt::GraphicsWindowQt::swapBuffersImplementation | ( | ) | [virtual] |
Swap the front and back buffers implementation.
Pure virtual - must be implemented by concrete implementations of GraphicsContext.
Reimplemented from osgViewer::GraphicsWindow.
static QGLFormat osgQt::GraphicsWindowQt::traits2qglFormat | ( | const osg::GraphicsContext::Traits * | traits | ) | [static] |
virtual void osgQt::GraphicsWindowQt::useCursor | ( | bool | cursorOn | ) | [virtual] |
Switch on/off the cursor.
Reimplemented from osgViewer::GraphicsWindow.
virtual bool osgQt::GraphicsWindowQt::valid | ( | ) | const [virtual] |
Return whether a valid and usable GraphicsContext has been created.
Reimplemented from osgViewer::GraphicsWindow.
friend class GLWidget [friend] |
QCursor osgQt::GraphicsWindowQt::_currentCursor [protected] |
bool osgQt::GraphicsWindowQt::_ownsWidget [protected] |
bool osgQt::GraphicsWindowQt::_realized [protected] |
GLWidget* osgQt::GraphicsWindowQt::_widget [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:48 for the OpenSceneGraph by doxygen 1.7.5. |