VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtInsetViewObserverDestroyer.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtInsetViewObserverDestroyer_H_
11 #define DtInsetViewObserverDestroyer_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtDe.h>
15 #include <vrvCore/DtWindow.h>
16 #include <vrvCore/DtWindowManager.h>
19 
20 namespace makVrv
21 {
22 
23  class DtWindow;
24 
28  {
29 
30  public:
31 
33  static DtInsetViewObserverDestroyer& instance(DtDe& de);
34 
37 
39  void registerInsetViewForDestruction(const std::string& windowName, const std::string& observerName);
40 
42  void setEnabled(bool enable);
43 
45  bool enabled();
46 
47  protected:
48 
51 
53  void slot_onWindowToBeDestroyed(DtWindow* window);
54 
55  protected:
56 
58  std::map<std::string, std::string> myObserverMap;
59  bool myEnabled;
61  };
62 }
63 
64 #endif
65 
The DtInsetViewObserverDestroyer will destroy an observer when its window is destroyed.
Definition: DtInsetViewObserverDestroyer.h:27
Abstract Base class.
Definition: DtWindow.h:25
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains makVrv::DtDe class.
std::map< std::string, std::string > myObserverMap
Definition: DtInsetViewObserverDestroyer.h:58
Contains makVrv::DtVirtualBaseClass class.
DtSignalConnectionManager myConnections
Definition: DtInsetViewObserverDestroyer.h:60
Contains makVrv::DtIgView class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Base class to provide boost signal/slot management.
Contains makVrv::DtWindowManager class.
DtDe & myDe
Definition: DtInsetViewObserverDestroyer.h:57
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
bool myEnabled
Definition: DtInsetViewObserverDestroyer.h:59
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)