VR-Forces 4.3 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) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtObserverViewsWidgetLogic.h,v $ $Revision: 1.12 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtObserverViewsWidgetInterface;
22  class DtObserver;
23  class DtInputDriver;
24 
29  {
30 
31  public:
32 
34  static DtObserverViewsWidgetLogic* create(DtDe& de,
36 
38  virtual ~DtObserverViewsWidgetLogic();
39 
41  virtual void setCurrentObserver( const std::string& observerName );
42  virtual void setCurrentObserver( DtObserver* );
43 
46  virtual void captureAndAddObserverView();
47 
49  virtual void setObserverView(const std::string&);
50 
52  virtual void clearObserverViews();
53 
55  virtual void saveObserverStateRecords(const std::string& filename);
56 
58  virtual void saveObserverStateRecord(const std::string& filename, const std::string& record);
59 
61  virtual void deleteView(const std::string&);
62 
66  virtual void loadObserverStateRecords(const std::string&);
67 
70  virtual void loadAndSetObserverState(const std::string&);
71 
74  virtual bool renameObserverRecord(const std::string& newName, const std::string& oldName);
75 
76  protected:
77  virtual void slot_activate(DtDe* subject);
78  virtual void slot_deactivate(DtDe* subject);
79 
80  virtual void onObserverAboutToBeDestroyed( DtInputDriver* inputDriver,
81  DtObserver* observer );
82  virtual void onCurrentObserverChanged( DtInputDriver* inputDriver, DtObserver* observer );
83  virtual void onInputDriverCreated( DtInputDriver* inputDriver );
84  virtual void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
85 
86  protected:
89  virtual void processEnableState();
90 
93  virtual std::string generateName(const makArchives::DtObserverStateRecord&) const;
94 
96  virtual void loadObserverStateRecords(const std::string&, makArchives::DtObserverStateRecordsList&) const;
97 
100  virtual void loadObserverStateRecords(const std::string&, bool setObservers);
101 
102  protected:
103 
106 
107  protected:
108 
113 
115  };
116 }
117 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)