vtkInSituPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkInSituPipeline_h
30 #define vtkInSituPipeline_h
31 
32 #include "vtkObject.h"
33 #include "vtkPVInSituModule.h" // For windows import/export of shared libraries
34 
36 {
37 public:
38  vtkTypeMacro(vtkInSituPipeline, vtkObject);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  virtual bool Initialize() { return true; }
45 
46  /*
47  * Called every time a new timestep is produced by the simulation.
48  */
49  virtual bool Execute(int timestep, double time) = 0;
50 
51  /*
52  * Called optionally after Execute.
53  */
54  virtual bool Results() { return true; }
55 
59  virtual bool Finalize() { return true; }
60 
64  vtkGetStringMacro(Name);
65  vtkSetStringMacro(Name);
66 
67 protected:
69  ~vtkInSituPipeline() override;
70 
71  char* Name;
72 
73 private:
74  vtkInSituPipeline(const vtkInSituPipeline&) = delete;
75  void operator=(const vtkInSituPipeline&) = delete;
76 };
77 
78 #endif
virtual bool Initialize()
Initialize is called once before the first call to 'Execute'.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
time
#define VTKPVINSITU_EXPORT
abstract base class for all in situ pipelines.
virtual bool Results()
void operator=(const vtkObjectBase &)
virtual bool Finalize()
Called once before the in situ analysis is finalized.