a process that can be launched by a vtkMultiProcessController
More...
#include <vtkProcess.h>
Inherits vtkObject.
a process that can be launched by a vtkMultiProcessController
vtkProcess is an abstract class representing a process that can be launched by a vtkMultiProcessController. Concrete classes just have to implement Execute() method and make sure it set the proper value in ReturnValue.
- Example:
- class MyProcess: public vtkProcess ... vtkMultiProcessController *c; MyProcess *p=new MyProcess::New(); p->SetArgs(argc,argv); // some parameters specific to the process p->SetX(10.0); // ... c->SetSingleProcess(p); c->SingleMethodExecute(); int returnValue=p->GetReturnValue();
- See Also
- vtkMultiProcessController
- Tests:
- vtkProcess (Tests)
Definition at line 48 of file vtkProcess.h.
vtkProcess::vtkProcess |
( |
| ) |
|
|
protected |
static int vtkProcess::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkProcess::IsA |
( |
const char * |
type | ) |
|
|
virtual |
static vtkProcess* vtkProcess::SafeDownCast |
( |
vtkObjectBase * |
o | ) |
|
|
static |
virtual vtkObjectBase* vtkProcess::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkProcess::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual void vtkProcess::Execute |
( |
| ) |
|
|
pure virtual |
Entry point of the process. This method is expected to update ReturnValue.
Give access to the controller that launched the process. Initial value is NULL.
This method should not be called directly but set by the controller itself.
int vtkProcess::GetReturnValue |
( |
| ) |
|
Value set at the end of a call to Execute.
int vtkProcess::ReturnValue |
|
protected |
The documentation for this class was generated from the following file: