23 #ifndef vtkProcessModule_h 24 #define vtkProcessModule_h 26 #include "vtkObject.h" 27 #include "vtkPVClientServerCoreCoreModule.h" 28 #include "vtkSmartPointer.h" 32 class vtkMultiProcessController;
44 void PrintSelf(ostream& os, vtkIndent indent);
68 DATA_SERVER_ROOT = 0x02,
70 RENDER_SERVER_ROOT = 0x08,
71 SERVERS = DATA_SERVER | RENDER_SERVER,
73 CLIENT_AND_SERVERS = DATA_SERVER | CLIENT | RENDER_SERVER
89 void UpdateProcessType(
ProcessTypes newType,
bool dontKnowWhatImDoing =
true);
100 static bool Initialize(
ProcessTypes type,
int& argc,
char**& argv);
105 static bool Finalize();
130 bool UnRegisterSession(vtkIdType sessionID);
141 vtkGetMacro(EventCallDataSessionId, vtkIdType);
180 vtkGetMacro(MultipleSessionsSupport,
bool);
181 vtkSetMacro(MultipleSessionsSupport,
bool);
182 vtkBooleanMacro(MultipleSessionsSupport,
bool);
222 vtkMultiProcessController* GetGlobalController();
227 int GetNumberOfLocalPartitions();
232 int GetPartitionId();
237 bool IsMPIInitialized();
243 vtkGetMacro(ReportInterpreterErrors,
bool);
244 vtkSetMacro(ReportInterpreterErrors,
bool);
245 vtkBooleanMacro(ReportInterpreterErrors,
bool);
254 vtkGetMacro(SymmetricMPIMode,
bool);
270 vtkSetMacro(SymmetricMPIMode,
bool);
299 void SetExecutablePath(
const std::string& path);
314 void DetermineExecutablePath(
int argc,
char** argv);
319 bool InitializePythonEnvironment();
324 static
bool FinalizeMPI;
328 static
bool FinalizePython;
331 static vtkSmartPointer<vtkMultiProcessController> GlobalController;
333 bool SymmetricMPIMode;
335 bool MultipleSessionsSupport;
337 vtkIdType EventCallDataSessionId;
339 std::
string ProgramPath;
343 #endif // vtkProcessModule_h vtkIdType MaxSessionId
Used to keep track of maximum session used.
bool ReportInterpreterErrors
vtkProcessModuleInternals * Internals
std::string GetProgramPath() const
The full path to the current executable that is running (or empty if unknown).
vtkSessionIterator is used to iterate over sessions in the global ProcessModule.
static unsigned int GetProcessTypeAsInt()
ServerFlags
These flags are used to specify destination servers for the SendStream function.
vtkNetworkAccessManager * NetworkAccessManager
vtkSession defines a session i.e.
ParaView options storage.
vtkNetworkAccessManager is used to create new connections and monitor activity of those connections...
std::string GetSelfDir() const
The directory containing the current executable (or empty if unknown).
static ProcessTypes GetProcessType()
process initialization and management core for ParaView processes.