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

Component which knows how to make windows. More...

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

List of all members.

Public Types

typedef std::list< DtWindow * > WindowList

Public Member Functions

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 destroyWindow (DtWindow *window)
 Remove a window from the manager.
virtual bool tick ()
 Check each window to verify it is still open.
virtual bool isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const =0
 Check whether a sphere is within some distance of and visible from some local camera.
virtual int maxTextureUnits () const
 Returns the maximum number of texture units available. Default is 8.

Protected Member Functions

 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.

Protected Attributes

DtDemyDe
 Protected members.
DtWindowManagerSignalermySignaler
DtWindowConfigurationsmyWindowConfigurations
WindowList myWindowList
DtWindowProctormyWindowProctor
DtChannelProctormyChannelProctor
unsigned int myExternalContextCount

Detailed Description

Component which knows how to make windows.


Member Typedef Documentation


Constructor & Destructor Documentation

DTOR.

CTOR.

Exceptions:
DtInvalidInputif the channel manager is null.

Member Function Documentation

Realize the current configuration.

virtual bool makVrv::DtWindowManager::addWindow ( const std::string &  displayName,
const DtWindowConfiguration wc 
) [virtual]

Create a New window.

Add window to the manager.

Exceptions:
DtInvalidInputif the type is unknown. Emits signal_realizedViewAdded
virtual bool makVrv::DtWindowManager::destroyWindow ( const std::string &  displayName,
const std::string &  windowName 
) [virtual]

Remove a window from the manager.

Emits signal_realizedViewDestroyed

virtual bool makVrv::DtWindowManager::modifyWindow ( const std::string &  displayName,
const std::string &  windowName,
const DtWindowConfiguration config 
) [virtual]

Modify a window.

Only changes the following window attributes: Name, size. No channels will be changed via this call.

DtWindow* makVrv::DtWindowManager::findWindow ( const std::string &  name)

Find a window by name.

Get the window list.

virtual const WindowList& makVrv::DtWindowManager::windows ( ) const [virtual]

Get the window list.

virtual void makVrv::DtWindowManager::addWindow ( DtWindow window) [virtual]

Add window to the manager.

Manager will delete this window when it's destroyed.

virtual void makVrv::DtWindowManager::destroyWindow ( DtWindow window) [virtual]

Remove a window from the manager.

Reimplemented in makVrv::DtOsgWindowManager.

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

Check each window to verify it is still open.

Return values:
falseis the the window should stop running.

Reimplemented in makVrv::DtOsgWindowManager.

virtual bool makVrv::DtWindowManager::isVisibleAndCloseToCamera ( float  sphereRadius,
float  sphereCenterX,
float  sphereCenterY,
float  sphereCenterZ,
float  distance,
float  upX,
float  upY,
float  upZ 
) const [pure virtual]

Check whether a sphere is within some distance of and visible from some local camera.

Implemented in makVrv::DtOsgWindowManager.

virtual int makVrv::DtWindowManager::maxTextureUnits ( ) const [virtual]

Returns the maximum number of texture units available. Default is 8.

Reimplemented in makVrv::DtOsgWindowManager.

Realize a window configuration which already is in the configuration tree.

Gives ownership of config, to the DtIgView.

virtual void makVrv::DtWindowManager::destroyWindows ( ) [protected, virtual]

Destroy all windows.


Member Data Documentation

Protected members.


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)