VTK  9.0.1
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 =========================================================================*/
23 #ifndef vtkImageSinusoidSource_h
24 #define vtkImageSinusoidSource_h
25 
26 #include "vtkImageAlgorithm.h"
27 #include "vtkImagingSourcesModule.h" // For export macro
28 
29 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
30 {
31 public:
32  static vtkImageSinusoidSource* New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
39  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
40 
42 
46  void SetDirection(double, double, double);
47  void SetDirection(double dir[3]);
48  vtkGetVector3Macro(Direction, double);
50 
52 
55  vtkSetMacro(Period, double);
56  vtkGetMacro(Period, double);
58 
60 
63  vtkSetMacro(Phase, double);
64  vtkGetMacro(Phase, double);
66 
68 
71  vtkSetMacro(Amplitude, double);
72  vtkGetMacro(Amplitude, double);
74 
75 protected:
78 
79  int WholeExtent[6];
80  double Direction[3];
81  double Period;
82  double Phase;
83  double Amplitude;
84 
87 
88 private:
90  void operator=(const vtkImageSinusoidSource&) = delete;
91 };
92 
93 #endif
vtkImageSinusoidSource
Create an image with sinusoidal pixel values.
Definition: vtkImageSinusoidSource.h:29
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkImageSinusoidSource::~vtkImageSinusoidSource
~vtkImageSinusoidSource() override
Definition: vtkImageSinusoidSource.h:77
vtkImageAlgorithm.h
vtkImageSinusoidSource::Period
double Period
Definition: vtkImageSinusoidSource.h:81
vtkX3D::dir
@ dir
Definition: vtkX3D.h:330
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageSinusoidSource::Amplitude
double Amplitude
Definition: vtkImageSinusoidSource.h:83
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageSinusoidSource::Phase
double Phase
Definition: vtkImageSinusoidSource.h:82
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59