11 #ifndef vtkProcessModule_h
12 #define vtkProcessModule_h
16 #include "vtkRemotingCoreModule.h"
27 class vtkThreadedCallbackQueue;
58 DATA_SERVER_ROOT = 0x02,
60 RENDER_SERVER_ROOT = 0x08,
61 SERVERS = DATA_SERVER | RENDER_SERVER,
63 CLIENT_AND_SERVERS = DATA_SERVER | CLIENT | RENDER_SERVER
66 static ProcessTypes GetProcessType();
79 void UpdateProcessType(ProcessTypes newType,
bool dontKnowWhatImDoing =
true);
90 static bool Initialize(ProcessTypes type,
int& argc,
char**& argv);
95 static bool Finalize();
120 bool UnRegisterSession(
vtkIdType sessionID);
131 vtkGetMacro(EventCallDataSessionId,
vtkIdType);
170 vtkGetMacro(MultipleSessionsSupport,
bool);
171 vtkSetMacro(MultipleSessionsSupport,
bool);
172 vtkBooleanMacro(MultipleSessionsSupport,
bool);
207 int GetNumberOfLocalPartitions();
212 int GetPartitionId();
217 bool IsMPIInitialized();
223 vtkGetMacro(ReportInterpreterErrors,
bool);
224 vtkSetMacro(ReportInterpreterErrors,
bool);
225 vtkBooleanMacro(ReportInterpreterErrors,
bool);
229 static bool GetSymmetricMPIMode();
239 const std::string&
GetSelfDir()
const {
return this->SelfDir; }
257 static void SetDefaultMinimumGhostLevelsToRequestForStructuredPipelines(
int);
258 static int GetDefaultMinimumGhostLevelsToRequestForStructuredPipelines();
259 static void SetDefaultMinimumGhostLevelsToRequestForUnstructuredPipelines(
int);
260 static int GetDefaultMinimumGhostLevelsToRequestForUnstructuredPipelines();
267 static int GetNumberOfGhostLevelsToRequest(
vtkInformation* outInfo);
272 vtkThreadedCallbackQueue* GetCallbackQueue();
304 void SetExecutablePath(
const std::string& path);
318 void DetermineExecutablePath(
int argc,
char** argv);
323 bool InitializePythonEnvironment();
328 static bool FinalizeMPI;
332 static bool FinalizePython;
337 bool MultipleSessionsSupport;
341 std::string ProgramPath;
344 static int DefaultMinimumGhostLevelsToRequestForStructuredPipelines;
345 static int DefaultMinimumGhostLevelsToRequestForUnstructuredPipelines;
348 #endif // vtkProcessModule_h