VTK  9.3.0
vtkDummyController.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkDummyController_h
18 #define vtkDummyController_h
19 
21 #include "vtkParallelCoreModule.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKPARALLELCORE_EXPORT vtkDummyController : public vtkMultiProcessController
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  void Initialize(int*, char***, int) override {}
35  void Initialize(int*, char***) override {}
36  void Finalize() override {}
37  void Finalize(int) override {}
38 
42  int GetLocalProcessId() { return 0; }
43 
47  void SingleMethodExecute() override;
48 
52  void MultipleMethodExecute() override;
53 
57  void CreateOutputWindow() override {}
58 
60 
64  vtkGetObjectMacro(RMICommunicator, vtkCommunicator);
68 
69 protected:
71  ~vtkDummyController() override;
72 
73 private:
74  vtkDummyController(const vtkDummyController&) = delete;
75  void operator=(const vtkDummyController&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
Used to send/receive messages in a multiprocess environment.
Dummy controller for single process applications.
void SingleMethodExecute() override
Directly calls the single method.
int GetLocalProcessId()
This method always returns 0.
void Initialize(int *, char ***) override
void MultipleMethodExecute() override
Directly calls multiple method 0.
virtual void SetRMICommunicator(vtkCommunicator *)
If you don't need any special functionality from the controller, you can swap out the dummy communica...
static vtkDummyController * New()
void Initialize(int *, char ***, int) override
This method is for setting up the processes.
void CreateOutputWindow() override
Does nothing.
void Finalize(int) override
This method is for cleaning up.
virtual void SetCommunicator(vtkCommunicator *)
If you don't need any special functionality from the controller, you can swap out the dummy communica...
void Finalize() override
This method is for cleaning up.
~vtkDummyController() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:38
Multiprocessing communication superclass.