VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtCigiViewController.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCigi/vrvCigi.h>
13 #include <vrvCore/DtUniqueID.h>
14 
16 
17 #include <string>
18 #include <map>
19 #include <set>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtChannelConfiguration;
25 
26  class DtCigiDriver;
27  class DtCigiConnection;
28 
32  {
33  public:
36  {
37  int groupId;
38  std::string observerMode;
40  float zNear;
42  float zFar;
44  float left;
46  float right;
47  bool topEnabled;
48  float top;
50  float bottom;
51  };
52 
55  {
56  float xOffset;
57  float yOffset;
58  float zOffset;
59  float roll;
60  float pitch;
61  float yaw;
62  };
63 
66  {
68  bool idIsGroup;
74  bool yawEnabled;
76  };
77 
79  DtCigiViewController(DtDe& de, DtCigiConnection& connection);
80 
82  virtual ~DtCigiViewController();
83 
84  protected:
86  virtual void modifyConfiguration(const std::string& displayName,
87  const std::string& windowName, const std::string& channelName,
88  const DtChannelConfiguration& config);
89 
91  virtual bool retrieveConfiguration(int viewId, std::string& displayName,
92  std::string& windowName, std::string& channelName, DtChannelConfiguration& config);
93 
95  virtual void attachObserver(int viewId, DtViewControlAction action);
96 
98  virtual std::string viewIdKeyword(int viewId);
99 
101  virtual DtViewControlPosition viewControlPosition(int viewId, DtViewControlAction action);
102 
104  virtual void addViewToGroup(int viewId, int groupId);
105 
107  virtual void slot_onViewDefinitionReceived(int viewId,
109 
111  virtual void performSetViewDefinition(int viewId,
113 
115  virtual void slot_onViewControlReceived(int viewId,
117 
119  virtual void performSetViewControl(int viewId,
121 
122  protected:
123  typedef std::set<int> DtViewGroup;
124 
128 
129  std::map<int, DtViewControlPosition> myViewIdToPositionMap;
130  std::map<int, DtViewGroup> myGroupIdToGroupMap;
131  };
132 }
133 

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)