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) VTK_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 
139  ~vtkRTAnalyticSource() VTK_OVERRIDE
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) VTK_OVERRIDE;
158  void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) VTK_OVERRIDE;
159 
160  int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
161 
162 private:
163  vtkRTAnalyticSource(const vtkRTAnalyticSource&) VTK_DELETE_FUNCTION;
164  void operator=(const vtkRTAnalyticSource&) VTK_DELETE_FUNCTION;
165 };
166 
167 
168 #endif
Store vtkAlgorithm input/output information.
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
~vtkRTAnalyticSource() override
Destructor.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Create an image for regression testing.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:58