VTK  9.3.1
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:
24  static vtkImageSinusoidSource* New();
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
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
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.
Create an image with sinusoidal pixel values.
general representation of visualization data
Definition: vtkDataObject.h:54