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
23 #ifndef vtkImageSinusoidSource_h
24 #define vtkImageSinusoidSource_h
25 
26 #include "vtkImageAlgorithm.h"
27 #include "vtkImagingSourcesModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
41 
43 
47  void SetDirection(double, double, double);
48  void SetDirection(double dir[3]);
49  vtkGetVector3Macro(Direction, double);
51 
53 
56  vtkSetMacro(Period, double);
57  vtkGetMacro(Period, double);
59 
61 
64  vtkSetMacro(Phase, double);
65  vtkGetMacro(Phase, double);
67 
69 
72  vtkSetMacro(Amplitude, double);
73  vtkGetMacro(Amplitude, double);
75 
76 protected:
78  ~vtkImageSinusoidSource() override = default;
79 
80  int WholeExtent[6];
81  double Direction[3];
82  double Period;
83  double Phase;
84  double Amplitude;
85 
88 
89 private:
91  void operator=(const vtkImageSinusoidSource&) = delete;
92 };
93 
94 VTK_ABI_NAMESPACE_END
95 #endif
general representation of visualization data
Definition: vtkDataObject.h:64
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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ dir
Definition: vtkX3D.h:324
@ data
Definition: vtkX3D.h:315