10 #ifndef vtkSMSession_h 11 #define vtkSMSession_h 71 virtual int GetNumberOfProcesses(vtkTypeUInt32 servers);
78 virtual bool IsMPIInitialized(vtkTypeUInt32 servers);
88 RENDERING_NOT_AVAILABLE = 0x00,
89 RENDERING_UNIFIED = 0x01,
90 RENDERING_SPLIT = 0x02
100 virtual unsigned int GetRenderClientMode();
198 static vtkIdType ConnectToRemote(
const char* hostname,
int port,
int timeout,
bool (*callback)(),
238 const char* dshost,
int dsport,
const char* rshost,
int rsport,
int timeout = 60)
243 static vtkIdType ConnectToRemote(
const char* dshost,
int dsport,
const char* rshost,
int rsport,
266 static vtkIdType ReverseConnectToRemote(
int dsport,
int rsport,
int timeout,
bool (*callback)(),
277 static void Disconnect(
vtkIdType sessionid);
286 bool initialize_during_constructor =
true,
vtkPVSessionCore* preExistingSessionCore =
nullptr);
299 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.
static const char * GetBuiltinName()
Get the URI name for the builtin session.
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.