OpendTect  7.0
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
 
void keyPressEvent (QKeyEvent *) override
 
void keyReleaseEvent (QKeyEvent *) override
 
void mouseDoubleClickEvent (QMouseEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
virtual void setForwardKeyEvents (bool yn)
 
void setGraphicsWindow (ODGraphicsWindow *gw)
 
void setKeyboardModifiers (QInputEvent *)
 
void setTouchEventsEnabled (bool yn)
 
void wheelEvent (QWheelEvent *) override
 

Protected Member Functions

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

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()

bool ODGLWidget::event ( QEvent *  )
overrideprotected

◆ 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()

void ODGLWidget::glDraw ( )
overrideprotected

◆ keyPressEvent()

void ODGLWidget::keyPressEvent ( QKeyEvent *  )
override

◆ keyReleaseEvent()

void ODGLWidget::keyReleaseEvent ( QKeyEvent *  )
override

◆ mouseDoubleClickEvent()

void ODGLWidget::mouseDoubleClickEvent ( QMouseEvent *  )
override

◆ mouseMoveEvent()

void ODGLWidget::mouseMoveEvent ( QMouseEvent *  )
override

◆ mousePressEvent()

void ODGLWidget::mousePressEvent ( QMouseEvent *  )
override

◆ mouseReleaseEvent()

void ODGLWidget::mouseReleaseEvent ( QMouseEvent *  )
override

◆ moveEvent()

void ODGLWidget::moveEvent ( QMoveEvent *  )
overrideprotected

◆ processDeferredEvents()

void ODGLWidget::processDeferredEvents ( )
protected

◆ resizeEvent()

void ODGLWidget::resizeEvent ( QResizeEvent *  )
overrideprotected

◆ 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()

void ODGLWidget::wheelEvent ( QWheelEvent *  )
override

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-2024