VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtWindowManager Class Referenceabstract

Component which knows how to make windows.

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

Public Types

typedef std::list< DtWindow * > WindowList
 
typedef std::function< void(DtWindow *)> WindowFunction
 
typedef std::function< void(DtChannel *)> ChannelFunction
 

Public Member Functions

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)
 
DtWindowfindWindow (const std::string &name)
 
virtual WindowListwindows ()
 
virtual const WindowListwindows () const
 
virtual void addWindow (DtWindow *window)
 
virtual void destroyWindow (DtWindow *window)
 
virtual void preChannelManagersTick ()=0
 
virtual bool tick ()
 
virtual bool isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const =0
 
virtual int maxTextureUnits () const
 
virtual void forEachWindow (const WindowFunction &perWindowFunction)
 
virtual void forEachChannel (const ChannelFunction &perChannelFunction)
 
virtual void setIncrementalCompileOption (bool enable)=0
 
virtual void setMaxPagedLOD (unsigned int lod)=0
 
virtual std::vector< DtChannel * > findChannelsWithObserverName (const std::string &obsName)
 

Protected Member Functions

 DtWindowManager (DtDe &de, DtWindowConfigurations &)
 
virtual DtWindowrealizeWindowConfiguration (DtWindowConfiguration &wc)
 
virtual void destroyWindows ()
 
virtual void flush (DtWindow *window, bool lastWindow)=0
 

Protected Attributes

DtDemyDe
 
DtWindowManagerSignalermySignaler
 
DtWindowConfigurationsmyWindowConfigurations
 
WindowList myWindowList
 
DtWindowProctormyWindowProctor
 
DtChannelProctormyChannelProctor
 
unsigned int myExternalContextCount
 

Member Typedef Documentation

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

Function type that runs on a window object.

typedef std::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 void makVrv::DtWindowManager::preChannelManagersTick ( )
pure virtual

Called once before all windows channel managers are ticked.

Implemented 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 ( const WindowFunction perWindowFunction)
virtual

Execute a function on each window in the manager.

virtual void makVrv::DtWindowManager::forEachChannel ( const 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 void makVrv::DtWindowManager::setMaxPagedLOD ( unsigned int  lod)
pure virtual

Sets the maximum number of pages the database pager will keep in memory at any given time.

Implemented in makVrv::DtOsgWindowManager.

virtual std::vector<DtChannel*> makVrv::DtWindowManager::findChannelsWithObserverName ( const std::string &  obsName)
virtual

Find channels that have a particular observer.

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.

virtual void makVrv::DtWindowManager::flush ( DtWindow window,
bool  lastWindow 
)
protectedpure virtual

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.

Parameters
window- the window being destroyed
lastWindow- true if the window is the only one left

Implemented in makVrv::DtOsgWindowManager.

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)