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 =========================================================================*/
25 #ifndef vtkImageSinusoidSource_h
26 #define vtkImageSinusoidSource_h
27 
28 #include "vtkImagingSourcesModule.h" // For export macro
29 #include "vtkImageAlgorithm.h"
30 
32 {
33 public:
34  static vtkImageSinusoidSource *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax,
41  int zMin, int zMax);
43 
45 
47  void SetDirection(double,double,double);
48  void SetDirection(double dir[3]);
49  vtkGetVector3Macro(Direction, double);
51 
53 
54  vtkSetMacro(Period, double);
55  vtkGetMacro(Period, double);
57 
59 
60  vtkSetMacro(Phase, double);
61  vtkGetMacro(Phase, double);
63 
65 
66  vtkSetMacro(Amplitude, double);
67  vtkGetMacro(Amplitude, double);
69 
70 protected:
73 
74  int WholeExtent[6];
75  double Direction[3];
76  double Period;
77  double Phase;
78  double Amplitude;
79 
82 private:
83  vtkImageSinusoidSource(const vtkImageSinusoidSource&); // Not implemented.
84  void operator=(const vtkImageSinusoidSource&); // Not implemented.
85 };
86 
87 
88 #endif
89 
90 
91 
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKIMAGINGSOURCES_EXPORT
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
Create an image with sinusoidal pixel values.
general representation of visualization data
Definition: vtkDataObject.h:64