VTK
vtkPainterCommunicator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPainterCommunicator.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 vtkPainterCommunicator_h
26 #define vtkPainterCommunicator_h
27 
28 #include "vtkRenderingLICOpenGL2Module.h" // for export macro
29 
30 class VTKRENDERINGLICOPENGL2_EXPORT vtkPainterCommunicator
31 {
32 public:
35 
41  { this->Copy(&other, false); }
42 
44  { this->Copy(&other, false); return *this; }
45 
51  virtual void Copy(const vtkPainterCommunicator *, bool){}
52 
56  virtual void Duplicate(const vtkPainterCommunicator *){}
57 
61  virtual int GetRank(){ return 0; }
62  virtual int GetSize(){ return 1; }
63  virtual bool GetIsNull(){ return false; }
64 
68  virtual int GetWorldRank(){ return 0; }
69  virtual int GetWorldSize(){ return 1; }
70 
74  virtual bool GetMPIInitialized(){ return false; }
75  virtual bool GetMPIFinalized(){ return true; }
76 };
77 
78 #endif
79 // VTK-HeaderTest-Exclude: vtkPainterCommunicator.h
vtkPainterCommunicator(const vtkPainterCommunicator &other)
Copy and assignment operators.
virtual void Copy(const vtkPainterCommunicator *, bool)
Copy the communicator, the flag indicates if ownership should be assumed.
virtual bool GetMPIInitialized()
Querry MPI about its state.
virtual int GetRank()
Querry MPI about the communicator.
virtual void Duplicate(const vtkPainterCommunicator *)
Duplicate the communicator.
virtual int GetWorldRank()
Querry MPI about the world communicator.
A communicator that can safely be used inside a painter.
vtkPainterCommunicator & operator=(const vtkPainterCommunicator &other)