14 #ifndef QGRAPHICSVIEWADAPTER
15 #define QGRAPHICSVIEWADAPTER
20 #include <osg/observer_ptr>
21 #include <osgQt/Export>
22 #include <osgQt/Version>
25 #include <QGraphicsScene>
26 #include <QGraphicsView>
27 #include <QApplication>
46 bool sendPointerEvent(
int x,
int y,
int buttonMask);
49 bool sendKeyEvent(
int key,
bool keyDown);
54 void clearWriteBuffer();
59 void assignImage(
unsigned int i);
77 bool handlePointerEvent(
int x,
int y,
int buttonMask);
78 bool handleKeyEvent(
int key,
bool keyDown);
79 QWidget* getWidgetAt(
const QPoint& pos);
95 typedef std::map<int, Qt::Key>
KeyMap;
113 virtual void customEvent ( QEvent * event ) ;
117 void repaintRequestedSlot(
const QList<QRectF> ®ions);
118 void repaintRequestedSlot(
const QRectF ®ion);
unsigned int _previousFrameNumber
std::map< int, Qt::Key > KeyMap
QPointer< QGraphicsView > _graphicsView
This class provides an object-oriented thread mutex interface.
QWidget * _backgroundWidget
unsigned int _currentRead
QGraphicsScene * getQGraphicsScene()
osg::observer_ptr< osg::Image > _image
void setBackgroundColor(QColor color)
QWidget * getBackgroundWidget()
QPointer< QGraphicsScene > _graphicsScene
QGraphicsView * getQGraphicsView()
GLint GLenum GLsizei width
OSGQT_EXPORT QCoreApplication * getOrCreateQApplication()
bool requiresRendering() const
OpenThreads::Mutex _qresizeMutex
GLint GLenum GLsizei GLsizei height
Qt::KeyboardModifiers _qtKeyModifiers
void setBackgroundWidget(QWidget *w)
QPointer< QWidget > _widget
OpenThreads::Mutex _qimagesMutex
QColor getBackgroundColor() const
unsigned int _previousWrite
unsigned int _currentWrite