39 #ifndef vtkSMCollaborationManager_h 40 #define vtkSMCollaborationManager_h 54 static vtkTypeUInt32 GetReservedGlobalID();
79 virtual void PromoteToMaster(
int clientId);
85 virtual void FollowUser(
int clientId);
90 int GetFollowedUser();
95 virtual bool IsMaster();
100 virtual int GetMasterId();
105 bool GetDisableFurtherConnections();
110 virtual int GetUserId();
116 virtual int GetUserId(
int index);
121 virtual const char* GetUserLabel(
int userID);
126 virtual void SetUserLabel(
const char* userName);
131 virtual void SetUserLabel(
int userId,
const char* userName);
137 virtual int GetNumberOfConnectedClients();
142 void UpdateUserInformations();
148 int GetServerConnectID();
157 CollaborationNotification = 12345,
158 UpdateUserName = 12346,
159 UpdateUserList = 12347,
160 UpdateMasterUser = 12348,
161 FollowUserCamera = 12349,
162 CameraChanged = 12350,
163 LastMessageUpdated = 12351
186 void DisableFurtherConnections(
bool disable);
192 void SetConnectID(
int connectID);
198 const char* GetLastReceivedMessage()
const;
213 vtkInternal* Internal;
218 #endif // #ifndef vtkSMCollaborationManager_h
void SetSession(vtkSMSession *) override
Override the SetSession so if the object already have an ID we automatically register it to the assoc...
virtual void LoadState(const vtkSMMessage *msg, vtkSMProxyLocator *locator)
This method is used to initialise the object to the given state If the definitionOnly Flag is set to ...
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Class used to broadcast message from one client to the others.
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
virtual const vtkSMMessage * GetFullState()
This method return the full object state that can be used to create that object from scratch...
is used to locate proxies referred to in state xmls while loading state files.
baseclass for all proxy-objects that have counter parts on server as well as client processes...
virtual vtkTypeUInt32 GetGlobalID()
Get the global unique id for this object.
static vtkSMSessionObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override