openscenegraph
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends
osgQt::GraphicsWindowQt Class Reference
Inheritance diagram for osgQt::GraphicsWindowQt:
osgViewer::GraphicsWindow osg::GraphicsContext osgGA::GUIActionAdapter osg::Object osg::Referenced

List of all members.

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 ()
GLWidgetgetGLWidget ()
const GLWidgetgetGLWidget () const
GLWidgetgetGraphWidget ()
 deprecated
const GLWidgetgetGraphWidget () const
 deprecated
bool init (QWidget *parent, const QGLWidget *shareWidget, Qt::WindowFlags f)
virtual bool setWindowRectangleImplementation (int x, int y, int width, int height)
virtual void getWindowRectangle (int &x, int &y, int &width, int &height)
virtual bool setWindowDecorationImplementation (bool windowDecoration)
virtual bool getWindowDecoration () const
virtual void grabFocus ()
virtual void grabFocusIfPointerInWindow ()
virtual void raiseWindow ()
virtual void setWindowName (const std::string &name)
virtual std::string getWindowName ()
virtual void useCursor (bool cursorOn)
virtual void setCursor (MouseCursor cursor)
virtual bool valid () const
virtual bool realizeImplementation ()
virtual bool isRealizedImplementation () const
virtual void closeImplementation ()
virtual bool makeCurrentImplementation ()
virtual bool releaseContextImplementation ()
virtual void swapBuffersImplementation ()
virtual void requestWarpPointer (float x, float y)

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

Constructor & Destructor Documentation

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]

Member Function Documentation

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]
const GLWidget* osgQt::GraphicsWindowQt::getGLWidget ( ) const [inline]
GLWidget* osgQt::GraphicsWindowQt::getGLWidget ( ) [inline]
const GLWidget* osgQt::GraphicsWindowQt::getGraphWidget ( ) const [inline]

deprecated

GLWidget* osgQt::GraphicsWindowQt::getGraphWidget ( ) [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.


Friends And Related Function Documentation

friend class GLWidget [friend]

Member Data Documentation


The documentation for this class was generated from the following file: