VTK
|
Create an image for regression testing. More...
#include <vtkRTAnalyticSource.h>
Create an image for regression testing.
vtkRTAnalyticSource just produces images with pixel values determined by a Maximum*Gaussian*XMag*sin(XFreq*x)*sin(YFreq*y)*cos(ZFreq*z) Values are float scalars on point data with name "RTData".
Definition at line 35 of file vtkRTAnalyticSource.h.
Reimplemented from vtkImageAlgorithm.
Definition at line 39 of file vtkRTAnalyticSource.h.
vtkRTAnalyticSource::vtkRTAnalyticSource | ( | ) | [protected] |
Default constructor. Initial values are: Maximum=255.0, Center[3]={0.0,0.0,0.0}, WholeExtent={-10,10,-10,10,-10,10} StandardDeviation=0.5, XFreq=60, XMag=10, YFreq=30, YMag=18, ZFreq=40, ZMag=5, SubsampleRate=1
vtkRTAnalyticSource::~vtkRTAnalyticSource | ( | ) | [inline, protected] |
Destructor.
Definition at line 119 of file vtkRTAnalyticSource.h.
static vtkRTAnalyticSource* vtkRTAnalyticSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkRTAnalyticSource::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
virtual int vtkRTAnalyticSource::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
static vtkRTAnalyticSource* vtkRTAnalyticSource::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
virtual vtkObjectBase* vtkRTAnalyticSource::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
Reimplemented from vtkImageAlgorithm.
void vtkRTAnalyticSource::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImageAlgorithm.
void vtkRTAnalyticSource::SetWholeExtent | ( | int | xMinx, |
int | xMax, | ||
int | yMin, | ||
int | yMax, | ||
int | zMin, | ||
int | zMax | ||
) |
Set/Get the extent of the whole output image. Initial value is {-10,10,-10,10,-10,10}
virtual int* vtkRTAnalyticSource::GetWholeExtent | ( | ) | [virtual] |
Set/Get the extent of the whole output image. Initial value is {-10,10,-10,10,-10,10}
virtual void vtkRTAnalyticSource::GetWholeExtent | ( | int & | , |
int & | , | ||
int & | , | ||
int & | , | ||
int & | , | ||
int & | |||
) | [virtual] |
Set/Get the extent of the whole output image. Initial value is {-10,10,-10,10,-10,10}
virtual void vtkRTAnalyticSource::GetWholeExtent | ( | int | [6] | ) | [virtual] |
Set/Get the extent of the whole output image. Initial value is {-10,10,-10,10,-10,10}
virtual void vtkRTAnalyticSource::SetCenter | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Set/Get the center of function. Initial value is {0.0,0.0,0.0}
virtual void vtkRTAnalyticSource::SetCenter | ( | double | [3] | ) | [virtual] |
Set/Get the center of function. Initial value is {0.0,0.0,0.0}
virtual double* vtkRTAnalyticSource::GetCenter | ( | ) | [virtual] |
Set/Get the center of function. Initial value is {0.0,0.0,0.0}
virtual void vtkRTAnalyticSource::GetCenter | ( | double & | , |
double & | , | ||
double & | |||
) | [virtual] |
Set/Get the center of function. Initial value is {0.0,0.0,0.0}
virtual void vtkRTAnalyticSource::GetCenter | ( | double | [3] | ) | [virtual] |
Set/Get the center of function. Initial value is {0.0,0.0,0.0}
virtual void vtkRTAnalyticSource::SetMaximum | ( | double | ) | [virtual] |
Set/Get the Maximum value of the function. Initial value is 255.0.
virtual double vtkRTAnalyticSource::GetMaximum | ( | ) | [virtual] |
Set/Get the Maximum value of the function. Initial value is 255.0.
virtual void vtkRTAnalyticSource::SetStandardDeviation | ( | double | ) | [virtual] |
Set/Get the standard deviation of the function. Initial value is 0.5.
virtual double vtkRTAnalyticSource::GetStandardDeviation | ( | ) | [virtual] |
Set/Get the standard deviation of the function. Initial value is 0.5.
virtual void vtkRTAnalyticSource::SetXFreq | ( | double | ) | [virtual] |
Set/Get the natural frequency in x. Initial value is 60.
virtual double vtkRTAnalyticSource::GetXFreq | ( | ) | [virtual] |
Set/Get the natural frequency in x. Initial value is 60.
virtual void vtkRTAnalyticSource::SetYFreq | ( | double | ) | [virtual] |
Set/Get the natural frequency in y. Initial value is 30.
virtual double vtkRTAnalyticSource::GetYFreq | ( | ) | [virtual] |
Set/Get the natural frequency in y. Initial value is 30.
virtual void vtkRTAnalyticSource::SetZFreq | ( | double | ) | [virtual] |
Set/Get the natural frequency in z. Initial value is 40.
virtual double vtkRTAnalyticSource::GetZFreq | ( | ) | [virtual] |
Set/Get the natural frequency in z. Initial value is 40.
virtual void vtkRTAnalyticSource::SetXMag | ( | double | ) | [virtual] |
Set/Get the magnitude in x. Initial value is 10.
virtual double vtkRTAnalyticSource::GetXMag | ( | ) | [virtual] |
Set/Get the magnitude in x. Initial value is 10.
virtual void vtkRTAnalyticSource::SetYMag | ( | double | ) | [virtual] |
Set/Get the magnitude in y. Initial value is 18.
virtual double vtkRTAnalyticSource::GetYMag | ( | ) | [virtual] |
Set/Get the magnitude in y. Initial value is 18.
virtual void vtkRTAnalyticSource::SetZMag | ( | double | ) | [virtual] |
Set/Get the magnitude in z. Initial value is 5.
virtual double vtkRTAnalyticSource::GetZMag | ( | ) | [virtual] |
Set/Get the magnitude in z. Initial value is 5.
virtual void vtkRTAnalyticSource::SetSubsampleRate | ( | int | ) | [virtual] |
Set/Get the sub-sample rate. Initial value is 1.
virtual int vtkRTAnalyticSource::GetSubsampleRate | ( | ) | [virtual] |
Set/Get the sub-sample rate. Initial value is 1.
virtual int vtkRTAnalyticSource::RequestInformation | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.
Reimplemented from vtkImageAlgorithm.
virtual void vtkRTAnalyticSource::ExecuteDataWithInformation | ( | vtkDataObject * | output, |
vtkInformation * | outInfo | ||
) | [protected, virtual] |
This is a convenience method that is implemented in many subclasses instead of RequestData. It is called by RequestData.
Reimplemented from vtkImageAlgorithm.
double vtkRTAnalyticSource::XFreq [protected] |
Definition at line 124 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::YFreq [protected] |
Definition at line 125 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::ZFreq [protected] |
Definition at line 126 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::XMag [protected] |
Definition at line 127 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::YMag [protected] |
Definition at line 128 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::ZMag [protected] |
Definition at line 129 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::StandardDeviation [protected] |
Definition at line 130 of file vtkRTAnalyticSource.h.
int vtkRTAnalyticSource::WholeExtent[6] [protected] |
Definition at line 131 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::Center[3] [protected] |
Definition at line 132 of file vtkRTAnalyticSource.h.
double vtkRTAnalyticSource::Maximum [protected] |
Definition at line 133 of file vtkRTAnalyticSource.h.
int vtkRTAnalyticSource::SubsampleRate [protected] |
Definition at line 134 of file vtkRTAnalyticSource.h.