VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | 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]

List of all members.

Public Member Functions

virtual ~DtOsgWindow ()
 DTOR.
virtual osg::GraphicsContext * graphicsContext ()
 Get the 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.

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.

Protected Attributes

osg::ref_ptr
< osg::GraphicsContext > 
myContext

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.

CTOR.


Member Function Documentation

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

Get the 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.

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 
) [protected, virtual]

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.


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 Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)