VR-Forces 4.1 Class Documentation
DtCigiViewController.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2009 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtCigiViewController.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
8 
12 
13 #ifndef DtCigiViewController_H_
14 #define DtCigiViewController_H_
15 
16 #include <vrvCigi/vrvCigi.h>
17 #include <vrvCore/DtUniqueID.h>
18 
20 
21 #include <string>
22 #include <map>
23 #include <set>
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtChannelConfiguration;
29 
30  class DtCigiDriver;
31  class DtCigiConnection;
32 
36  {
37  public:
40  {
41  int groupId;
43  float zNear;
45  float zFar;
47  float left;
49  float right;
50  bool topEnabled;
51  float top;
53  float bottom;
54  };
55 
58  {
59  float xOffset;
60  float yOffset;
61  float zOffset;
62  float roll;
63  float pitch;
64  float yaw;
65  };
66 
69  {
71  bool idIsGroup;
77  bool yawEnabled;
79  };
80 
83  DtCigiConnection& connection, bool usingThread);
84 
86  virtual ~DtCigiViewController();
87 
88  protected:
90  virtual void modifyConfiguration(const std::string& displayName,
91  const std::string& windowName, const std::string& channelName,
92  const DtChannelConfiguration& config);
93 
95  virtual bool retrieveConfiguration(int viewId, std::string& displayName,
96  std::string& windowName, std::string& channelName, DtChannelConfiguration& config);
97 
99  virtual void attachObserver(int viewId, DtViewControlAction action);
100 
102  virtual std::string viewIdKeyword(int viewId);
103 
105  virtual DtViewControlPosition viewControlPosition(int viewId, DtViewControlAction action);
106 
108  virtual void addViewToGroup(int viewId, int groupId);
109 
111  virtual void slot_onViewDefinitionReceived(int viewId,
113 
115  virtual void performSetViewDefinition(int viewId,
117 
119  virtual void slot_onViewControlReceived(int viewId,
121 
123  virtual void performSetViewControl(int viewId,
125 
126  protected:
127  typedef std::set<int> DtViewGroup;
128 
133 
134  std::map<int, DtViewControlPosition> myViewIdToPositionMap;
135  std::map<int, DtViewGroup> myGroupIdToGroupMap;
136  };
137 }
138 
139 #endif
140 
141 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)