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

Owns and manages OpenSceneGraph windows. More...

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

Public Member Functions

 DtOsgWindowManager (DtDe &de, DtWindowConfigurations &configs)
 CTOR. More...
 
virtual ~DtOsgWindowManager ()
 DTOR. More...
 
virtual bool tick ()
 Check each window to verify it is still open. More...
 
virtual void destroyWindow (DtWindow *window)
 Override a window and delete the viewer if no windows are available. More...
 
osgViewer::CompositeViewer & getOrCreateViewer ()
 Get the composite viewer. More...
 
virtual bool isVisibleAndCloseToCamera (float sphereRadius, float sphereCenterX, float sphereCenterY, float sphereCenterZ, float distance, float upX, float upY, float upZ) const
 Check whether a sphere is within some distance of and visible from some local camera. More...
 
bool makeContextCurrent ()
 Attempt to make a context current. More...
 
int maxTextureUnits () const
 Attempt to return the maximum number of texture units available. More...
 
void setIncrementalCompileOption (bool enable)
 Enables or Disables ICO for this view and all channels. More...
 
- Public Member Functions inherited from makVrv::DtWindowManager
virtual ~DtWindowManager ()
 DTOR. More...
 
virtual void realizeConfiguration ()
 Realize the current configuration. More...
 
virtual bool addWindow (const std::string &displayName, const DtWindowConfiguration &wc)
 Create a New window. More...
 
virtual bool destroyWindow (const std::string &displayName, const std::string &windowName)
 Remove a window from the manager. More...
 
virtual bool modifyWindow (const std::string &displayName, const std::string &windowName, const DtWindowConfiguration &config)
 Modify a window. More...
 
DtWindowfindWindow (const std::string &name)
 Find a window by name. More...
 
virtual WindowListwindows ()
 Get the window list. More...
 
virtual const WindowListwindows () const
 Get the window list. More...
 
virtual void addWindow (DtWindow *window)
 Add window to the manager. More...
 
virtual void forEachWindow (const WindowFunction &perWindowFunction)
 Execute a function on each window in the manager. More...
 
virtual void forEachChannel (const ChannelFunction &perChannelFunction)
 Execute a function on each channel in the manager. More...
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from makVrv::DtWindowManager
typedef std::list< DtWindow * > WindowList
 
typedef boost::function< void(DtWindow *)> WindowFunction
 Function type that runs on a window object. More...
 
typedef boost::function< void(DtChannel *)> ChannelFunction
 Function type that runs on a channel object. More...
 
- Protected Member Functions inherited from makVrv::DtWindowManager
 DtWindowManager (DtDe &de, DtWindowConfigurations &)
 CTOR. More...
 
virtual DtWindowrealizeWindowConfiguration (DtWindowConfiguration &wc)
 Realize a window configuration which already is in the configuration tree. More...
 
virtual void destroyWindows ()
 Destroy all windows. More...
 

Detailed Description

Owns and manages OpenSceneGraph windows.

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 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.

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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)