VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgWindowQt Class Reference

OpenSceneGraph window integration with Qt. More...

Inheritance diagram for makVrv::DtOsgWindowQt:
Inheritance graph
[legend]

Public Member Functions

 DtOsgWindowQt (DtDe &de, DtWindowConfiguration &wc, bool fullscreen=false)
 CTOR. More...
 
virtual ~DtOsgWindowQt ()
 DTOR. More...
 
virtual int width () const
 get the width More...
 
virtual int height () const
 get the height More...
 
virtual float pixelRatio () const
 Get the window pixel ratio for high dpi scaling. More...
 
virtual bool isValid () const
 Get if the. More...
 
virtual void setPosition (int x, int y)
 Does nothing as embedded window position is set by it's parent window. More...
 
virtual void resize (int width, int height)
 Resize to the width and height. More...
 
void changeResolution (int width, int height)
 
virtual void toggleFullScreen ()
 Toggle the window between full. More...
 
virtual bool isFullScreen () const
 Get whether this window is currently in full screen mode. More...
 
virtual int screenNumber () const
 Get the screen number of the screen that this window is on. More...
 
DtOsgAdapterQtWidgetadapterWidget ()
 Access the Qt Adapter. More...
 
- Public Member Functions inherited from makVrv::DtOsgWindow
virtual ~DtOsgWindow ()
 DTOR. More...
 
virtual osg::GraphicsContext * graphicsContext ()
 Get the OSG Graphics Context for the window. More...
 
virtual const
osg::GraphicsContext * 
graphicsContext () const
 Get the const OSG Graphics Context for the window. More...
 
virtual void sizeChanged (int width, int height)
 Called when the size of the window has changed. More...
 
void adjustPerspective ()
 
virtual void clearEmptyWindow (const std::string &messageLine1, const std::string &messageLine2, const std::string &messageLine3)
 Called every tick by the renderer on windows with no channels. More...
 
- Public Member Functions inherited from makVrv::DtWindow
 DtWindow (DtDe &, DtWindowConfiguration &wc)
 CTOR. More...
 
virtual void realize ()
 Realize the current configured channels. More...
 
virtual ~DtWindow ()
 DTOR. More...
 
virtual bool canResize () const
 Check to see if the window can be resized. More...
 
virtual bool isChildWindow () const
 Get the window is child window flag. More...
 
virtual const
DtWindowConfiguration
configuration () const
 Get the window configuration. More...
 
virtual bool tick ()
 Tick the window. More...
 
virtual DtChannelManagerchannelManager ()
 Get the window's channel manager. More...
 
virtual const DtChannelManagerchannelManager () const
 Get the window's channel manager. More...
 
virtual DtChannelfindChannel (const std::string &name)
 Find a channel. More...
 
DtDede ()
 Accessor to get the de;. More...
 

Protected Member Functions

virtual void slot_windowResizeabilityChanged (DtWindow *window)
 
- Protected Member Functions inherited from makVrv::DtOsgWindow
 DtOsgWindow (DtDe &de, DtWindowConfiguration &wc)
 CTOR. More...
 
virtual void renderText (int x, int y, const std::string &text)
 Write some text on the screen using glut. More...
 

Protected Attributes

DtOsgAdapterQtWidgetmyAdapter
 
unsigned int myScreenWidth
 
unsigned int myScreenHeight
 
bool myFullScreen
 
DtSignalConnectionManager mySignals
 
int myWindowStateBeforeFullscreen
 
int myWindowXBeforeFullscreen
 
int myWindowYBeforeFullscreen
 
int myWindowWidthBeforeFullscreen
 
int myWindowHeightBeforeFullscreen
 
- Protected Attributes inherited from makVrv::DtOsgWindow
osg::ref_ptr
< osg::GraphicsContext > 
myContext
 
- Protected Attributes inherited from makVrv::DtWindow
DtDemyDe
 
DtChannelManagermyChannelManager
 
DtWindowConfigurationmyWindowConfiguration
 
bool myIsChildWindow
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtOsgWindow
static
osg::GraphicsContext::Traits * 
createDefaultTraits ()
 Create a set of traits which are the default shared traits. More...
 
- Public Attributes inherited from makVrv::DtWindow
boost::signalslib::signal
< void(bool)> 
signal_fullScreenModeChanged
 Signal that indicates when the window toggles between full screen and Windowed mode. More...
 
boost::signalslib::signal
< void(float)> 
signal_pixelRatioChanged
 Signal that indicates when the high dpi scaling factor has changed. More...
 
- Static Protected Member Functions inherited from makVrv::DtOsgWindow
static void setUpAntiAliasingLevels (osg::GraphicsContext::Traits &traits, unsigned short level)
 

Detailed Description

OpenSceneGraph window integration with Qt.

Constructor & Destructor Documentation

makVrv::DtOsgWindowQt::DtOsgWindowQt ( DtDe de,
DtWindowConfiguration wc,
bool  fullscreen = false 
)

CTOR.

Exceptions
DtCorruptedStateif it can't create/access a DtAppTicker when needed.
virtual makVrv::DtOsgWindowQt::~DtOsgWindowQt ( )
virtual

DTOR.

Member Function Documentation

virtual int makVrv::DtOsgWindowQt::width ( ) const
virtual

get the width

Reimplemented from makVrv::DtWindow.

virtual int makVrv::DtOsgWindowQt::height ( ) const
virtual

get the height

Reimplemented from makVrv::DtWindow.

virtual float makVrv::DtOsgWindowQt::pixelRatio ( ) const
virtual

Get the window pixel ratio for high dpi scaling.

Reimplemented from makVrv::DtWindow.

virtual bool makVrv::DtOsgWindowQt::isValid ( ) const
virtual

Get if the.

Reimplemented from makVrv::DtOsgWindow.

virtual void makVrv::DtOsgWindowQt::setPosition ( int  x,
int  y 
)
virtual

Does nothing as embedded window position is set by it's parent window.

Implements makVrv::DtWindow.

virtual void makVrv::DtOsgWindowQt::resize ( int  width,
int  height 
)
virtual

Resize to the width and height.

Implements makVrv::DtWindow.

void makVrv::DtOsgWindowQt::changeResolution ( int  width,
int  height 
)
virtual void makVrv::DtOsgWindowQt::toggleFullScreen ( )
virtual

Toggle the window between full.

Reimplemented from makVrv::DtWindow.

virtual bool makVrv::DtOsgWindowQt::isFullScreen ( ) const
virtual

Get whether this window is currently in full screen mode.

Reimplemented from makVrv::DtWindow.

virtual int makVrv::DtOsgWindowQt::screenNumber ( ) const
virtual

Get the screen number of the screen that this window is on.

Reimplemented from makVrv::DtWindow.

DtOsgAdapterQtWidget* makVrv::DtOsgWindowQt::adapterWidget ( )

Access the Qt Adapter.

virtual void makVrv::DtOsgWindowQt::slot_windowResizeabilityChanged ( DtWindow window)
protectedvirtual

Member Data Documentation

DtOsgAdapterQtWidget* makVrv::DtOsgWindowQt::myAdapter
protected
unsigned int makVrv::DtOsgWindowQt::myScreenWidth
protected
unsigned int makVrv::DtOsgWindowQt::myScreenHeight
protected
bool makVrv::DtOsgWindowQt::myFullScreen
protected
DtSignalConnectionManager makVrv::DtOsgWindowQt::mySignals
protected
int makVrv::DtOsgWindowQt::myWindowStateBeforeFullscreen
protected
int makVrv::DtOsgWindowQt::myWindowXBeforeFullscreen
protected
int makVrv::DtOsgWindowQt::myWindowYBeforeFullscreen
protected
int makVrv::DtOsgWindowQt::myWindowWidthBeforeFullscreen
protected
int makVrv::DtOsgWindowQt::myWindowHeightBeforeFullscreen
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)