![]() |
VR-Forces Developer's Guide
|
Component which knows how to make windows.

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) |
| DtWindow * | findWindow (const std::string &name) |
| virtual WindowList & | windows () |
| virtual const WindowList & | windows () 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 DtWindow * | realizeWindowConfiguration (DtWindowConfiguration &wc) |
| virtual void | destroyWindows () |
| virtual void | flush (DtWindow *window, bool lastWindow)=0 |
| typedef std::list<DtWindow*> makVrv::DtWindowManager::WindowList |
| 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.
|
virtual |
DTOR.
|
protected |
CTOR.
| DtInvalidInput | if the channel manager is null. |
|
virtual |
Realize the current configuration.
|
virtual |
Create a New window. Add window to the manager.
| DtInvalidInput | if the type is unknown. Emits signal_realizedViewAdded |
|
virtual |
Remove a window from the manager. Emits signal_realizedViewDestroyed.
|
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 |
Get the window list.
|
virtual |
Get the window list.
|
virtual |
Add window to the manager. Manager will delete this window when it's destroyed.
|
virtual |
Remove a window from the manager.
Reimplemented in makVrv::DtOsgWindowManager.
|
pure virtual |
Called once before all windows channel managers are ticked.
Implemented in makVrv::DtOsgWindowManager.
|
virtual |
Check each window to verify it is still open.
| false | is the the window should stop running. |
Reimplemented in makVrv::DtOsgWindowManager.
|
pure virtual |
Check whether a sphere is within some distance of and visible from some local camera.
Implemented in makVrv::DtOsgWindowManager.
|
virtual |
Returns the maximum number of texture units available. Default is 8.
Reimplemented in makVrv::DtOsgWindowManager.
|
virtual |
Execute a function on each window in the manager.
|
virtual |
Execute a function on each channel in the manager.
|
pure virtual |
Sets the incremental compile options in viewer and the channels.
Implemented in makVrv::DtOsgWindowManager.
Sets the maximum number of pages the database pager will keep in memory at any given time.
Implemented in makVrv::DtOsgWindowManager.
|
virtual |
Find channels that have a particular observer.
|
protectedvirtual |
Realize a window configuration which already is in the configuration tree. Gives ownership of config, to the DtIgView.
|
protectedvirtual |
Destroy all windows.
|
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.
| window | - the window being destroyed |
| lastWindow | - true if the window is the only one left |
Implemented in makVrv::DtOsgWindowManager.
|
protected |
Protected members.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |