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=========================================================================*/
53#ifndef vtkRTAnalyticSource_h
54#define vtkRTAnalyticSource_h
55
56#include "vtkImageAlgorithm.h"
57#include "vtkImagingCoreModule.h" // For export macro
58
59class VTKIMAGINGCORE_EXPORT vtkRTAnalyticSource : public vtkImageAlgorithm
60{
61public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65
67
71 void SetWholeExtent(int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax);
72 vtkGetVector6Macro(WholeExtent, int);
74
76
79 vtkSetVector3Macro(Center, double);
80 vtkGetVector3Macro(Center, double);
82
84
87 vtkSetMacro(Maximum, double);
88 vtkGetMacro(Maximum, double);
90
92
95 vtkSetMacro(StandardDeviation, double);
96 vtkGetMacro(StandardDeviation, double);
98
100
103 vtkSetMacro(XFreq, double);
104 vtkGetMacro(XFreq, double);
106
108
111 vtkSetMacro(YFreq, double);
112 vtkGetMacro(YFreq, double);
114
116
119 vtkSetMacro(ZFreq, double);
120 vtkGetMacro(ZFreq, double);
122
124
127 vtkSetMacro(XMag, double);
128 vtkGetMacro(XMag, double);
130
132
135 vtkSetMacro(YMag, double);
136 vtkGetMacro(YMag, double);
138
140
143 vtkSetMacro(ZMag, double);
144 vtkGetMacro(ZMag, double);
146
148
151 vtkSetMacro(SubsampleRate, int);
152 vtkGetMacro(SubsampleRate, int);
154
155protected:
163
167 ~vtkRTAnalyticSource() override = default;
168
169 double XFreq;
170 double YFreq;
171 double ZFreq;
172 double XMag;
173 double YMag;
174 double ZMag;
176 int WholeExtent[6];
177 double Center[3];
178 double Maximum;
180
182 vtkInformationVector* outputVector) override;
184
185private:
187 void operator=(const vtkRTAnalyticSource&) = delete;
188};
189
190#endif
general representation of visualization data
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:113
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.