VTK  9.1.0
vtkDummyController.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDummyController.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=========================================================================*/
26#ifndef vtkDummyController_h
27#define vtkDummyController_h
28
30#include "vtkParallelCoreModule.h" // For export macro
31
32class VTKPARALLELCORE_EXPORT vtkDummyController : public vtkMultiProcessController
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 void Initialize(int*, char***, int) override {}
43 void Initialize(int*, char***) override {}
44 void Finalize() override {}
45 void Finalize(int) override {}
46
50 int GetLocalProcessId() { return 0; }
51
55 void SingleMethodExecute() override;
56
60 void MultipleMethodExecute() override;
61
65 void CreateOutputWindow() override {}
66
68
72 vtkGetObjectMacro(RMICommunicator, vtkCommunicator);
76
77protected:
80
81private:
83 void operator=(const vtkDummyController&) = delete;
84};
85
86#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...
void Initialize(int *, char ***, int) override
This method is for setting up the processes.
void CreateOutputWindow() override
Does nothing.
static vtkDummyController * New()
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:113
Multiprocessing communication superclass.