VTK
dox/Parallel/Core/vtkDummyController.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDummyController.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 =========================================================================*/
00028 #ifndef __vtkDummyController_h
00029 #define __vtkDummyController_h
00030 
00031 #include "vtkParallelCoreModule.h" // For export macro
00032 #include "vtkMultiProcessController.h"
00033 
00034 class VTKPARALLELCORE_EXPORT vtkDummyController : public vtkMultiProcessController
00035 {
00036 public:
00037   static vtkDummyController *New();
00038   vtkTypeMacro(vtkDummyController,vtkMultiProcessController);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042 
00043   virtual void Initialize(int*, char***, int) {}
00044   virtual void Initialize(int*, char***) {}
00045   virtual void Finalize() {}
00046   virtual void Finalize(int) {}
00048 
00050   int GetLocalProcessId() { return 0; }
00051 
00053   virtual void SingleMethodExecute();
00054 
00056   virtual void MultipleMethodExecute();
00057 
00059   virtual void CreateOutputWindow() {}
00060 
00062 
00064   vtkGetObjectMacro(Communicator, vtkCommunicator);
00065   vtkGetObjectMacro(RMICommunicator, vtkCommunicator);
00066   virtual void SetCommunicator(vtkCommunicator *);
00067   virtual void SetRMICommunicator(vtkCommunicator *);
00069 
00070 protected:
00071   vtkDummyController();
00072   ~vtkDummyController();
00073 
00074 private:
00075   vtkDummyController(const vtkDummyController&);  // Not implemented.
00076   void operator=(const vtkDummyController&);  // Not implemented.
00077 };
00078 
00079 #endif
00080 
00081