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
29VTK_ABI_NAMESPACE_BEGIN
30class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
31{
32public:
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
76protected:
78 ~vtkImageSinusoidSource() override = default;
79
80 int WholeExtent[6];
81 double Direction[3];
82 double Period;
83 double Phase;
84 double Amplitude;
85
88
89private:
91 void operator=(const vtkImageSinusoidSource&) = delete;
92};
93
94VTK_ABI_NAMESPACE_END
95#endif
general representation of visualization data
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.
~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:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.