VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStealthControlWidgetLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <vrvCoreQt/vrvCoreQt.h>
11 #include <vrvCore/DtObserver.h>
13 
14 namespace makVrv
15 {
16  class DtDe;
17  class DtStealthControlWidgetInterface;
18  class DtInputDriver;
19  class DtObserver;
20 
25  {
26 
27  public:
28 
30  static DtStealthControlWidgetLogic* create(DtDe& de,
32 
34  virtual ~DtStealthControlWidgetLogic();
35 
37  void setCurrentObserver( const std::string& displayName,
38  const DtUniqueID& id );
39 
42  void onObserverCreationRequested(const std::string& observerName);
43 
46  void onObserverDeletionRequested(const std::string& observerName);
47 
48  DtObserver* currentObserver();
49 
51  virtual void setAutoHide(bool);
52 
53  bool autoHide() const;
54 
55  protected:
56 
59 
61  void onInputDriverCreated( DtInputDriver* inputDriver );
62 
64  void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
65 
67  void onObserverCreated( DtInputDriver* inputDriver,
68  DtObserver* observer );
69 
71  void onObserverAboutToBeDestroyed( DtInputDriver* inputDriver,
72  DtObserver* observer );
73 
74  void onCurrentObserverChanged( DtInputDriver* inputDriver,
75  DtObserver* observer );
76 
77  virtual void slot_activate(DtDe* subject);
78 
79  virtual void slot_deactivate(DtDe* subject);
80 
82  virtual void checkVisibility();
83 
84  protected:
85 
89  std::string myCurrentObserverName;
90  bool myAutoHide;
91  };
92 }
Contains makVrv::DtSubjectObserver class.
DtInputDriver * myInputDriver
Definition: DtStealthControlWidgetLogic.h:88
bool myAutoHide
Definition: DtStealthControlWidgetLogic.h:90
The logic for controlling and updating the makVrv::DtStealthControlWidget.
Definition: DtStealthControlWidgetLogic.h:24
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
DtStealthControlWidgetInterface * myInterface
Definition: DtStealthControlWidgetLogic.h:87
std::string myCurrentObserverName
Definition: DtStealthControlWidgetLogic.h:89
A facade for a DtObserverObject.
Definition: DtObserver.h:37
Contains makVrv::DtObserver class.
This class&#39;s main responsibility is to handle keyboard and mouse events from OSG (Qt events are route...
Definition: DtInputDriver.h:43
Abstract interface for the stealth control widget.
Definition: DtStealthControlWidgetInterface.h:23
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:70
DtDe & myDe
Definition: DtStealthControlWidgetLogic.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)