VTK  9.3.0
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
14 #ifndef vtkImageSinusoidSource_h
15 #define vtkImageSinusoidSource_h
16 
17 #include "vtkImageAlgorithm.h"
18 #include "vtkImagingSourcesModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
22 {
23 public:
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 
67 protected:
69  ~vtkImageSinusoidSource() override = default;
70 
71  int WholeExtent[6];
72  double Direction[3];
73  double Period;
74  double Phase;
75  double Amplitude;
76 
79 
80 private:
82  void operator=(const vtkImageSinusoidSource&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif
general representation of visualization data
Definition: vtkDataObject.h:55
Generic algorithm superclass for image algs.
Create an image with sinusoidal pixel values.
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.
static vtkImageSinusoidSource * New()
~vtkImageSinusoidSource() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
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.
@ dir
Definition: vtkX3D.h:324
@ data
Definition: vtkX3D.h:315