VTK  9.0.1
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 
30 class VTKIMAGINGCORE_EXPORT vtkRTAnalyticSource : public vtkImageAlgorithm
31 {
32 public:
33  static vtkRTAnalyticSource* New();
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 
126 protected:
134 
138  ~vtkRTAnalyticSource() override {}
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 
152  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
153  vtkInformationVector* outputVector) override;
155 
157 
158 private:
159  vtkRTAnalyticSource(const vtkRTAnalyticSource&) = delete;
160  void operator=(const vtkRTAnalyticSource&) = delete;
161 };
162 
163 #endif
vtkRTAnalyticSource::YMag
double YMag
Definition: vtkRTAnalyticSource.h:144
vtkRTAnalyticSource::ZMag
double ZMag
Definition: vtkRTAnalyticSource.h:145
vtkRTAnalyticSource::ZFreq
double ZFreq
Definition: vtkRTAnalyticSource.h:142
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkImageAlgorithm.h
vtkRTAnalyticSource::Maximum
double Maximum
Definition: vtkRTAnalyticSource.h:149
vtkRTAnalyticSource::StandardDeviation
double StandardDeviation
Definition: vtkRTAnalyticSource.h:146
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkRTAnalyticSource::~vtkRTAnalyticSource
~vtkRTAnalyticSource() override
Destructor.
Definition: vtkRTAnalyticSource.h:138
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkRTAnalyticSource::XMag
double XMag
Definition: vtkRTAnalyticSource.h:143
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRTAnalyticSource::XFreq
double XFreq
Definition: vtkRTAnalyticSource.h:140
vtkRTAnalyticSource::YFreq
double YFreq
Definition: vtkRTAnalyticSource.h:141
vtkRTAnalyticSource::SubsampleRate
int SubsampleRate
Definition: vtkRTAnalyticSource.h:150
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkRTAnalyticSource
Create an image for regression testing.
Definition: vtkRTAnalyticSource.h:30