VTK
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 "vtkImagingSourcesModule.h" // For export macro
30 #include "vtkImageAlgorithm.h"
31 
32 class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
43  int zMin, int zMax);
44 
46 
50  void SetDirection(double,double,double);
51  void SetDirection(double dir[3]);
52  vtkGetVector3Macro(Direction, double);
54 
56 
59  vtkSetMacro(Period, double);
60  vtkGetMacro(Period, double);
62 
64 
67  vtkSetMacro(Phase, double);
68  vtkGetMacro(Phase, double);
70 
72 
75  vtkSetMacro(Amplitude, double);
76  vtkGetMacro(Amplitude, double);
78 
79 protected:
82 
83  int WholeExtent[6];
84  double Direction[3];
85  double Period;
86  double Phase;
87  double Amplitude;
88 
91 private:
93  void operator=(const vtkImageSinusoidSource&) = delete;
94 };
95 
96 
97 #endif
98 
99 
100 
vtkImageSinusoidSource
Create an image with sinusoidal pixel values.
Definition: vtkImageSinusoidSource.h:33
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkImageSinusoidSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageSinusoidSource::~vtkImageSinusoidSource
~vtkImageSinusoidSource() override
Definition: vtkImageSinusoidSource.h:81
vtkImageAlgorithm.h
vtkImageSinusoidSource::Period
double Period
Definition: vtkImageSinusoidSource.h:85
vtkX3D::dir
@ dir
Definition: vtkX3D.h:324
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:41
vtkImageSinusoidSource::Amplitude
double Amplitude
Definition: vtkImageSinusoidSource.h:87
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImageSinusoidSource::SetDirection
void SetDirection(double dir[3])
vtkImageSinusoidSource::New
static vtkImageSinusoidSource * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
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:86
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:65
vtkImageSinusoidSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...