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

Owns and manages OpenSceneGraph windows.

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

Public Member Functions

 DtOsgWindowManager (DtDe &de, DtWindowConfigurations &configs)
 
virtual ~DtOsgWindowManager ()
 
virtual bool tick ()
 
virtual void destroyWindow (DtWindow *window)
 
osgViewer::CompositeViewer & getOrCreateViewer ()
 
virtual void preChannelManagersTick ()
 
virtual bool isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const
 
bool makeContextCurrent ()
 
int maxTextureUnits () const
 
void setIncrementalCompileOption (bool enable)
 
virtual void setMaxPagedLOD (unsigned int lod)
 
- Public Member Functions inherited from makVrv::DtWindowManager
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 forEachWindow (const WindowFunction &perWindowFunction)
 
virtual void forEachChannel (const ChannelFunction &perChannelFunction)
 
virtual std::vector< DtChannel * > findChannelsWithObserverName (const std::string &obsName)
 

Protected Member Functions

virtual void flush (DtWindow *window, bool lastWindow) override
 
virtual
osgViewer::ViewerBase::ThreadingModel 
toOsgThreadingModel (DtRendererThreadingModel vrvThreadingModel) const
 
virtual std::string toString (osgViewer::ViewerBase::ThreadingModel threadingModel) const
 
- Protected Member Functions inherited from makVrv::DtWindowManager
 DtWindowManager (DtDe &de, DtWindowConfigurations &)
 
virtual DtWindowrealizeWindowConfiguration (DtWindowConfiguration &wc)
 
virtual void destroyWindows ()
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowManager
typedef std::list< DtWindow * > WindowList
 
typedef std::function< void(DtWindow *)> WindowFunction
 
typedef std::function< void(DtChannel *)> ChannelFunction
 

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 void makVrv::DtOsgWindowManager::preChannelManagersTick ( )
virtual

Called once before all windows channel managers are ticked.

Implements makVrv::DtWindowManager.

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.

void makVrv::DtOsgWindowManager::setIncrementalCompileOption ( bool  enable)
virtual

Enables or Disables ICO for this view and all channels.

Implements makVrv::DtWindowManager.

virtual void makVrv::DtOsgWindowManager::setMaxPagedLOD ( unsigned int  lod)
virtual

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

Implements makVrv::DtWindowManager.

virtual void makVrv::DtOsgWindowManager::flush ( DtWindow window,
bool  lastWindow 
)
overrideprotectedvirtual

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

Implements makVrv::DtWindowManager.

virtual osgViewer::ViewerBase::ThreadingModel makVrv::DtOsgWindowManager::toOsgThreadingModel ( DtRendererThreadingModel  vrvThreadingModel) const
protectedvirtual

convert vrv threading model to osg rendering model

virtual std::string makVrv::DtOsgWindowManager::toString ( osgViewer::ViewerBase::ThreadingModel  threadingModel) const
protectedvirtual

convert osg threading model to a string

Member Data Documentation

osgViewer::CompositeViewer* makVrv::DtOsgWindowManager::myViewer
protected
osg::Timer_t makVrv::DtOsgWindowManager::myStartTime
protected
bool makVrv::DtOsgWindowManager::myIcoEnabled
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)