Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkDummyController.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDummyController.h,v $
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 =========================================================================*/
00036 #ifndef __vtkDummyController_h
00037 #define __vtkDummyController_h
00038 
00039 #include "vtkMultiProcessController.h"
00040 
00041 class VTK_PARALLEL_EXPORT vtkDummyController : public vtkMultiProcessController
00042 {
00043 public:
00044   static vtkDummyController *New();
00045   vtkTypeRevisionMacro(vtkDummyController,vtkMultiProcessController);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00050   virtual void Initialize(int*, char***, int) {}
00051   virtual void Initialize(int*, char***) {}
00052   virtual void Finalize() {}
00053   virtual void Finalize(int) {}
00055 
00057   int GetLocalProcessId() { return 0; }
00058 
00060   virtual void SingleMethodExecute() {}
00061   
00063   virtual void MultipleMethodExecute() {}
00064 
00066   virtual void Barrier() {}
00067 
00069   virtual void CreateOutputWindow() {}
00070 
00071 protected:
00072   vtkDummyController() {}
00073   ~vtkDummyController() {}
00074   
00075 private:
00076   vtkDummyController(const vtkDummyController&);  // Not implemented.
00077   void operator=(const vtkDummyController&);  // Not implemented.
00078 };
00079 
00080 #endif
00081 
00082