VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

Public Types

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.

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.
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.
virtual void setIncrementalCompileOption (bool enable)=0
 Sets the incremental compile options in viewer and the channels.

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

typedef boost::function<void (DtWindow*)> makVrv::DtWindowManager::WindowFunction

Function type that runs on a window object.

typedef boost::function<void (DtChannel*)> makVrv::DtWindowManager::ChannelFunction

Function type that runs on a channel object.

Constructor & Destructor Documentation

virtual makVrv::DtWindowManager::~DtWindowManager ( )
virtual

DTOR.

makVrv::DtWindowManager::DtWindowManager ( DtDe de,
DtWindowConfigurations  
)
protected

CTOR.

Exceptions
DtInvalidInputif the channel manager is null.

Member Function Documentation

virtual void makVrv::DtWindowManager::realizeConfiguration ( )
virtual

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.

virtual WindowList& makVrv::DtWindowManager::windows ( )
virtual

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.

virtual void makVrv::DtWindowManager::forEachWindow ( WindowFunction perWindowFunction)
virtual

Execute a function on each window in the manager.

virtual void makVrv::DtWindowManager::forEachChannel ( ChannelFunction perChannelFunction)
virtual

Execute a function on each channel in the manager.

virtual void makVrv::DtWindowManager::setIncrementalCompileOption ( bool  enable)
pure virtual

Sets the incremental compile options in viewer and the channels.

Implemented in makVrv::DtOsgWindowManager.

virtual DtWindow* makVrv::DtWindowManager::realizeWindowConfiguration ( DtWindowConfiguration wc)
protectedvirtual

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

Gives ownership of config, to the DtIgView.

virtual void makVrv::DtWindowManager::destroyWindows ( )
protectedvirtual

Destroy all windows.

Member Data Documentation

DtDe& makVrv::DtWindowManager::myDe
protected

Protected members.

DtWindowManagerSignaler& makVrv::DtWindowManager::mySignaler
protected
DtWindowConfigurations& makVrv::DtWindowManager::myWindowConfigurations
protected
WindowList makVrv::DtWindowManager::myWindowList
protected
DtWindowProctor* makVrv::DtWindowManager::myWindowProctor
protected
DtChannelProctor* makVrv::DtWindowManager::myChannelProctor
protected
unsigned int makVrv::DtWindowManager::myExternalContextCount
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)