10 #ifndef vtkSMSession_h 11 #define vtkSMSession_h 50 virtual const char*
GetURI() {
return "builtin:"; }
66 virtual int GetNumberOfProcesses(vtkTypeUInt32 servers);
73 virtual bool IsMPIInitialized(vtkTypeUInt32 servers);
83 RENDERING_NOT_AVAILABLE = 0x00,
84 RENDERING_UNIFIED = 0x01,
85 RENDERING_SPLIT = 0x02
95 virtual unsigned int GetRenderClientMode();
193 static vtkIdType ConnectToRemote(
const char* hostname,
int port,
int timeout,
bool (*callback)(),
233 const char* dshost,
int dsport,
const char* rshost,
int rsport,
int timeout = 60)
238 static vtkIdType ConnectToRemote(
const char* dshost,
int dsport,
const char* rshost,
int rsport,
261 static vtkIdType ReverseConnectToRemote(
int dsport,
int rsport,
int timeout,
bool (*callback)(),
272 static void Disconnect(
vtkIdType sessionid);
281 bool initialize_during_constructor =
true,
vtkPVSessionCore* preExistingSessionCore =
nullptr);
294 virtual void Initialize();
virtual const char * GetURI()
Return the URL that define where the session is connected to.
void NotifyAllClients(const vtkSMMessage *msg) override
Sends the message to all clients.
bool GetIsAlive() override
Builtin session is always alive.
void NotifyOtherClients(const vtkSMMessage *) override
Sends the message to all but the active client-session.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void PushState(vtkSMMessage *msg)
Push the state message.
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call...
vtkSMSession is the default ParaView session.
void PrintSelf(ostream &os, vtkIndent indent) override
Class used to broadcast message from one client to the others.
vtkPVSessionCore is used by vtkSMSession.
virtual void PreDisconnection()
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
static vtkIdType ReverseConnectToRemoteWithTimeout(int port, int timeout)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds...
vtkSMProxyLocator * ProxyLocator
static vtkIdType ReverseConnectToRemoteWithTimeout(int dsport, int rsport, int timeout)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds...
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
vtkSMStateLocator * StateLocator
static vtkIdType ConnectToRemote(const char *hostname, int port, int timeout=60)
These are static helper methods that help create standard ParaView sessions.
is used to locate proxies referred to in state xmls while loading state files.
static vtkIdType ConnectToRemote(const char *dshost, int dsport, const char *rshost, int rsport, int timeout=60)
These are static helper methods that help create standard ParaView sessions.
ServerFlags GetProcessRoles() override
Returns a ServerFlags indicate the nature of the current processes.
Abstract class used to provide the main implementation of the ParaView session methods for the follow...
vtkSMSessionProxyManager * SessionProxyManager
static vtkIdType ReverseConnectToRemote(int port)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds...
static vtkIdType ReverseConnectToRemote(int dsport, int rsport)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds...
ConnectionResult
Possible result of connection when creating a new connection CONNECTION_SUCCESS: Connection was suces...
Class used to retrieve a given message state based on its GlobalID.