27 #ifndef vtkSMCollaborationManager_h 28 #define vtkSMCollaborationManager_h 42 static vtkTypeUInt32 GetReservedGlobalID();
67 virtual void PromoteToMaster(
int clientId);
73 virtual void FollowUser(
int clientId);
78 int GetFollowedUser();
83 virtual bool IsMaster();
88 virtual int GetMasterId();
93 bool GetDisableFurtherConnections();
98 virtual int GetUserId();
104 virtual int GetUserId(
int index);
109 virtual const char* GetUserLabel(
int userID);
114 virtual void SetUserLabel(
const char* userName);
119 virtual void SetUserLabel(
int userId,
const char* userName);
125 virtual int GetNumberOfConnectedClients();
130 void UpdateUserInformations();
136 int GetServerConnectID();
145 CollaborationNotification = 12345,
146 UpdateUserName = 12346,
147 UpdateUserList = 12347,
148 UpdateMasterUser = 12348,
149 FollowUserCamera = 12349,
150 CameraChanged = 12350,
151 LastMessageUpdated = 12351
174 void DisableFurtherConnections(
bool disable);
180 void SetConnectID(
int connectID);
186 const char* GetLastReceivedMessage()
const;
201 vtkInternal* Internal;
206 #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