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 | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
makVrv::DtOsgEmptySceneLogo Class Reference

This class handles displaying a logo for a channel when the channel scene is empty. An empty scene means that no terrain is loaded. On overlay is used to hide the scene until the terrain loads.

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

Public Member Functions

 DtOsgEmptySceneLogo (DtDe &de)
 
virtual ~DtOsgEmptySceneLogo ()
 
virtual void update (DtOsgChannel &osgChannel)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static void setEnabled (bool enabled)
 
static bool enabled ()
 

Protected Member Functions

virtual void createOverlay (DtOsgChannel &osgChannel)
 
virtual void destroyOverlay (DtOsgChannel &osgChannel)
 
virtual void updateLayout (int x, int y, int w, int h)
 
virtual void slot_viewportChanged (int x, int y, int w, int h)
 

Protected Attributes

DtDemyDe
 
DtSignalConnectionManager mySignalManager
 
osg::ref_ptr< osg::Geode > myGeode
 
DtQuadProxyInterfacemyBackgroundQuad
 
DtQuadProxyInterfacemyLogoQuad
 
DtOsgTextureWrappermyLogoTexture
 
DtTextProxyInterfacemyWarnText
 

Static Protected Attributes

static bool theEnabled
 

Private Member Functions

 DtOsgEmptySceneLogo ()=delete
 
 DtOsgEmptySceneLogo (const DtOsgEmptySceneLogo &)=delete
 
DtOsgEmptySceneLogooperator= (const DtOsgEmptySceneLogo &)=delete
 

Constructor & Destructor Documentation

makVrv::DtOsgEmptySceneLogo::DtOsgEmptySceneLogo ( DtDe de)
virtual makVrv::DtOsgEmptySceneLogo::~DtOsgEmptySceneLogo ( )
virtual
makVrv::DtOsgEmptySceneLogo::DtOsgEmptySceneLogo ( )
privatedelete

not allowed

makVrv::DtOsgEmptySceneLogo::DtOsgEmptySceneLogo ( const DtOsgEmptySceneLogo )
privatedelete

not allowed

Member Function Documentation

DtOsgEmptySceneLogo& makVrv::DtOsgEmptySceneLogo::operator= ( const DtOsgEmptySceneLogo )
privatedelete

not allowed

virtual void makVrv::DtOsgEmptySceneLogo::update ( DtOsgChannel osgChannel)
virtual

This method will check to see if a terrain is active and if not, an overlay will be shown. Once a terrain becomes active, the overlay will be removed.

static void makVrv::DtOsgEmptySceneLogo::setEnabled ( bool  enabled)
static

This global method will enable or disable the use of an empty scene overlay for all uses of this class. This is meant to be used from imGui to disable the overlay for debugging purposes.

static bool makVrv::DtOsgEmptySceneLogo::enabled ( )
static

This global method returns the enabled state of an empty scene overlay for all uses of this class.

virtual void makVrv::DtOsgEmptySceneLogo::createOverlay ( DtOsgChannel osgChannel)
protectedvirtual

Called by update() when the overlay needs created. Initializes the overlay and what is displayed on it.

virtual void makVrv::DtOsgEmptySceneLogo::destroyOverlay ( DtOsgChannel osgChannel)
protectedvirtual

Called by update() when the overlay needs destroyed. Destroys the overlay and what is displayed on it.

virtual void makVrv::DtOsgEmptySceneLogo::updateLayout ( int  x,
int  y,
int  w,
int  h 
)
protectedvirtual

Updates overlay elements to fit within the given vieport.

Parameters
x- the viewport x position
y- the viewport y position
w- the viewport width
h- the viewport height
virtual void makVrv::DtOsgEmptySceneLogo::slot_viewportChanged ( int  x,
int  y,
int  w,
int  h 
)
protectedvirtual

handle the signal for when the channel viewport changes

Parameters
x- the viewport x position
y- the viewport y position
w- the viewport width
h- the viewport height

Member Data Documentation

DtDe& makVrv::DtOsgEmptySceneLogo::myDe
protected
DtSignalConnectionManager makVrv::DtOsgEmptySceneLogo::mySignalManager
protected
osg::ref_ptr<osg::Geode> makVrv::DtOsgEmptySceneLogo::myGeode
protected
DtQuadProxyInterface* makVrv::DtOsgEmptySceneLogo::myBackgroundQuad
protected
DtQuadProxyInterface* makVrv::DtOsgEmptySceneLogo::myLogoQuad
protected
DtOsgTextureWrapper* makVrv::DtOsgEmptySceneLogo::myLogoTexture
protected
DtTextProxyInterface* makVrv::DtOsgEmptySceneLogo::myWarnText
protected
bool makVrv::DtOsgEmptySceneLogo::theEnabled
staticprotected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)