VR-Forces 5.0.3 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
makVrv::DtInsetViewObserverDestroyer Class Reference

The DtInsetViewObserverDestroyer will destroy an observer when its window is destroyed.

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

Public Member Functions

virtual ~DtInsetViewObserverDestroyer ()
 
void registerInsetViewForDestruction (const std::string &windowName, const std::string &observerName)
 
void setEnabled (bool enable)
 
bool enabled ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static
DtInsetViewObserverDestroyer
instance (DtDe &de)
 

Protected Member Functions

 DtInsetViewObserverDestroyer (DtDe &de)
 
void slot_onWindowToBeDestroyed (DtWindow *window)
 

Protected Attributes

DtDemyDe
 
std::map< std::string,
std::string > 
myObserverMap
 
bool myEnabled
 
DtSignalConnectionManager myConnections
 

Constructor & Destructor Documentation

virtual makVrv::DtInsetViewObserverDestroyer::~DtInsetViewObserverDestroyer ( )
virtual

DTOR.

makVrv::DtInsetViewObserverDestroyer::DtInsetViewObserverDestroyer ( DtDe de)
protected

CTOR.

Member Function Documentation

static DtInsetViewObserverDestroyer& makVrv::DtInsetViewObserverDestroyer::instance ( DtDe de)
static

Get an instance. Lazily create if one doesn't exist.

void makVrv::DtInsetViewObserverDestroyer::registerInsetViewForDestruction ( const std::string &  windowName,
const std::string &  observerName 
)

Register the observer to be destoryed when the window is destroyed.

void makVrv::DtInsetViewObserverDestroyer::setEnabled ( bool  enable)

Used to enable or disable this class if needed. Used to avoid destroying the observer which it should not.

bool makVrv::DtInsetViewObserverDestroyer::enabled ( )

Get the state of the enabled flag.

void makVrv::DtInsetViewObserverDestroyer::slot_onWindowToBeDestroyed ( DtWindow window)
protected

Called when a window is destroyed.

Member Data Documentation

DtDe& makVrv::DtInsetViewObserverDestroyer::myDe
protected
std::map<std::string, std::string> makVrv::DtInsetViewObserverDestroyer::myObserverMap
protected
bool makVrv::DtInsetViewObserverDestroyer::myEnabled
protected
DtSignalConnectionManager makVrv::DtInsetViewObserverDestroyer::myConnections
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)