8 #ifndef VR_COLLABORATION_H
9 #define VR_COLLABORATION_H
24 #include <util/coExport.h>
25 #include <util/common.h>
28 #include <vrbclient/SharedState.h>
67 void setSyncInterval();
68 std::set<int> m_sessions;
69 bool syncXform =
false;
70 bool syncScale =
false;
73 bool oldMasterStatus =
true;
74 float oldSyncInterval = -1;
75 bool oldAvatarVisibility =
true;
80 void showCollaborative(
bool visible);
86 float getSyncInterval();
90 void setSyncMode(
const char *mode);
92 void updateSharedStates(
bool force =
false);
96 bool m_visible =
false;
97 ui::Menu *m_collaborativeMenu =
nullptr;
98 ui::Group *m_partnerGroup =
nullptr;
99 ui::Button *m_showAvatar =
nullptr;
100 ui::Button *m_master =
nullptr;
101 ui::Action *m_returnToMaster =
nullptr;
102 ui::Slider *m_syncInterval =
nullptr;
103 ui::SelectionList *m_collaborationMode =
nullptr;
104 ui::Menu *menu()
const;
105 ui::Group *partnerGroup()
const;
107 bool updateCollaborativeMenu();
108 void syncModeChanged(
int mode);
117 void sessionChanged(
bool isPrivate);
118 void remoteTransform(osg::Matrix &mat);
119 void remoteScale(
float d);
bool showAvatar
Definition: coVRCollaboration.h:82
Definition: coVRCollaboration.h:59
vrb::SharedState< osg::Matrix > avatarPosition
0: LooseCoupling, 1: MasterSlaveCoupling, 2 TightCoupling
Definition: coVRCollaboration.h:84
Definition: coVRCollaboration.h:51
vrb::SharedState< int > syncMode
Definition: coVRCollaboration.h:83
Definition: coVRCollaboration.h:60
SyncMode
Definition: coVRCollaboration.h:57
vrb::SharedState< float > scaleFactor
Definition: coVRCollaboration.h:85