OpendTect  7.0
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 ()
 
void closeImplementation () override
 
ODGLWidgetgetGLWidget ()
 
const ODGLWidgetgetGLWidget () const
 
bool getTouchEventsEnabled () const
 
bool getWindowDecoration () const override
 
std::string getWindowName () override
 
void getWindowRectangle (int &x, int &y, int &width, int &height) override
 
void grabFocus () override
 
void grabFocusIfPointerInWindow () override
 
bool init (QWidget *parent, const QGLWidget *shareWidget, Qt::WindowFlags f)
 
bool isRealizedImplementation () const override
 
bool makeCurrentImplementation () override
 
void raiseWindow () override
 
bool realizeImplementation () override
 
bool releaseContextImplementation () override
 
void requestWarpPointer (float x, float y) override
 
void runOperations () override
 
void setCursor (MouseCursor) override
 
virtual void setTouchEventsEnabled (bool yn)
 
bool setWindowDecorationImplementation (bool yn) override
 
void setWindowName (const std::string &) override
 
bool setWindowRectangleImplementation (int x, int y, int width, int height) override
 
void swapBuffersImplementation () override
 
void useCursor (bool cursoron) override
 
bool valid () const override
 

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

void ODGraphicsWindow::closeImplementation ( )
override

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

bool ODGraphicsWindow::getWindowDecoration ( ) const
override

◆ getWindowName()

std::string ODGraphicsWindow::getWindowName ( )
override

◆ getWindowRectangle()

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

◆ grabFocus()

void ODGraphicsWindow::grabFocus ( )
override

◆ grabFocusIfPointerInWindow()

void ODGraphicsWindow::grabFocusIfPointerInWindow ( )
override

◆ init()

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

◆ isRealizedImplementation()

bool ODGraphicsWindow::isRealizedImplementation ( ) const
override

◆ makeCurrentImplementation()

bool ODGraphicsWindow::makeCurrentImplementation ( )
override

◆ qglFormat2traits()

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

◆ raiseWindow()

void ODGraphicsWindow::raiseWindow ( )
override

◆ realizeImplementation()

bool ODGraphicsWindow::realizeImplementation ( )
override

◆ releaseContextImplementation()

bool ODGraphicsWindow::releaseContextImplementation ( )
override

◆ requestWarpPointer()

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

◆ runOperations()

void ODGraphicsWindow::runOperations ( )
override

◆ setCursor()

void ODGraphicsWindow::setCursor ( MouseCursor  )
override

◆ setTouchEventsEnabled()

virtual void ODGraphicsWindow::setTouchEventsEnabled ( bool  yn)
inlinevirtual

◆ setWindowDecorationImplementation()

bool ODGraphicsWindow::setWindowDecorationImplementation ( bool  yn)
override

◆ setWindowName()

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

◆ setWindowRectangleImplementation()

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

◆ swapBuffersImplementation()

void ODGraphicsWindow::swapBuffersImplementation ( )
override

◆ traits2qglFormat()

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

◆ useCursor()

void ODGraphicsWindow::useCursor ( bool  cursoron)
override

◆ valid()

bool ODGraphicsWindow::valid ( ) const
override

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