VTK  9.5.2
vtkImageSinusoidSource.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
13
14#ifndef vtkImageSinusoidSource_h
15#define vtkImageSinusoidSource_h
16
17#include "vtkImageAlgorithm.h"
18#include "vtkImagingSourcesModule.h" // For export macro
19
20VTK_ABI_NAMESPACE_BEGIN
21class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
31 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
32
34
38 void SetDirection(double, double, double);
39 void SetDirection(double dir[3]);
40 vtkGetVector3Macro(Direction, double);
42
44
47 vtkSetMacro(Period, double);
48 vtkGetMacro(Period, double);
50
52
55 vtkSetMacro(Phase, double);
56 vtkGetMacro(Phase, double);
58
60
63 vtkSetMacro(Amplitude, double);
64 vtkGetMacro(Amplitude, double);
66
67protected:
69 ~vtkImageSinusoidSource() override = default;
70
72 double Direction[3];
73 double Period;
74 double Phase;
75 double Amplitude;
76
79
80private:
82 void operator=(const vtkImageSinusoidSource&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
general representation of visualization data
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set/Get the extent of the whole output image.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
~vtkImageSinusoidSource() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageSinusoidSource * New()
void SetDirection(double dir[3])
Set/Get the direction vector which determines the sinusoidal orientation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDirection(double, double, double)
Set/Get the direction vector which determines the sinusoidal orientation.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.