vtkInSituPipeline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkInSituPipeline.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
41 #ifndef vtkInSituPipeline_h
42 #define vtkInSituPipeline_h
43 
44 #include "vtkObject.h"
45 #include "vtkPVInSituModule.h" // For windows import/export of shared libraries
46 
48 {
49 public:
50  vtkTypeMacro(vtkInSituPipeline, vtkObject);
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
56  virtual bool Initialize() { return true; }
57 
58  /*
59  * Called every time a new timestep is produced by the simulation.
60  */
61  virtual bool Execute(int timestep, double time) = 0;
62 
66  virtual bool Finalize() { return true; }
67 
68 protected:
71 
72 private:
73  vtkInSituPipeline(const vtkInSituPipeline&) = delete;
74  void operator=(const vtkInSituPipeline&) = delete;
75 };
76 
77 #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.
void operator=(const vtkObjectBase &)
virtual bool Finalize()
Called once before the in situ analysis is finalized.