![]() |
VR-Forces 5.0.2 Developer's Guide
|
Owns and manages OpenSceneGraph windows.

Public Member Functions | |
| DtOsgWindowManager (DtDe &de, DtWindowConfigurations &configs) | |
| virtual | ~DtOsgWindowManager () |
| virtual bool | tick () |
| virtual void | destroyWindow (DtWindow *window) |
| osgViewer::CompositeViewer & | getOrCreateViewer () |
| virtual bool | isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const |
| bool | makeContextCurrent () |
| int | maxTextureUnits () const |
| void | setIncrementalCompileOption (bool enable) |
| virtual void | setMaxPagedLOD (unsigned int lod) |
Public Member Functions inherited from makVrv::DtWindowManager | |
| virtual | ~DtWindowManager () |
| virtual void | realizeConfiguration () |
| virtual bool | addWindow (const std::string &displayName, const DtWindowConfiguration &wc) |
| virtual bool | destroyWindow (const std::string &displayName, const std::string &windowName) |
| virtual bool | modifyWindow (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &config) |
| DtWindow * | findWindow (const std::string &name) |
| virtual WindowList & | windows () |
| virtual const WindowList & | windows () const |
| virtual void | addWindow (DtWindow *window) |
| virtual void | forEachWindow (const WindowFunction &perWindowFunction) |
| virtual void | forEachChannel (const ChannelFunction &perChannelFunction) |
Protected Member Functions | |
| virtual void | flush (DtWindow *window, bool lastWindow) override |
Protected Member Functions inherited from makVrv::DtWindowManager | |
| DtWindowManager (DtDe &de, DtWindowConfigurations &) | |
| virtual DtWindow * | realizeWindowConfiguration (DtWindowConfiguration &wc) |
| virtual void | destroyWindows () |
Protected Attributes | |
| osgViewer::CompositeViewer * | myViewer |
| osg::Timer_t | myStartTime |
| bool | myIcoEnabled |
Protected Attributes inherited from makVrv::DtWindowManager | |
| DtDe & | myDe |
| DtWindowManagerSignaler & | mySignaler |
| DtWindowConfigurations & | myWindowConfigurations |
| WindowList | myWindowList |
| DtWindowProctor * | myWindowProctor |
| DtChannelProctor * | myChannelProctor |
| unsigned int | myExternalContextCount |
Additional Inherited Members | |
Public Types inherited from makVrv::DtWindowManager | |
| typedef std::list< DtWindow * > | WindowList |
| typedef boost::function< void(DtWindow *)> | WindowFunction |
| typedef boost::function< void(DtChannel *)> | ChannelFunction |
| makVrv::DtOsgWindowManager::DtOsgWindowManager | ( | DtDe & | de, |
| DtWindowConfigurations & | configs | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Check each window to verify it is still open.
| false | is the the window should stop running. |
Reimplemented from makVrv::DtWindowManager.
|
virtual |
Override a window and delete the viewer if no windows are available.
Reimplemented from makVrv::DtWindowManager.
| osgViewer::CompositeViewer& makVrv::DtOsgWindowManager::getOrCreateViewer | ( | ) |
Get the composite viewer.
|
virtual |
Check whether a sphere is within some distance of and visible from some local camera.
Implements makVrv::DtWindowManager.
| bool makVrv::DtOsgWindowManager::makeContextCurrent | ( | ) |
Attempt to make a context current. returns true if a context was made current.
|
virtual |
Attempt to return the maximum number of texture units available.
Reimplemented from makVrv::DtWindowManager.
|
virtual |
Enables or Disables ICO for this view and all channels.
Implements makVrv::DtWindowManager.
Sets the maximum number of pages the database pager will keep in memory at any given time.
Implements makVrv::DtWindowManager.
|
overrideprotectedvirtual |
This is called inside DtWindowManager::destroyWindow It is called after signal_windowToBeDestroyed has been emitted This gives opportunity for each window to do custom clean up after the slots corresponding to the signals have been executed.
| window | - the window being destroyed |
| lastWindow | - true if the window is the only one left |
Implements makVrv::DtWindowManager.
|
protected |
|
protected |
|
protected |