VTK  9.1.0
vtkRTAnalyticSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRTAnalyticSource.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=========================================================================*/
24#ifndef vtkRTAnalyticSource_h
25#define vtkRTAnalyticSource_h
26
27#include "vtkImageAlgorithm.h"
28#include "vtkImagingCoreModule.h" // For export macro
29
30class VTKIMAGINGCORE_EXPORT vtkRTAnalyticSource : public vtkImageAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
42 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
43 vtkGetVector6Macro(WholeExtent, int);
45
47
50 vtkSetVector3Macro(Center, double);
51 vtkGetVector3Macro(Center, double);
53
55
58 vtkSetMacro(Maximum, double);
59 vtkGetMacro(Maximum, double);
61
63
66 vtkSetMacro(StandardDeviation, double);
67 vtkGetMacro(StandardDeviation, double);
69
71
74 vtkSetMacro(XFreq, double);
75 vtkGetMacro(XFreq, double);
77
79
82 vtkSetMacro(YFreq, double);
83 vtkGetMacro(YFreq, double);
85
87
90 vtkSetMacro(ZFreq, double);
91 vtkGetMacro(ZFreq, double);
93
95
98 vtkSetMacro(XMag, double);
99 vtkGetMacro(XMag, double);
101
103
106 vtkSetMacro(YMag, double);
107 vtkGetMacro(YMag, double);
109
111
114 vtkSetMacro(ZMag, double);
115 vtkGetMacro(ZMag, double);
117
119
122 vtkSetMacro(SubsampleRate, int);
123 vtkGetMacro(SubsampleRate, int);
125
126protected:
134
138 ~vtkRTAnalyticSource() override = default;
139
140 double XFreq;
141 double YFreq;
142 double ZFreq;
143 double XMag;
144 double YMag;
145 double ZMag;
147 int WholeExtent[6];
148 double Center[3];
149 double Maximum;
151
153 vtkInformationVector* outputVector) override;
155
156private:
158 void operator=(const vtkRTAnalyticSource&) = delete;
159};
160
161#endif
general representation of visualization data
Definition: vtkDataObject.h:60
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Create an image for regression testing.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkRTAnalyticSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkRTAnalyticSource()
Default constructor.
void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
Set/Get the extent of the whole output image.
~vtkRTAnalyticSource() override=default
Destructor.
@ data
Definition: vtkX3D.h:321