VTK  9.1.0
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 =========================================================================*/
72 #ifndef vtkImageSinusoidSource_h
73 #define vtkImageSinusoidSource_h
74 
75 #include "vtkImageAlgorithm.h"
76 #include "vtkImagingSourcesModule.h" // For export macro
77 
78 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
79 {
80 public:
83  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
88  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
89 
91 
95  void SetDirection(double, double, double);
96  void SetDirection(double dir[3]);
97  vtkGetVector3Macro(Direction, double);
99 
101 
104  vtkSetMacro(Period, double);
105  vtkGetMacro(Period, double);
107 
109 
112  vtkSetMacro(Phase, double);
113  vtkGetMacro(Phase, double);
115 
117 
120  vtkSetMacro(Amplitude, double);
121  vtkGetMacro(Amplitude, double);
123 
124 protected:
126  ~vtkImageSinusoidSource() override = default;
127 
128  int WholeExtent[6];
129  double Direction[3];
130  double Period;
131  double Phase;
132  double Amplitude;
133 
136 
137 private:
139  void operator=(const vtkImageSinusoidSource&) = delete;
140 };
141 
142 #endif
vtkImageSinusoidSource::~vtkImageSinusoidSource
~vtkImageSinusoidSource() override=default
vtkImageSinusoidSource
Create an image with sinusoidal pixel values.
Definition: vtkImageSinusoidSource.h:79
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkImageSinusoidSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageAlgorithm.h
vtkImageSinusoidSource::Period
double Period
Definition: vtkImageSinusoidSource.h:130
vtkX3D::dir
@ dir
Definition: vtkX3D.h:330
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:57
vtkImageSinusoidSource::Amplitude
double Amplitude
Definition: vtkImageSinusoidSource.h:132
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkImageSinusoidSource::SetDirection
void SetDirection(double dir[3])
Set/Get the direction vector which determines the sinusoidal orientation.
vtkImageSinusoidSource::New
static vtkImageSinusoidSource * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkImageSinusoidSource::vtkImageSinusoidSource
vtkImageSinusoidSource()
vtkImageSinusoidSource::SetWholeExtent
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set/Get the extent of the whole output image.
vtkImageSinusoidSource::SetDirection
void SetDirection(double, double, double)
Set/Get the direction vector which determines the sinusoidal orientation.
vtkImageSinusoidSource::Phase
double Phase
Definition: vtkImageSinusoidSource.h:131
vtkImageSinusoidSource::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:169
vtkImageSinusoidSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...