VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPainterCommunicator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef __vtkPainterCommunicator_h 00027 #define __vtkPainterCommunicator_h 00028 00029 #include "vtkRenderingLICModule.h" // for export macro 00030 00031 class VTKRENDERINGLIC_EXPORT vtkPainterCommunicator 00032 { 00033 public: 00034 vtkPainterCommunicator(){} 00035 virtual ~vtkPainterCommunicator(){} 00036 00038 00040 vtkPainterCommunicator(const vtkPainterCommunicator &other) 00041 { this->Copy(&other, false); } 00043 00044 vtkPainterCommunicator &operator=(const vtkPainterCommunicator &other) 00045 { this->Copy(&other, false); return *this; } 00046 00049 virtual void Copy(const vtkPainterCommunicator *, bool){} 00050 00052 virtual void Duplicate(const vtkPainterCommunicator *){} 00053 00055 00056 virtual int GetRank(){ return 0; } 00057 virtual int GetSize(){ return 1; } 00058 virtual bool GetIsNull(){ return false; } 00060 00062 00063 virtual int GetWorldRank(){ return 0; } 00064 virtual int GetWorldSize(){ return 1; } 00066 00068 00069 virtual bool GetMPIInitialized(){ return false; } 00070 virtual bool GetMPIFinalized(){ return true; } 00071 }; 00073 00074 #endif 00075 // VTK-HeaderTest-Exclude: vtkPainterCommunicator.h