OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Friends | List of all members
ODGLWidget Class Reference
Inheritance diagram for ODGLWidget:
[legend]

Public Member Functions

 ODGLWidget (const QGLFormat &format, QWidget *parent=nullptr, const QGLWidget *shareWidget=nullptr, Qt::WindowFlags f=Qt::WindowFlags(), bool forwardKeyEvents=false)
 
 ODGLWidget (QGLContext *context, QWidget *parent=nullptr, const QGLWidget *shareWidget=nullptr, Qt::WindowFlags f=Qt::WindowFlags(), bool forwardKeyEvents=false)
 
 ODGLWidget (QWidget *parent=nullptr, const QGLWidget *shareWidget=nullptr, Qt::WindowFlags f=Qt::WindowFlags(), bool forwardKeyEvents=false)
 
virtual ~ODGLWidget ()
 
virtual bool gestureEvent (QGestureEvent *)
 
bool getForwardKeyEvents () const
 
ODGraphicsWindowgetGraphicsWindow ()
 
const ODGraphicsWindowgetGraphicsWindow () const
 
bool getTouchEventsEnabled () const
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void keyReleaseEvent (QKeyEvent *)
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void setForwardKeyEvents (bool yn)
 
void setGraphicsWindow (ODGraphicsWindow *gw)
 
void setKeyboardModifiers (QInputEvent *)
 
void setTouchEventsEnabled (bool yn)
 
virtual void wheelEvent (QWheelEvent *)
 

Protected Member Functions

void enqueueDeferredEvent (QEvent::Type eventType, QEvent::Type removeEventType=QEvent::None)
 
virtual bool event (QEvent *)
 
int getNumDeferredEvents ()
 
virtual void glDraw ()
 
virtual void moveEvent (QMoveEvent *)
 
void processDeferredEvents ()
 
virtual void resizeEvent (QResizeEvent *)
 

Protected Attributes

QQueue< QEvent::Type > _deferredEventQueue
 
QMutex _deferredEventQueueMutex
 
qreal _devicePixelRatio
 
QSet< QEvent::Type > _eventCompressor
 
bool _forwardKeyEvents
 
ODGraphicsWindow_gw
 
bool _touchEventsEnabled
 

Private Types

typedef QGLWidget inherited
 

Friends

class ODGraphicsWindow
 

Detailed Description

<>

Member Typedef Documentation

◆ inherited

typedef QGLWidget ODGLWidget::inherited
private

Constructor & Destructor Documentation

◆ ODGLWidget() [1/3]

ODGLWidget::ODGLWidget ( QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags(),
bool  forwardKeyEvents = false 
)

◆ ODGLWidget() [2/3]

ODGLWidget::ODGLWidget ( QGLContext *  context,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags(),
bool  forwardKeyEvents = false 
)

◆ ODGLWidget() [3/3]

ODGLWidget::ODGLWidget ( const QGLFormat &  format,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags(),
bool  forwardKeyEvents = false 
)

◆ ~ODGLWidget()

virtual ODGLWidget::~ODGLWidget ( )
virtual

Member Function Documentation

◆ enqueueDeferredEvent()

void ODGLWidget::enqueueDeferredEvent ( QEvent::Type  eventType,
QEvent::Type  removeEventType = QEvent::None 
)
inlineprotected

◆ event()

virtual bool ODGLWidget::event ( QEvent *  )
protectedvirtual

◆ gestureEvent()

virtual bool ODGLWidget::gestureEvent ( QGestureEvent *  )
virtual

◆ getForwardKeyEvents()

bool ODGLWidget::getForwardKeyEvents ( ) const
inline

◆ getGraphicsWindow() [1/2]

ODGraphicsWindow* ODGLWidget::getGraphicsWindow ( )
inline

◆ getGraphicsWindow() [2/2]

const ODGraphicsWindow* ODGLWidget::getGraphicsWindow ( ) const
inline

◆ getNumDeferredEvents()

int ODGLWidget::getNumDeferredEvents ( )
inlineprotected

◆ getTouchEventsEnabled()

bool ODGLWidget::getTouchEventsEnabled ( ) const
inline

◆ glDraw()

virtual void ODGLWidget::glDraw ( )
protectedvirtual

◆ keyPressEvent()

virtual void ODGLWidget::keyPressEvent ( QKeyEvent *  )
virtual

◆ keyReleaseEvent()

virtual void ODGLWidget::keyReleaseEvent ( QKeyEvent *  )
virtual

◆ mouseDoubleClickEvent()

virtual void ODGLWidget::mouseDoubleClickEvent ( QMouseEvent *  )
virtual

◆ mouseMoveEvent()

virtual void ODGLWidget::mouseMoveEvent ( QMouseEvent *  )
virtual

◆ mousePressEvent()

virtual void ODGLWidget::mousePressEvent ( QMouseEvent *  )
virtual

◆ mouseReleaseEvent()

virtual void ODGLWidget::mouseReleaseEvent ( QMouseEvent *  )
virtual

◆ moveEvent()

virtual void ODGLWidget::moveEvent ( QMoveEvent *  )
protectedvirtual

◆ processDeferredEvents()

void ODGLWidget::processDeferredEvents ( )
protected

◆ resizeEvent()

virtual void ODGLWidget::resizeEvent ( QResizeEvent *  )
protectedvirtual

◆ setForwardKeyEvents()

virtual void ODGLWidget::setForwardKeyEvents ( bool  yn)
inlinevirtual

◆ setGraphicsWindow()

void ODGLWidget::setGraphicsWindow ( ODGraphicsWindow gw)
inline

◆ setKeyboardModifiers()

void ODGLWidget::setKeyboardModifiers ( QInputEvent *  )

◆ setTouchEventsEnabled()

void ODGLWidget::setTouchEventsEnabled ( bool  yn)

◆ wheelEvent()

virtual void ODGLWidget::wheelEvent ( QWheelEvent *  )
virtual

Friends And Related Function Documentation

◆ ODGraphicsWindow

friend class ODGraphicsWindow
friend

Member Data Documentation

◆ _deferredEventQueue

QQueue<QEvent::Type> ODGLWidget::_deferredEventQueue
protected

◆ _deferredEventQueueMutex

QMutex ODGLWidget::_deferredEventQueueMutex
protected

◆ _devicePixelRatio

qreal ODGLWidget::_devicePixelRatio
protected

◆ _eventCompressor

QSet<QEvent::Type> ODGLWidget::_eventCompressor
protected

◆ _forwardKeyEvents

bool ODGLWidget::_forwardKeyEvents
protected

◆ _gw

ODGraphicsWindow* ODGLWidget::_gw
protected

◆ _touchEventsEnabled

bool ODGLWidget::_touchEventsEnabled
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022