VTK
vtkProcess.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProcess.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 =========================================================================*/
40 #ifndef __vtkProcess_h
41 #define __vtkProcess_h
42 
43 #include "vtkObject.h"
44 
46 
48 {
49 public:
50  vtkTypeMacro(vtkProcess,vtkObject);
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
55  virtual void Execute()=0;
56 
59  vtkMultiProcessController *GetController();
60 
63  void SetController(vtkMultiProcessController *aController);
64 
66  int GetReturnValue();
67 
68 protected:
69  vtkProcess();
70 
73 
74 private:
75  vtkProcess(const vtkProcess&); // Not implemented.
76  void operator=(const vtkProcess&); // Not implemented.
77 };
78 
79 #endif