![]() |
VR-Forces 4.0.4 Class Documentation
|
A basic OSG display window, used to get the osg context for a display window. More...

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 |
A basic OSG display window, used to get the osg context for a display window.
| virtual makVrv::DtOsgWindow::~DtOsgWindow | ( | ) | [virtual] |
DTOR.
| makVrv::DtOsgWindow::DtOsgWindow | ( | DtDe & | de, |
| DtWindowConfiguration & | wc | ||
| ) | [protected] |
CTOR.
| virtual osg::GraphicsContext* makVrv::DtOsgWindow::graphicsContext | ( | ) | [virtual] |
Get the OSG Graphics Context for the window.
| virtual bool makVrv::DtOsgWindow::isValid | ( | ) | const [virtual] |
Get if the.
Implements makVrv::DtWindow.
Reimplemented in DtEmbeddedMfcOsgWindow, makVrv::DtDeMainWindowEmbeddedOsgWindow, and makVrv::DtOsgWindowQt.
| 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.
osg::ref_ptr<osg::GraphicsContext> makVrv::DtOsgWindow::myContext [protected] |