14 #ifndef vtkPPainterCommunicator_h
15 #define vtkPPainterCommunicator_h
18 #include "vtkRenderingParallelLICModule.h"
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkPPainterCommunicatorInternals;
22 class vtkMPICommunicatorOpaqueComm;
36 this->
Copy(&other,
false);
41 this->
Copy(&other,
false);
78 static bool MPIInitialized();
79 static bool MPIFinalized();
88 void SetCommunicator(vtkMPICommunicatorOpaqueComm* comm);
89 void GetCommunicator(vtkMPICommunicatorOpaqueComm* comm);
90 void* GetCommunicator();
100 void SubsetCommunicator(vtkMPICommunicatorOpaqueComm* comm,
int include);
106 static vtkMPICommunicatorOpaqueComm* GetGlobalCommunicator();
110 vtkPPainterCommunicatorInternals* Internals;
113 VTK_ABI_NAMESPACE_END
virtual void Copy(const vtkPainterCommunicator *, bool)
Copy the communicator, the flag indicates if ownership should be assumed.
static bool MPIInitialized()
bool GetMPIFinalized() override
vtkPPainterCommunicator & operator=(const vtkPPainterCommunicator &other)
static bool MPIFinalized()
virtual int GetRank()
Query MPI about the communicator.
virtual int GetWorldSize()
virtual void Duplicate(const vtkPainterCommunicator *)
Duplicate the communicator.
virtual int GetWorldRank()
Query MPI about the world communicator.
A communicator that can safely be used inside a painter.
vtkPPainterCommunicator(const vtkPPainterCommunicator &other)
Copier and assignment operators.
bool GetMPIInitialized() override
Query MPI state.