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 =========================================================================*/
38 #ifndef vtkProcess_h
39 #define vtkProcess_h
40 
41 #include "vtkObject.h"
42 #include "vtkParallelCoreModule.h" // For export macro
43 
45 
46 class VTKPARALLELCORE_EXPORT vtkProcess : public vtkObject
47 {
48 public:
49  vtkTypeMacro(vtkProcess, vtkObject);
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
56  virtual void Execute() = 0;
57 
62  vtkMultiProcessController* GetController();
63 
68  void SetController(vtkMultiProcessController* aController);
69 
73  int GetReturnValue();
74 
75 protected:
76  vtkProcess();
77 
80 
81 private:
82  vtkProcess(const vtkProcess&) = delete;
83  void operator=(const vtkProcess&) = delete;
84 };
85 
86 #endif
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:53
vtkProcess::Controller
vtkMultiProcessController * Controller
Definition: vtkProcess.h:78
vtkMultiProcessController
Multiprocessing communication superclass.
Definition: vtkMultiProcessController.h:75
vtkProcess::ReturnValue
int ReturnValue
Definition: vtkProcess.h:79
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
vtkProcess
a process that can be launched by a vtkMultiProcessController
Definition: vtkProcess.h:46