VTK
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 "vtkImagingCoreModule.h" // For export macro
28 #include "vtkImageAlgorithm.h"
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,
43  int zMin, int zMax);
44  vtkGetVector6Macro(WholeExtent, int);
46 
48 
51  vtkSetVector3Macro(Center, double);
52  vtkGetVector3Macro(Center, double);
54 
56 
59  vtkSetMacro(Maximum, double);
60  vtkGetMacro(Maximum, double);
62 
64 
67  vtkSetMacro(StandardDeviation, double);
68  vtkGetMacro(StandardDeviation, double);
70 
72 
75  vtkSetMacro(XFreq, double);
76  vtkGetMacro(XFreq, double);
78 
80 
83  vtkSetMacro(YFreq, double);
84  vtkGetMacro(YFreq, double);
86 
88 
91  vtkSetMacro(ZFreq, double);
92  vtkGetMacro(ZFreq, double);
94 
96 
99  vtkSetMacro(XMag, double);
100  vtkGetMacro(XMag, double);
102 
104 
107  vtkSetMacro(YMag, double);
108  vtkGetMacro(YMag, double);
110 
112 
115  vtkSetMacro(ZMag, double);
116  vtkGetMacro(ZMag, double);
118 
120 
123  vtkSetMacro(SubsampleRate, int);
124  vtkGetMacro(SubsampleRate, int);
126 
127 protected:
135 
140  {
141  }
142 
143  double XFreq;
144  double YFreq;
145  double ZFreq;
146  double XMag;
147  double YMag;
148  double ZMag;
150  int WholeExtent[6];
151  double Center[3];
152  double Maximum;
154 
155  int RequestInformation(vtkInformation *request,
156  vtkInformationVector **inputVector,
157  vtkInformationVector *outputVector) override;
159 
161 
162 private:
163  vtkRTAnalyticSource(const vtkRTAnalyticSource&) = delete;
164  void operator=(const vtkRTAnalyticSource&) = delete;
165 };
166 
167 
168 #endif
vtkRTAnalyticSource::YMag
double YMag
Definition: vtkRTAnalyticSource.h:147
vtkRTAnalyticSource::ZMag
double ZMag
Definition: vtkRTAnalyticSource.h:148
vtkRTAnalyticSource::ZFreq
double ZFreq
Definition: vtkRTAnalyticSource.h:145
vtkX3D::data
Definition: vtkX3D.h:315
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:152
vtkRTAnalyticSource::StandardDeviation
double StandardDeviation
Definition: vtkRTAnalyticSource.h:149
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkRTAnalyticSource::~vtkRTAnalyticSource
~vtkRTAnalyticSource() override
Destructor.
Definition: vtkRTAnalyticSource.h:139
vtkX3D::port
Definition: vtkX3D.h:447
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:146
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRTAnalyticSource::XFreq
double XFreq
Definition: vtkRTAnalyticSource.h:143
vtkRTAnalyticSource::YFreq
double YFreq
Definition: vtkRTAnalyticSource.h:144
vtkRTAnalyticSource::SubsampleRate
int SubsampleRate
Definition: vtkRTAnalyticSource.h:153
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
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:58
vtkRTAnalyticSource
Create an image for regression testing.
Definition: vtkRTAnalyticSource.h:30