VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtOsgWindowManager Class Reference

Owns and manages OpenSceneGraph windows. More...

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

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 & getOrCreateViewer ()
 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.
- Public Member Functions inherited from makVrv::DtWindowManager
virtual ~DtWindowManager ()
 DTOR.
virtual void realizeConfiguration ()
 Realize the current configuration.
virtual bool addWindow (const std::string &displayName, const DtWindowConfiguration &wc)
 Create a New window.
virtual bool destroyWindow (const std::string &displayName, const std::string &windowName)
 Remove a window from the manager.
virtual bool modifyWindow (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &config)
 Modify a window.
DtWindowfindWindow (const std::string &name)
 Find a window by name.
virtual WindowListwindows ()
 Get the window list.
virtual const WindowListwindows () const
 Get the window list.
virtual void addWindow (DtWindow *window)
 Add window to the manager.
virtual void forEachWindow (WindowFunction &perWindowFunction)
 Execute a function on each window in the manager.
virtual void forEachChannel (ChannelFunction &perChannelFunction)
 Execute a function on each channel in the manager.

Protected Attributes

osgViewer::CompositeViewer * myViewer
osg::Timer_t myStartTime
- Protected Attributes inherited from makVrv::DtWindowManager
DtDemyDe
 Protected members.
DtWindowManagerSignalermySignaler
DtWindowConfigurationsmyWindowConfigurations
WindowList myWindowList
DtWindowProctormyWindowProctor
DtChannelProctormyChannelProctor
unsigned int myExternalContextCount

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowManager
typedef std::list< DtWindow * > WindowList
typedef boost::function< void(DtWindow *)> WindowFunction
 Function type that runs on a window object.
typedef boost::function< void(DtChannel *)> ChannelFunction
 Function type that runs on a channel object.
- Protected Member Functions inherited from makVrv::DtWindowManager
 DtWindowManager (DtDe &de, DtWindowConfigurations &)
 CTOR.
virtual DtWindowrealizeWindowConfiguration (DtWindowConfiguration &wc)
 Realize a window configuration which already is in the configuration tree.
virtual void destroyWindows ()
 Destroy all windows.

Detailed Description

Owns and manages OpenSceneGraph windows.

Constructor & Destructor Documentation

makVrv::DtOsgWindowManager::DtOsgWindowManager ( DtDe de,
DtWindowConfigurations configs 
)

CTOR.

virtual makVrv::DtOsgWindowManager::~DtOsgWindowManager ( )
virtual

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::getOrCreateViewer ( )

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.

bool makVrv::DtOsgWindowManager::makeContextCurrent ( )

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.

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 Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)