VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtObserverViewsWidgetLogic.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 #include <vrvCoreQt/vrvCoreQt.h>
14 
15 namespace makVrv
16 {
17  class DtDe;
18  class DtObserverViewsWidgetInterface;
19  class DtObserver;
20  class DtInputDriver;
21 
26  {
27 
28  public:
29 
31  static DtObserverViewsWidgetLogic* create(DtDe& de,
33 
35  virtual ~DtObserverViewsWidgetLogic();
36 
38  virtual void setCurrentObserver( const std::string& observerName );
39  virtual void setCurrentObserver( DtObserver* );
40 
43  virtual void captureAndAddObserverView();
44 
48  virtual void setObserverView(const std::string&, bool animate=false);
49 
51  virtual void clearObserverViews();
52 
54  virtual void saveObserverStateRecords(const std::string& filename);
55 
57  virtual void saveObserverStateRecord(const std::string& filename, const std::string& record);
58 
60  virtual void deleteView(const std::string&);
61 
65  virtual void loadObserverStateRecords(const std::string&);
66 
69  virtual void loadAndSetObserverState(const std::string&);
70 
73  virtual bool renameObserverRecord(const std::string& newName, const std::string& oldName);
74 
75  protected:
76  virtual void slot_activate(DtDe* subject);
77  virtual void slot_deactivate(DtDe* subject);
78 
79  virtual void onObserverAboutToBeDestroyed( DtInputDriver* inputDriver,
80  DtObserver* observer );
81  virtual void onCurrentObserverChanged( DtInputDriver* inputDriver, DtObserver* observer );
82  virtual void onInputDriverCreated( DtInputDriver* inputDriver );
83  virtual void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
84 
85  protected:
88  virtual void processEnableState();
89 
92  virtual std::string generateName(const makArchives::DtObserverStateRecord&) const;
93 
95  virtual void loadObserverStateRecords(const std::string&, makArchives::DtObserverStateRecordsList&) const;
96 
99  virtual void loadObserverStateRecords(const std::string&, bool setObservers);
100 
101  protected:
102 
105 
106  protected:
107 
113 
115  };
116 }
117 

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)