VTK  9.2.6
vtkImageSinusoidSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageSinusoidSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkImageSinusoidSource_h
36 #define vtkImageSinusoidSource_h
37 
38 #include "vtkImageAlgorithm.h"
39 #include "vtkImagingSourcesModule.h" // For export macro
40 
41 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
52 
54 
58  void SetDirection(double, double, double);
59  void SetDirection(double dir[3]);
60  vtkGetVector3Macro(Direction, double);
62 
64 
67  vtkSetMacro(Period, double);
68  vtkGetMacro(Period, double);
70 
72 
75  vtkSetMacro(Phase, double);
76  vtkGetMacro(Phase, double);
78 
80 
83  vtkSetMacro(Amplitude, double);
84  vtkGetMacro(Amplitude, double);
86 
87 protected:
89  ~vtkImageSinusoidSource() override = default;
90 
91  int WholeExtent[6];
92  double Direction[3];
93  double Period;
94  double Phase;
95  double Amplitude;
96 
99 
100 private:
102  void operator=(const vtkImageSinusoidSource&) = delete;
103 };
104 
105 #endif
general representation of visualization data
Definition: vtkDataObject.h:75
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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ dir
Definition: vtkX3D.h:330
@ data
Definition: vtkX3D.h:321