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  bool GetNeedsUpdate(double time);
54 
60  vtkGetVector2Macro(TimeRange, double);
61 
75 
76 protected:
78  ~vtkEmulatedTimeAlgorithm() override;
79 
88  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector) = 0;
90 
96  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector) = 0;
98 
103  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
104 
105 private:
106  bool NeedsUpdate = false;
107  double RequestedTime = 0.;
108  double TimeRange[2];
109  std::vector<double> TimeSteps;
110 
112  void operator=(const vtkEmulatedTimeAlgorithm&) = delete;
113 };
114 
115 #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
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)