![]() |
VR-Forces 5.0.2 Developer's Guide
|
A basic OSG display window, used to get the osg context for a display window.

Public Member Functions | |
| virtual | ~DtOsgWindow () |
| virtual osg::GraphicsContext * | graphicsContext () |
| virtual const osg::GraphicsContext * | graphicsContext () const |
| virtual bool | isValid () const |
| virtual void | sizeChanged (int width, int height) |
| void | adjustPerspective () |
| virtual void | clearEmptyWindow (const std::string &messageLine1, const std::string &messageLine2, const std::string &messageLine3) |
Public Member Functions inherited from makVrv::DtWindow | |
| DtWindow (DtDe &, DtWindowConfiguration &wc) | |
| virtual void | realize () |
| virtual | ~DtWindow () |
| virtual bool | canResize () const |
| virtual void | setPosition (int x, int y)=0 |
| virtual void | resize (int width, int height)=0 |
| virtual int | width () const |
| virtual bool | isChildWindow () const |
| virtual int | height () const |
| virtual int | pixelRatio () const |
| virtual float | pixelRatioF () const |
| virtual int | physicalDpiX () const |
| virtual int | physicalDpiY () const |
| virtual const DtWindowConfiguration & | configuration () const |
| virtual bool | tick () |
| virtual DtChannelManager & | channelManager () |
| virtual const DtChannelManager & | channelManager () const |
| virtual DtChannel * | findChannel (const std::string &name) |
| DtDe & | de () |
| virtual void | toggleFullScreen () |
| virtual bool | isFullScreen () const |
| virtual int | screenNumber () const |
Static Public Member Functions | |
| static osg::GraphicsContext::Traits * | createDefaultTraits () |
Protected Member Functions | |
| DtOsgWindow (DtDe &de, DtWindowConfiguration &wc) | |
| virtual void | renderText (int x, int y, const std::string &text) |
Static Protected Member Functions | |
| static void | setUpAntiAliasingLevels (osg::GraphicsContext::Traits &traits, unsigned short level) |
Protected Attributes | |
| osg::ref_ptr < osg::GraphicsContext > | myContext |
Protected Attributes inherited from makVrv::DtWindow | |
| DtDe & | myDe |
| DtChannelManager * | myChannelManager |
| DtWindowConfiguration & | myWindowConfiguration |
| bool | myIsChildWindow |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtWindow | |
| boost::signalslib::signal < void(bool)> | signal_fullScreenModeChanged |
| boost::signalslib::signal < void(float)> | signal_pixelRatioChanged |
|
virtual |
DTOR.
|
protected |
CTOR.
|
virtual |
Get the OSG Graphics Context for the window.
|
virtual |
Get the const OSG Graphics Context for the window.
|
virtual |
Get if the.
Implements makVrv::DtWindow.
Reimplemented in DtEmbeddedMfcOsgWindow, makVrv::DtDeMainWindowEmbeddedOsgWindow, and makVrv::DtOsgWindowQt.
Called when the size of the window has changed. This is necessary since often the window system will allow the use to resize a window.
Implements makVrv::DtWindow.
Reimplemented in DtEmbeddedMfcOsgWindow.
|
static |
Create a set of traits which are the default shared traits.
| void makVrv::DtOsgWindow::adjustPerspective | ( | ) |
|
virtual |
Called every tick by the renderer on windows with no channels.
Reimplemented from makVrv::DtWindow.
|
protectedvirtual |
Write some text on the screen using glut. For displaying messages when there are no channels. x and y are specified with the origin in the center of the screen, with positive x to the right and positive y up.
|
staticprotected |
|
protected |