VTK
vtkPPainterCommunicator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPPainterCommunicator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkPPainterCommunicator_h
26 #define vtkPPainterCommunicator_h
27 
28 #include "vtkPainterCommunicator.h"
29 #include "vtkRenderingParallelLICModule.h" // for export macro
30 
31 class vtkPPainterCommunicatorInternals;
33 
35 {
36 public:
39 
41 
43  { this->Copy(&other, false); }
45 
47  { this->Copy(&other, false); return *this; }
48 
50  virtual void Copy(const vtkPainterCommunicator *other, bool ownership);
51 
53  virtual void Duplicate(const vtkPainterCommunicator *other);
54 
56 
57  virtual int GetRank();
58  virtual int GetSize();
59  virtual bool GetIsNull();
61 
63 
64  virtual int GetWorldRank();
65  virtual int GetWorldSize();
67 
69 
70  virtual bool GetMPIInitialized(){ return this->MPIInitialized(); }
71  virtual bool GetMPIFinalized(){ return this->MPIFinalized(); }
73 
74  static bool MPIInitialized();
75  static bool MPIFinalized();
76 
78 
83  void *GetCommunicator();
85 
92 
96 
97 private:
98  // PImpl for MPI datatypes
99  vtkPPainterCommunicatorInternals *Internals;
100 };
101 
102 #endif
103 // VTK-HeaderTest-Exclude: vtkPPainterCommunicator.h
vtkPPainterCommunicator
Definition: vtkPPainterCommunicator.h:35
vtkPPainterCommunicator::GetCommunicator
void GetCommunicator(vtkMPICommunicatorOpaqueComm *comm)
vtkMPICommunicatorOpaqueComm
Definition: vtkMPI.h:31
vtkPPainterCommunicator::~vtkPPainterCommunicator
virtual ~vtkPPainterCommunicator()
vtkPPainterCommunicator::vtkPPainterCommunicator
vtkPPainterCommunicator()
vtkPPainterCommunicator::GetWorldRank
virtual int GetWorldRank()
vtkRenderingParallelLICModule.h
vtkPPainterCommunicator::MPIFinalized
static bool MPIFinalized()
vtkPPainterCommunicator::MPIInitialized
static bool MPIInitialized()
vtkPPainterCommunicator::GetIsNull
virtual bool GetIsNull()
vtkPPainterCommunicator::Duplicate
virtual void Duplicate(const vtkPainterCommunicator *other)
vtkPPainterCommunicator::SetCommunicator
void SetCommunicator(vtkMPICommunicatorOpaqueComm *comm)
vtkPainterCommunicator::Copy
virtual void Copy(const vtkPainterCommunicator *, bool)
Definition: vtkPainterCommunicator.h:49
vtkPPainterCommunicator::GetSize
virtual int GetSize()
vtkPPainterCommunicator::operator=
vtkPPainterCommunicator & operator=(const vtkPPainterCommunicator &other)
Definition: vtkPPainterCommunicator.h:46
vtkPPainterCommunicator::GetWorldSize
virtual int GetWorldSize()
vtkPPainterCommunicator::GetMPIInitialized
virtual bool GetMPIInitialized()
Definition: vtkPPainterCommunicator.h:70
vtkPPainterCommunicator::Copy
virtual void Copy(const vtkPainterCommunicator *other, bool ownership)
vtkPainterCommunicator
Definition: vtkPainterCommunicator.h:32
vtkPPainterCommunicator::GetRank
virtual int GetRank()
vtkPPainterCommunicator::GetGlobalCommunicator
static vtkMPICommunicatorOpaqueComm * GetGlobalCommunicator()
vtkPPainterCommunicator::SubsetCommunicator
void SubsetCommunicator(vtkMPICommunicatorOpaqueComm *comm, int include)
vtkPPainterCommunicator::vtkPPainterCommunicator
vtkPPainterCommunicator(const vtkPPainterCommunicator &other)
Definition: vtkPPainterCommunicator.h:42
vtkPPainterCommunicator::GetMPIFinalized
virtual bool GetMPIFinalized()
Definition: vtkPPainterCommunicator.h:71
vtkPPainterCommunicator::GetCommunicator
void * GetCommunicator()
VTKRENDERINGPARALLELLIC_EXPORT
#define VTKRENDERINGPARALLELLIC_EXPORT
Definition: vtkRenderingParallelLICModule.h:15