VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.
virtual ~DtOsgWindowQt ()
 DTOR.
virtual int width () const
 get the width
virtual int height () const
 get the height
virtual bool isValid () const
 Get if the.
virtual void setPosition (int x, int y)
 Does nothing as embedded window position is set by it's parent window.
virtual void resize (int width, int height)
 Resize to the width and height.
void changeResolution (int width, int height)
virtual void toggleFullScreen ()
 Toggle the window between full.
virtual bool isFullScreen ()
 Get whether this window is currently in full screen mode.
virtual int screenNumber () const
 Get the screen number of the screen that this window is on.
DtOsgAdapterQtWidgetadapterWidget ()
 Access the Qt Adapter.
- Public Member Functions inherited from makVrv::DtOsgWindow
virtual ~DtOsgWindow ()
 DTOR.
virtual osg::GraphicsContext * graphicsContext ()
 Get the OSG Graphics Context for the window.
virtual const
osg::GraphicsContext * 
graphicsContext () const
 Get the const OSG Graphics Context for the window.
virtual void sizeChanged (int width, int height)
 Called when the size of the window has changed.
void adjustPerspective ()
virtual void clearEmptyWindow ()
 Called every tick by the renderer on windows with no channels.
- Public Member Functions inherited from makVrv::DtWindow
 DtWindow (DtDe &, DtWindowConfiguration &wc)
 CTOR.
virtual void realize ()
 Realize the current configured channels.
virtual ~DtWindow ()
 DTOR.
virtual bool canResize () const
 Check to see if the window can be resized.
virtual const
DtWindowConfiguration
configuration () const
 Get the window configuration.
virtual bool tick ()
 Tick the window.
virtual DtChannelManagerchannelManager ()
 Get the window's channel manager.
virtual const DtChannelManagerchannelManager () const
 Get the window's channel manager.
virtual DtChannelfindChannel (const std::string &name)
 Find a channel.
DtDede ()
 Accessor to get the de;.

Protected Member Functions

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

Protected Attributes

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

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

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)