26 #ifndef vtkPPainterCommunicator_h
27 #define vtkPPainterCommunicator_h
30 #include "vtkRenderingParallelLICModule.h"
32 class vtkPPainterCommunicatorInternals;
33 class vtkMPICommunicatorOpaqueComm;
47 this->
Copy(&other,
false);
52 this->
Copy(&other,
false);
89 static bool MPIInitialized();
90 static bool MPIFinalized();
99 void SetCommunicator(vtkMPICommunicatorOpaqueComm* comm);
100 void GetCommunicator(vtkMPICommunicatorOpaqueComm* comm);
101 void* GetCommunicator();
111 void SubsetCommunicator(vtkMPICommunicatorOpaqueComm* comm,
int include);
117 static vtkMPICommunicatorOpaqueComm* GetGlobalCommunicator();
121 vtkPPainterCommunicatorInternals* Internals;
virtual void Copy(const vtkPainterCommunicator *, bool)
Copy the communicator, the flag indicates if ownership should be assumed.
vtkPPainterCommunicator & operator=(const vtkPPainterCommunicator &other)
virtual int GetRank()
Query MPI about the communicator.
virtual int GetWorldSize()
virtual void Duplicate(const vtkPainterCommunicator *)
Duplicate the communicator.
virtual bool GetMPIInitialized()
Query MPI state.
virtual int GetWorldRank()
Query MPI about the world communicator.
virtual bool GetMPIFinalized()
A communicator that can safely be used inside a painter.
vtkPPainterCommunicator(const vtkPPainterCommunicator &other)
Copier and assignment operators.