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::Duplicate
virtual void Duplicate(const vtkPainterCommunicator *)
Duplicate the communicator.
Definition: vtkPainterCommunicator.h:56
vtkPainterCommunicator::~vtkPainterCommunicator
virtual ~vtkPainterCommunicator()
Definition: vtkPainterCommunicator.h:34
vtkPainterCommunicator::GetMPIFinalized
virtual bool GetMPIFinalized()
Definition: vtkPainterCommunicator.h:75
vtkPainterCommunicator::GetSize
virtual int GetSize()
Definition: vtkPainterCommunicator.h:62
vtkPainterCommunicator::GetWorldSize
virtual int GetWorldSize()
Definition: vtkPainterCommunicator.h:69
vtkPainterCommunicator::Copy
virtual void Copy(const vtkPainterCommunicator *, bool)
Copy the communicator, the flag indicates if ownership should be assumed.
Definition: vtkPainterCommunicator.h:51
vtkPainterCommunicator::vtkPainterCommunicator
vtkPainterCommunicator(const vtkPainterCommunicator &other)
Copy and assignment operators.
Definition: vtkPainterCommunicator.h:40
vtkPainterCommunicator::GetIsNull
virtual bool GetIsNull()
Definition: vtkPainterCommunicator.h:63
vtkPainterCommunicator::GetRank
virtual int GetRank()
Querry MPI about the communicator.
Definition: vtkPainterCommunicator.h:61
vtkPainterCommunicator
A communicator that can safely be used inside a painter.
Definition: vtkPainterCommunicator.h:30
vtkPainterCommunicator::GetWorldRank
virtual int GetWorldRank()
Querry MPI about the world communicator.
Definition: vtkPainterCommunicator.h:68
vtkPainterCommunicator::vtkPainterCommunicator
vtkPainterCommunicator()
Definition: vtkPainterCommunicator.h:33
vtkPainterCommunicator::operator=
vtkPainterCommunicator & operator=(const vtkPainterCommunicator &other)
Definition: vtkPainterCommunicator.h:43
vtkPainterCommunicator::GetMPIInitialized
virtual bool GetMPIInitialized()
Querry MPI about its state.
Definition: vtkPainterCommunicator.h:74