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 =========================================================================*/
26 #ifndef vtkImageSinusoidSource_h
27 #define vtkImageSinusoidSource_h
28 
29 #include "vtkImageAlgorithm.h"
30 #include "vtkImagingSourcesModule.h" // For export macro
31 
32 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
33 {
34 public:
35  static vtkImageSinusoidSource* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
43 
45 
49  void SetDirection(double, double, double);
50  void SetDirection(double dir[3]);
51  vtkGetVector3Macro(Direction, double);
53 
55 
58  vtkSetMacro(Period, double);
59  vtkGetMacro(Period, double);
61 
63 
66  vtkSetMacro(Phase, double);
67  vtkGetMacro(Phase, double);
69 
71 
74  vtkSetMacro(Amplitude, double);
75  vtkGetMacro(Amplitude, double);
77 
78 protected:
80  ~vtkImageSinusoidSource() override = default;
81 
82  int WholeExtent[6];
83  double Direction[3];
84  double Period;
85  double Phase;
86  double Amplitude;
87 
90 
91 private:
93  void operator=(const vtkImageSinusoidSource&) = delete;
94 };
95 
96 #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:39
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:65