vtkEmulatedTimeAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkEmulatedTimeAlgorithm_h
4 #define vtkEmulatedTimeAlgorithm_h
5 
6 #include "vtkAlgorithm.h"
7 
8 #include <vector>
9 
11 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
53  virtual bool GetNeedsUpdate(double time);
54 
61  void Modified() override;
62 
68  vtkGetVector2Macro(TimeRange, double);
69 
83 
84 protected:
86  ~vtkEmulatedTimeAlgorithm() override;
87 
96  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector) = 0;
98 
104  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) = 0;
106 
111  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
112 
113 private:
114  bool NeedsUpdate = false;
115  bool NeedsInitialization = true;
116  double RequestedTime = 0.;
117  double TimeRange[2];
118  std::vector<double> TimeSteps;
119 
121  void operator=(const vtkEmulatedTimeAlgorithm&) = delete;
122 };
123 
124 #endif
#define VTKPVVTKEXTENSIONSCORE_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Provide a base API for a emulated real time LiveSource.
int vtkTypeBool
virtual void Modified()
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)