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 =========================================================================*/
26 #ifndef vtkPainterCommunicator_h
27 #define vtkPainterCommunicator_h
28 
29 #include "vtkRenderingLICOpenGL2Module.h" // for export macro
30 
31 class VTKRENDERINGLICOPENGL2_EXPORT vtkPainterCommunicator
32 {
33 public:
36 
38 
41  { this->Copy(&other, false); }
43 
45  { this->Copy(&other, false); return *this; }
46 
49  virtual void Copy(const vtkPainterCommunicator *, bool){}
50 
52  virtual void Duplicate(const vtkPainterCommunicator *){}
53 
55 
56  virtual int GetRank(){ return 0; }
57  virtual int GetSize(){ return 1; }
58  virtual bool GetIsNull(){ return false; }
60 
62 
63  virtual int GetWorldRank(){ return 0; }
64  virtual int GetWorldSize(){ return 1; }
66 
68 
69  virtual bool GetMPIInitialized(){ return false; }
70  virtual bool GetMPIFinalized(){ return true; }
71 };
73 
74 #endif
75 // VTK-HeaderTest-Exclude: vtkPainterCommunicator.h
vtkPainterCommunicator(const vtkPainterCommunicator &other)
virtual void Copy(const vtkPainterCommunicator *, bool)
virtual void Duplicate(const vtkPainterCommunicator *)
vtkPainterCommunicator & operator=(const vtkPainterCommunicator &other)