OpendTect  6.6
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
ODGraphicsWindow Class Reference
Inheritance diagram for ODGraphicsWindow:
[legend]

Classes

struct  WindowData
 

Public Member Functions

 ODGraphicsWindow (ODGLWidget *widget)
 
 ODGraphicsWindow (osg::GraphicsContext::Traits *, QWidget *parent=nullptr, const QGLWidget *shareWidget=0, Qt::WindowFlags f=Qt::WindowFlags())
 
virtual ~ODGraphicsWindow ()
 
virtual void closeImplementation ()
 
ODGLWidgetgetGLWidget ()
 
const ODGLWidgetgetGLWidget () const
 
bool getTouchEventsEnabled () const
 
virtual bool getWindowDecoration () const
 
virtual std::string getWindowName ()
 
virtual void getWindowRectangle (int &x, int &y, int &width, int &height)
 
virtual void grabFocus ()
 
virtual void grabFocusIfPointerInWindow ()
 
bool init (QWidget *parent, const QGLWidget *shareWidget, Qt::WindowFlags f)
 
virtual bool isRealizedImplementation () const
 
virtual bool makeCurrentImplementation ()
 
virtual void raiseWindow ()
 
virtual bool realizeImplementation ()
 
virtual bool releaseContextImplementation ()
 
virtual void requestWarpPointer (float x, float y)
 
virtual void runOperations ()
 
virtual void setCursor (MouseCursor)
 
virtual void setTouchEventsEnabled (bool yn)
 
virtual bool setWindowDecorationImplementation (bool yn)
 
virtual void setWindowName (const std::string &)
 
virtual bool setWindowRectangleImplementation (int x, int y, int width, int height)
 
virtual void swapBuffersImplementation ()
 
virtual void useCursor (bool cursoron)
 
virtual bool valid () const
 

Static Public Member Functions

static osg::GraphicsContext::Traits * createTraits (const QGLWidget *widget)
 
static void qglFormat2traits (const QGLFormat &format, osg::GraphicsContext::Traits *)
 
static QGLFormat traits2qglFormat (const osg::GraphicsContext::Traits *)
 

Protected Attributes

QCursor _currentCursor
 
bool _ownsWidget
 
bool _realized
 
ODGLWidget_widget
 

Friends

class ODGLWidget
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ODGraphicsWindow() [1/2]

ODGraphicsWindow::ODGraphicsWindow ( osg::GraphicsContext::Traits *  ,
QWidget *  parent = nullptr,
const QGLWidget *  shareWidget = 0,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ODGraphicsWindow() [2/2]

ODGraphicsWindow::ODGraphicsWindow ( ODGLWidget widget)

◆ ~ODGraphicsWindow()

virtual ODGraphicsWindow::~ODGraphicsWindow ( )
virtual

Member Function Documentation

◆ closeImplementation()

virtual void ODGraphicsWindow::closeImplementation ( )
virtual

◆ createTraits()

static osg::GraphicsContext::Traits* ODGraphicsWindow::createTraits ( const QGLWidget *  widget)
static

◆ getGLWidget() [1/2]

ODGLWidget* ODGraphicsWindow::getGLWidget ( )
inline

◆ getGLWidget() [2/2]

const ODGLWidget* ODGraphicsWindow::getGLWidget ( ) const
inline

◆ getTouchEventsEnabled()

bool ODGraphicsWindow::getTouchEventsEnabled ( ) const
inline

◆ getWindowDecoration()

virtual bool ODGraphicsWindow::getWindowDecoration ( ) const
virtual

◆ getWindowName()

virtual std::string ODGraphicsWindow::getWindowName ( )
virtual

◆ getWindowRectangle()

virtual void ODGraphicsWindow::getWindowRectangle ( int &  x,
int &  y,
int &  width,
int &  height 
)
virtual

◆ grabFocus()

virtual void ODGraphicsWindow::grabFocus ( )
virtual

◆ grabFocusIfPointerInWindow()

virtual void ODGraphicsWindow::grabFocusIfPointerInWindow ( )
virtual

◆ init()

bool ODGraphicsWindow::init ( QWidget *  parent,
const QGLWidget *  shareWidget,
Qt::WindowFlags  f 
)

◆ isRealizedImplementation()

virtual bool ODGraphicsWindow::isRealizedImplementation ( ) const
virtual

◆ makeCurrentImplementation()

virtual bool ODGraphicsWindow::makeCurrentImplementation ( )
virtual

◆ qglFormat2traits()

static void ODGraphicsWindow::qglFormat2traits ( const QGLFormat &  format,
osg::GraphicsContext::Traits *   
)
static

◆ raiseWindow()

virtual void ODGraphicsWindow::raiseWindow ( )
virtual

◆ realizeImplementation()

virtual bool ODGraphicsWindow::realizeImplementation ( )
virtual

◆ releaseContextImplementation()

virtual bool ODGraphicsWindow::releaseContextImplementation ( )
virtual

◆ requestWarpPointer()

virtual void ODGraphicsWindow::requestWarpPointer ( float  x,
float  y 
)
virtual

◆ runOperations()

virtual void ODGraphicsWindow::runOperations ( )
virtual

◆ setCursor()

virtual void ODGraphicsWindow::setCursor ( MouseCursor  )
virtual

◆ setTouchEventsEnabled()

virtual void ODGraphicsWindow::setTouchEventsEnabled ( bool  yn)
inlinevirtual

◆ setWindowDecorationImplementation()

virtual bool ODGraphicsWindow::setWindowDecorationImplementation ( bool  yn)
virtual

◆ setWindowName()

virtual void ODGraphicsWindow::setWindowName ( const std::string &  )
virtual

◆ setWindowRectangleImplementation()

virtual bool ODGraphicsWindow::setWindowRectangleImplementation ( int  x,
int  y,
int  width,
int  height 
)
virtual

◆ swapBuffersImplementation()

virtual void ODGraphicsWindow::swapBuffersImplementation ( )
virtual

◆ traits2qglFormat()

static QGLFormat ODGraphicsWindow::traits2qglFormat ( const osg::GraphicsContext::Traits *  )
static

◆ useCursor()

virtual void ODGraphicsWindow::useCursor ( bool  cursoron)
virtual

◆ valid()

virtual bool ODGraphicsWindow::valid ( ) const
virtual

Friends And Related Function Documentation

◆ ODGLWidget

friend class ODGLWidget
friend

Member Data Documentation

◆ _currentCursor

QCursor ODGraphicsWindow::_currentCursor
protected

◆ _ownsWidget

bool ODGraphicsWindow::_ownsWidget
protected

◆ _realized

bool ODGraphicsWindow::_realized
protected

◆ _widget

ODGLWidget* ODGraphicsWindow::_widget
protected

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