VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
makVrv::DtOsgWindowManager Class Reference

Owns and manages OpenSceneGraph windows. More...

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

List of all members.

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

Detailed Description

Owns and manages OpenSceneGraph windows.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual bool makVrv::DtOsgWindowManager::tick ( ) [virtual]

Check each window to verify it is still open.

Return values:
falseis 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.

Attempt to return the maximum number of texture units available.

Reimplemented from makVrv::DtWindowManager.


Member Data Documentation

osgViewer::CompositeViewer* makVrv::DtOsgWindowManager::myViewer [protected]
osg::Timer_t makVrv::DtOsgWindowManager::myStartTime [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)