VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCigiViewController.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2017 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCigi/vrvCigi.h>
13 #include <vrvCore/DtUniqueID.h>
15 
18 
19 #include <string>
20 #include <map>
21 #include <set>
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtChannelConfiguration;
27 
28  class DtCigiDriver;
29  class DtCigiConnection;
30 
34  {
35  public:
36 
38  {
39  CigiAttachTypeTether = 252,
40  CigiAttachTypeMimic = 253,
41  CigiAttachTypeFollow = 254,
42  CigiAttachTypeTrack = 255
43  };
44 
47  {
48  int groupId;
49  std::string observerMode;
51  float zNear;
53  float zFar;
55  float left;
57  float right;
58  bool topEnabled;
59  float top;
61  float bottom;
62  };
63 
66  {
67  float xOffset;
68  float yOffset;
69  float zOffset;
70  float roll;
71  float pitch;
72  float yaw;
73  };
74 
77  {
79  int groupId;
85  bool yawEnabled;
87  };
88 
90 
91  typedef std::set<int> DtViewGroup;
92  typedef std::map<int, DtViewGroup> GroupIdToGroupMap;
93  typedef std::map<int, DtViewControlPosition> ViewIdToPositionMap;
94 
96  virtual ~DtCigiViewController();
97 
99  virtual std::string viewIdKeyword(int viewId);
100 
102 
103  virtual const ViewIdToPositionMap& viewIdToPositionMap() const;
104  virtual ViewIdToPositionMap& viewIdToPositionMap();
106 
108 
109  virtual const GroupIdToGroupMap& groupIdToGroupMap() const;
110  virtual GroupIdToGroupMap& groupIdToGroupMap();
112 
113  protected:
114 
116  DtCigiViewController(DtDe& de, DtCigiConnection& connection);
117 
119  virtual void modifyConfiguration(const std::string& displayName,
120  const std::string& windowName, const std::string& channelName,
121  const DtChannelConfiguration& config);
122 
124  virtual bool retrieveConfiguration(int viewId, std::string& displayName,
125  std::string& windowName, std::string& channelName, DtChannelConfiguration& config);
126 
128  virtual void attachObserver(int viewId, const DtViewControlAction& action,
130 
132  virtual DtViewControlPosition viewControlPosition(int viewId, const DtViewControlAction& action);
133 
135  virtual void addViewToGroup(int viewId, int groupId);
136 
138  virtual void slot_onViewDefinitionReceived(int viewId,
140 
142  virtual void performSetViewDefinition(int viewId,
144 
146  virtual void slot_onViewControlReceived(int viewId,
148 
150  virtual void performSetViewControl(int viewId,
152 
153  protected:
154 
158 
161  };
162 
166  {
167  public:
170 
172  virtual ~DtCigiViewControllerCreator();
173 
175  static DtCigiViewControllerCreator& instance( DtDe& de );
176 
178  virtual DtCigiViewController* create( DtCigiConnection& connection ) const;
179 
180  protected:
182  };
183 }
184 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)