![]() |
VR-Forces 4.0.4 Class Documentation
|
Owns and manages OpenSceneGraph windows. More...

Public Member Functions | |
| DtOsgWindowManager (DtDe &de, DtWindowConfigurations &configs) | |
| CTOR. | |
| virtual | ~DtOsgWindowManager () |
| DTOR. | |
| virtual bool | tick () |
| Check each window to verify it is still open. | |
| virtual void | destroyWindow (DtWindow *window) |
| Override a window and delete the viewer if no windows are available. | |
| osgViewer::CompositeViewer & | createOrGetViewer () |
| Get the composite viewer. | |
| virtual bool | isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const |
| Check whether a sphere is within some distance of and visible from some local camera. | |
| bool | makeContextCurrent () |
| Attempt to make a context current. | |
| int | maxTextureUnits () const |
| Attempt to return the maximum number of texture units available. | |
Protected Attributes | |
| osgViewer::CompositeViewer * | myViewer |
| osg::Timer_t | myStartTime |
Owns and manages OpenSceneGraph windows.
| makVrv::DtOsgWindowManager::DtOsgWindowManager | ( | DtDe & | de, |
| DtWindowConfigurations & | configs | ||
| ) |
CTOR.
| virtual makVrv::DtOsgWindowManager::~DtOsgWindowManager | ( | ) | [virtual] |
DTOR.
| virtual bool makVrv::DtOsgWindowManager::tick | ( | ) | [virtual] |
Check each window to verify it is still open.
| false | is the the window should stop running. |
Reimplemented from makVrv::DtWindowManager.
| virtual void makVrv::DtOsgWindowManager::destroyWindow | ( | DtWindow * | window | ) | [virtual] |
Override a window and delete the viewer if no windows are available.
Reimplemented from makVrv::DtWindowManager.
| osgViewer::CompositeViewer& makVrv::DtOsgWindowManager::createOrGetViewer | ( | ) |
Get the composite viewer.
| virtual bool makVrv::DtOsgWindowManager::isVisibleAndCloseToCamera | ( | float | sphereRadius, |
| float | sphereCenterX, | ||
| float | sphereCenterY, | ||
| float | sphereCenterZ, | ||
| float | distance, | ||
| float | upX, | ||
| float | upY, | ||
| float | upZ | ||
| ) | const [virtual] |
Check whether a sphere is within some distance of and visible from some local camera.
Implements makVrv::DtWindowManager.
Attempt to make a context current.
returns true if a context was made current.
| int makVrv::DtOsgWindowManager::maxTextureUnits | ( | ) | const [virtual] |
Attempt to return the maximum number of texture units available.
Reimplemented from makVrv::DtWindowManager.
osgViewer::CompositeViewer* makVrv::DtOsgWindowManager::myViewer [protected] |
osg::Timer_t makVrv::DtOsgWindowManager::myStartTime [protected] |