VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtStealthControlWidgetLogic.h,v $ $Revision: 1.19 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <vrvCore/DtObserver.h>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtStealthControlWidgetInterface;
21  class DtInputDriver;
22  class DtObserver;
23 
28  {
29 
30  public:
31 
33  static DtStealthControlWidgetLogic* create(DtDe& de,
35 
37  virtual ~DtStealthControlWidgetLogic();
38 
40  void setCurrentObserver( const std::string& displayName,
41  const DtUniqueID& id );
42 
45  void onObserverCreationRequested(const std::string& observerName);
46 
49  void onObserverDeletionRequested(const std::string& observerName);
50 
51  DtObserver* currentObserver();
52 
54  virtual void setAutoHide(bool);
55 
56  bool autoHide() const;
57 
58  protected:
59 
62 
64  void onInputDriverCreated( DtInputDriver* inputDriver );
65 
67  void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
68 
70  void onObserverCreated( DtInputDriver* inputDriver,
71  DtObserver* observer );
72 
74  void onObserverAboutToBeDestroyed( DtInputDriver* inputDriver,
75  DtObserver* observer );
76 
77  void onCurrentObserverChanged( DtInputDriver* inputDriver,
78  DtObserver* observer );
79 
80  virtual void slot_activate(DtDe* subject);
81 
82  virtual void slot_deactivate(DtDe* subject);
83 
85  virtual void checkVisibility();
86 
87  protected:
88 
92  std::string myCurrentObserverName;
93  bool myAutoHide;
94  };
95 }
Contains makVrv::DtSubjectObserver class.
DtInputDriver * myInputDriver
Definition: DtStealthControlWidgetLogic.h:91
bool myAutoHide
Definition: DtStealthControlWidgetLogic.h:93
The logic for controlling and updating the makVrv::DtStealthControlWidget.
Definition: DtStealthControlWidgetLogic.h:27
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
DtStealthControlWidgetInterface * myInterface
Definition: DtStealthControlWidgetLogic.h:90
std::string myCurrentObserverName
Definition: DtStealthControlWidgetLogic.h:92
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:44
Abstract interface for the stealth control widget.
Definition: DtStealthControlWidgetInterface.h:26
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtStealthControlWidgetLogic.h:89

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)