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

This is a helper class for users that want to embed an DtOsgView into a custom Qt application. More...

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

Public Member Functions

 DtEmbeddedOsgWindow (DtDe &de, DtWindowConfiguration &wc, DtOsgAdapterQtWidget *pAdapter)
 CTOR Here the osg::GraphicsContext is set from the DtOsgAdapterQtWidget.
virtual ~DtEmbeddedOsgWindow ()
 DTOR.
virtual void setPosition (int x, int y)
 Does nothing.
virtual void resize (int width, int height)
 Resize the window.
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 bool isValid () const
 Get if the.
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 int width () const
 Get the window width.
virtual int height () const
 Get the window height.
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;.
virtual void toggleFullScreen ()
 toggle fullscreen mode, for windows that support it.
virtual bool isFullScreen () const
virtual int screenNumber () const
 Get the screen number of the screen that this window is on.

Protected Attributes

DtOsgAdapterQtWidgetmyAdapter
- 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.
- Public Attributes inherited from makVrv::DtWindow
boost::signal< void(bool)> signal_fullScreenModeChanged
 Signal that indicates when the window toggles between full screen and Windowed mode.
- 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.
- Static Protected Member Functions inherited from makVrv::DtOsgWindow
static void setUpAntiAliasingLevels (osg::GraphicsContext::Traits &traits, unsigned short level)

Detailed Description

This is a helper class for users that want to embed an DtOsgView into a custom Qt application.

Constructor & Destructor Documentation

makVrv::DtEmbeddedOsgWindow::DtEmbeddedOsgWindow ( DtDe de,
DtWindowConfiguration wc,
DtOsgAdapterQtWidget pAdapter 
)

CTOR Here the osg::GraphicsContext is set from the DtOsgAdapterQtWidget.

virtual makVrv::DtEmbeddedOsgWindow::~DtEmbeddedOsgWindow ( )
virtual

DTOR.

Member Function Documentation

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

Does nothing.

Implements makVrv::DtWindow.

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

Resize the window.

Implements makVrv::DtWindow.

DtOsgAdapterQtWidget* makVrv::DtEmbeddedOsgWindow::adapterWidget ( )

Access the Qt Adapter.

Member Data Documentation

DtOsgAdapterQtWidget* makVrv::DtEmbeddedOsgWindow::myAdapter
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)