VTK  9.7.1
vtkSpatioTemporalHarmonicsSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkSpatioTemporalHarmonicsSource_h
23 #define vtkSpatioTemporalHarmonicsSource_h
24 
25 #include "vtkFiltersSourcesModule.h" // For export macro
26 #include "vtkImageAlgorithm.h"
27 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28 
29 #include <memory>
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkSpatioTemporalHarmonicsSource
33  : public vtkImageAlgorithm
34 {
35 public:
37 
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkSetVector6Macro(WholeExtent, int);
47  vtkGetVector6Macro(WholeExtent, int);
49 
54  void AddTimeStepValue(double timeStepValue);
55 
59  void ClearTimeStepValues();
60 
66  void ResetTimeStepValues();
67 
72  void AddHarmonic(double amplitude, double temporalFrequency, double xWaveVector,
73  double yWaveVector, double zWaveVector, double phase);
74 
78  void ClearHarmonics();
79 
85  void ResetHarmonics();
86 
87 protected:
90 
93 
94 private:
96  void operator=(const vtkSpatioTemporalHarmonicsSource&) = delete;
97 
98  struct vtkInternals;
99  std::unique_ptr<vtkInternals> Internals;
100 
101  int WholeExtent[6] = { -10, 10, -10, 10, -10, 10 };
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_MARSHALAUTO
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
Creates a vtkImageData with harmonics data.