VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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. More...

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

Public Member Functions

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 void setPosition (int x, int y)=0
 Set the position of the window in screen coordinates.
virtual void resize (int width, int height)=0
 Resize the window.
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 ()
virtual int screenNumber () const
 Get the screen number of the screen that this window is on.

Static Public Member Functions

static
osg::GraphicsContext::Traits * 
createDefaultTraits ()
 Create a set of traits which are the default shared traits.

Protected Member Functions

 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

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

Detailed Description

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

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

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

Reimplemented from makVrv::DtWindow.

virtual void makVrv::DtOsgWindow::renderText ( int  x,
int  y,
const std::string &  text 
)
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.

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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)