VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtOsgWindow Class Reference

A basic OSG display window, used to get the osg context for a display window.

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

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 DtChannelManagerchannelManager ()
 
virtual const DtChannelManagerchannelManager () const
 
virtual DtChannelfindChannel (const std::string &name)
 
DtDede ()
 
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)
 

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
DtDemyDe
 
DtChannelManagermyChannelManager
 
DtWindowConfigurationmyWindowConfiguration
 
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
 

Constructor & Destructor Documentation

virtual makVrv::DtOsgWindow::~DtOsgWindow ( )
virtual

DTOR.

makVrv::DtOsgWindow::DtOsgWindow ( DtDe de,
DtWindowConfiguration wc 
)
protected

CTOR.

Member Function Documentation

virtual osg::GraphicsContext* makVrv::DtOsgWindow::graphicsContext ( )
virtual

Get the OSG Graphics Context for the window.

virtual const osg::GraphicsContext* makVrv::DtOsgWindow::graphicsContext ( ) const
virtual

Get the const OSG Graphics Context for the window.

virtual bool makVrv::DtOsgWindow::isValid ( ) const
virtual
virtual void makVrv::DtOsgWindow::sizeChanged ( int  width,
int  height 
)
virtual

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 osg::GraphicsContext::Traits* makVrv::DtOsgWindow::createDefaultTraits ( )
static

Create a set of traits which are the default shared traits.

void makVrv::DtOsgWindow::adjustPerspective ( )
virtual void makVrv::DtOsgWindow::clearEmptyWindow ( const std::string &  messageLine1,
const std::string &  messageLine2,
const std::string &  messageLine3 
)
virtual

Called every tick by the renderer on windows with no channels.

Reimplemented from makVrv::DtWindow.

static void makVrv::DtOsgWindow::setUpAntiAliasingLevels ( osg::GraphicsContext::Traits &  traits,
unsigned short  level 
)
staticprotected

Member Data Documentation

osg::ref_ptr<osg::GraphicsContext> makVrv::DtOsgWindow::myContext
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)