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=========================================================================*/
32#ifndef vtkImageSinusoidSource_h
33#define vtkImageSinusoidSource_h
34
35#include "vtkImageAlgorithm.h"
36#include "vtkImagingSourcesModule.h" // For export macro
37
38class VTKIMAGINGSOURCES_EXPORT vtkImageSinusoidSource : public vtkImageAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
48 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
49
51
55 void SetDirection(double, double, double);
56 void SetDirection(double dir[3]);
57 vtkGetVector3Macro(Direction, double);
59
61
64 vtkSetMacro(Period, double);
65 vtkGetMacro(Period, double);
67
69
72 vtkSetMacro(Phase, double);
73 vtkGetMacro(Phase, double);
75
77
80 vtkSetMacro(Amplitude, double);
81 vtkGetMacro(Amplitude, double);
83
84protected:
86 ~vtkImageSinusoidSource() override = default;
87
88 int WholeExtent[6];
89 double Direction[3];
90 double Period;
91 double Phase;
92 double Amplitude;
93
96
97private:
99 void operator=(const vtkImageSinusoidSource&) = delete;
100};
101
102#endif
general representation of visualization data
Definition: vtkDataObject.h:69
Generic algorithm superclass for image algs.
Create an image with sinusoidal pixel values.
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set/Get the extent of the whole output image.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
~vtkImageSinusoidSource() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkImageSinusoidSource * New()
void SetDirection(double dir[3])
Set/Get the direction vector which determines the sinusoidal orientation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDirection(double, double, double)
Set/Get the direction vector which determines the sinusoidal orientation.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ dir
Definition: vtkX3D.h:330
@ data
Definition: vtkX3D.h:321