VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkRTAnalyticSource Class Reference

Create an image for regression testing. More...

#include <vtkRTAnalyticSource.h>

Inheritance diagram for vtkRTAnalyticSource:
Inheritance graph
[legend]
Collaboration diagram for vtkRTAnalyticSource:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkRTAnalyticSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void SetWholeExtent (int xMinx, int xMax, int yMin, int yMax, int zMin, int zMax)
virtual intGetWholeExtent ()
virtual void GetWholeExtent (int &, int &, int &, int &, int &, int &)
virtual void GetWholeExtent (int[6])
virtual void SetCenter (double, double, double)
virtual void SetCenter (double[3])
virtual doubleGetCenter ()
virtual void GetCenter (double &, double &, double &)
virtual void GetCenter (double[3])
virtual void SetMaximum (double)
virtual double GetMaximum ()
virtual void SetStandardDeviation (double)
virtual double GetStandardDeviation ()
virtual void SetXFreq (double)
virtual double GetXFreq ()
virtual void SetYFreq (double)
virtual double GetYFreq ()
virtual void SetZFreq (double)
virtual double GetZFreq ()
virtual void SetXMag (double)
virtual double GetXMag ()
virtual void SetYMag (double)
virtual double GetYMag ()
virtual void SetZMag (double)
virtual double GetZMag ()
virtual void SetSubsampleRate (int)
virtual int GetSubsampleRate ()

Static Public Member Functions

static vtkRTAnalyticSourceNew ()
static int IsTypeOf (const char *type)
static vtkRTAnalyticSourceSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRTAnalyticSource ()
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void ExecuteDataWithInformation (vtkDataObject *data, vtkInformation *outInfo)
 ~vtkRTAnalyticSource ()

Protected Attributes

double XFreq
double YFreq
double ZFreq
double XMag
double YMag
double ZMag
double StandardDeviation
int WholeExtent [6]
double Center [3]
double Maximum
int SubsampleRate

Detailed Description

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".

Examples:
vtkRTAnalyticSource (Examples)
Tests:
vtkRTAnalyticSource (Tests)

Definition at line 35 of file vtkRTAnalyticSource.h.


Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 39 of file vtkRTAnalyticSource.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 119 of file vtkRTAnalyticSource.h.


Member Function Documentation

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.

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.

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.

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.


Member Data Documentation

Definition at line 124 of file vtkRTAnalyticSource.h.

Definition at line 125 of file vtkRTAnalyticSource.h.

Definition at line 126 of file vtkRTAnalyticSource.h.

Definition at line 127 of file vtkRTAnalyticSource.h.

Definition at line 128 of file vtkRTAnalyticSource.h.

Definition at line 129 of file vtkRTAnalyticSource.h.

Definition at line 130 of file vtkRTAnalyticSource.h.

Definition at line 131 of file vtkRTAnalyticSource.h.

Definition at line 132 of file vtkRTAnalyticSource.h.

Definition at line 133 of file vtkRTAnalyticSource.h.

Definition at line 134 of file vtkRTAnalyticSource.h.


The documentation for this class was generated from the following file: