26 #ifndef vtkPPainterCommunicator_h 27 #define vtkPPainterCommunicator_h 30 #include "vtkRenderingParallelLICModule.h" 32 class vtkPPainterCommunicatorInternals;
33 class vtkMPICommunicatorOpaqueComm;
45 { this->
Copy(&other,
false); }
48 { this->
Copy(&other,
false);
return *
this; }
83 static bool MPIInitialized();
84 static bool MPIFinalized();
93 void SetCommunicator(vtkMPICommunicatorOpaqueComm *comm);
94 void GetCommunicator(vtkMPICommunicatorOpaqueComm *comm);
95 void *GetCommunicator();
105 void SubsetCommunicator(vtkMPICommunicatorOpaqueComm *comm,
int include);
111 static vtkMPICommunicatorOpaqueComm *GetGlobalCommunicator();
115 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()
Querry MPI about the communicator.
virtual int GetWorldSize()
virtual void Duplicate(const vtkPainterCommunicator *)
Duplicate the communicator.
virtual bool GetMPIInitialized()
Querry MPI state.
virtual int GetWorldRank()
Querry 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.