22 #ifndef vtkSMSession_h 23 #define vtkSMSession_h 25 #include "vtkPVServerManagerCoreModule.h" 27 #include "vtkSmartPointer.h" 42 void PrintSelf(ostream& os, vtkIndent indent);
63 virtual const char*
GetURI() {
return "builtin:"; }
79 virtual int GetNumberOfProcesses(vtkTypeUInt32 servers);
86 virtual bool IsMPIInitialized(vtkTypeUInt32 servers);
96 RENDERING_NOT_AVAILABLE = 0x00,
97 RENDERING_UNIFIED = 0x01,
98 RENDERING_SPLIT = 0x02
108 virtual unsigned int GetRenderClientMode();
175 static vtkIdType ConnectToCatalyst();
183 static vtkIdType ConnectToSelf();
191 static vtkIdType ConnectToRemote(
const char* hostname,
int port);
204 static vtkIdType ReverseConnectToRemote(
int port,
bool (*callback)());
213 static vtkIdType ConnectToRemote(
const char* dshost,
int dsport,
const char* rshost,
int rsport);
226 static vtkIdType ReverseConnectToRemote(
int dsport,
int rsport,
bool (*callback)());
235 static void Disconnect(vtkIdType sessionid);
245 vtkGetMacro(IsAutoMPI,
bool);
253 bool initialize_during_constructor =
true,
vtkPVSessionCore* preExistingSessionCore = NULL);
259 static vtkIdType ConnectToRemoteInternal(
const char* hostname,
int port,
bool is_auto_mpi);
271 virtual void Initialize();
288 void operator=(const
vtkSMSession&) VTK_DELETE_FUNCTION;
virtual const char * GetURI()
Return the URL that define where the session is connected to.
virtual bool GetIsAlive()
Builtin session is always alive.
virtual void PushState(vtkSMMessage *msg)
Push the state message.
virtual ServerFlags GetProcessRoles()
Returns a ServerFlags indicate the nature of the current processes.
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call...
vtkSMSession is the default ParaView session.
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...
vtkSMProxyLocator * ProxyLocator
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
vtkSMStateLocator * StateLocator
void PrintSelf(ostream &os, vtkIndent indent)
is used to locate proxies referred to in state xmls while loading state files.
virtual void NotifyAllClients(const vtkSMMessage *msg)
Sends the message to all clients.
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.
static vtkIdType ReverseConnectToRemote(int dsport, int rsport)
Same as ConnectToRemote() except that it waits for a reverse connection.
Class used to retreive a given message state based on its GlobalID.
virtual void NotifyOtherClients(const vtkSMMessage *)
Sends the message to all but the active client-session.