VTK  9.6.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
21
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
31VTK_ABI_NAMESPACE_BEGIN
33 : public vtkImageAlgorithm
34{
35public:
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
60
67
72 void AddHarmonic(double amplitude, double temporalFrequency, double xWaveVector,
73 double yWaveVector, double zWaveVector, double phase);
74
79
86
87protected:
90
93
94private:
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
104VTK_ABI_NAMESPACE_END
105#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void AddTimeStepValue(double timeStepValue)
Add a time step value.
void ClearHarmonics()
Clear all harmonics.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void ResetTimeStepValues()
Reset time step values to default.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void ResetHarmonics()
Reset harmonics to default.
void ClearTimeStepValues()
Clear time step values.
static vtkSpatioTemporalHarmonicsSource * New()
void AddHarmonic(double amplitude, double temporalFrequency, double xWaveVector, double yWaveVector, double zWaveVector, double phase)
Add an harmonic with all needed parameters.
#define VTK_MARSHALAUTO