VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtGlStudioDriver.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvGlStudio/DtGlStudio.h>
14 
15 #include <vrvCore/DtDriver.h>
16 
17 #include <string>
18 #include <map>
19 
20 namespace makVrv
21 {
22 
23  class DtAttachManager;
24  class DtObserver;
25  class DtDe;
26 
30  {
31  public:
33  DtGlStudioDriver(DtAgentManager& agentManager,
34  const std::string& instanceName);
35 
37  virtual ~DtGlStudioDriver();
38 
40  virtual const std::string& className() const;
41 
42  virtual void hideEntity(DtObserver* obs);
43  virtual void unHideEntity(DtObserver* obs);
44 
48  virtual void setAttachmentHas3DCockpit(DtObserver* obs, bool cockpit);
49 
53  virtual void realizeCockpit(DtObserver* obs,
54  const std::string& modelDefinition = "");
55 
56  protected:
57 
60  virtual bool onStart();
61 
64  virtual bool onStop();
65 
67  virtual bool onTick();
68 
70  // loaded /displayed
71  virtual void handleAttachChange(DtObserver* obs);
72 
74  virtual void handleObserverDestroyed(DtObserver* observer);
75 
77  virtual void handleObserverCreated(DtObserver* observer);
78 
81  virtual void handleEnableStateChanged( bool enabled );
82 
84  virtual void unrealizeCockpit(DtObserver* obs);
85 
87  virtual DtUniqueID findAttachedSimObject(DtObserver* obs);
88 
89  protected:
90 
91  typedef std::map<DtObserver*, DtUniqueID> DtObserverAttachmentMap;
93  std::string myClassName;
96  };
97 
101  {
102  public:
103 
106 
108  virtual ~DtGlStudioDriverCreator();
109 
112  virtual const std::string& extension() const;
113 
115  virtual DtDriver* create(DtAgentManager& agentManager, const std::string& instanceName) const;
116 
117  protected:
118  std::string myFileExtension;
119  };
120 
121 } //makVrv::

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)