Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkImageMandelbrotSource Class Reference

Mandelbrot image. More...

#include <vtkImageMandelbrotSource.h>

Inheritance diagram for vtkImageMandelbrotSource:

Inheritance graph
[legend]
Collaboration diagram for vtkImageMandelbrotSource:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetWholeExtent (int extent[6])
void SetWholeExtent (int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
virtual int * GetWholeExtent ()
virtual void GetWholeExtent (int &, int &, int &, int &, int &, int &)
virtual void GetWholeExtent (int[6])
virtual void SetProjectionAxes (int, int, int)
virtual void SetProjectionAxes (int[3])
virtual int * GetProjectionAxes ()
virtual void GetProjectionAxes (int &, int &, int &)
virtual void GetProjectionAxes (int[3])
virtual void SetOriginCX (double, double, double, double)
virtual void SetOriginCX (double[4])
virtual double * GetOriginCX ()
virtual void GetOriginCX (double &, double &, double &, double &)
virtual void GetOriginCX (double[4])
virtual void SetSampleCX (double, double, double, double)
virtual void SetSampleCX (double[4])
virtual double * GetSampleCX ()
virtual void GetSampleCX (double &, double &, double &, double &)
virtual void GetSampleCX (double[4])
virtual void SetMaximumNumberOfIterations (unsigned short)
virtual unsigned short GetMaximumNumberOfIterations ()
void Zoom (double factor)
void Pan (double x, double y, double z)
void CopyOriginAndSample (vtkImageMandelbrotSource *source)
void SetSample (double v)

Static Public Methods

vtkImageMandelbrotSource * New ()
int IsTypeOf (const char *type)
vtkImageMandelbrotSource * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageMandelbrotSource ()
 ~vtkImageMandelbrotSource ()
 vtkImageMandelbrotSource (const vtkImageMandelbrotSource &)
void operator= (const vtkImageMandelbrotSource &)
void Execute (vtkImageData *outData)
void Execute ()
void ExecuteInformation ()
float EvaluateSet (double p[4])

Protected Attributes

int ProjectionAxes [3]
int WholeExtent [6]
double OriginCX [4]
double SampleCX [4]
unsigned short MaximumNumberOfIterations

Detailed Description

Mandelbrot image.

Date:
2000/12/10 20:09:08
Revision:
1.19
Thanks:
Thanks to C. Charles Law who developed this class.
vtkImageMandelbrotSource creates an unsigned char image of the Mandelbrot set. The values in the image are the number of iterations it takes for the magnitude of the value to get over 2. The equation repeated is z = z^2 + C (z and C are complex). Initial value of z is zero, and the real value of C is mapped onto the x axis, and the imaginary value of C is mapped onto the Y Axis. I was thinking of extending this source to generate Julia Sets (initial value of Z varies). This would be 4 possible parameters to vary, but there are no more 4d images :( The third dimension (z axis) is the imaginary value of the initial value.
Examples:
vtkImageMandelbrotSource (examples)


Member Function Documentation

void vtkImageMandelbrotSource::CopyOriginAndSample vtkImageMandelbrotSource *    source
 

Convienence for Viewer. Copy the OriginCX and the SpacingCX. What about other parameters ???

virtual const char* vtkImageMandelbrotSource::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageSource.

virtual int vtkImageMandelbrotSource::IsA const char *    type [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 vtkImageSource.

int vtkImageMandelbrotSource::IsTypeOf const char *    type [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 vtkImageSource.

vtkImageMandelbrotSource* vtkImageMandelbrotSource::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageSource.

void vtkImageMandelbrotSource::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 vtkSource.

vtkImageMandelbrotSource* vtkImageMandelbrotSource::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageSource.

virtual void vtkImageMandelbrotSource::SetMaximumNumberOfIterations unsigned    short [virtual]
 

The maximum number of cycles run to see if the value goes over 2

virtual void vtkImageMandelbrotSource::SetOriginCX double   ,
double   ,
double   ,
double   
[virtual]
 

Imaginary and real value for C (constant in equation) and X (initial value).

virtual void vtkImageMandelbrotSource::SetProjectionAxes int   ,
int   ,
int   
[virtual]
 

Set the projection from the 4D space (4 parameters / 2 imaginary numbers) to the axes of the 3D Volume. 0=C_Real, 1=C_Imaginary, 2=X_Real, 4=X_Imaginary

void vtkImageMandelbrotSource::SetSample double    v [inline]
 

Convienence/Legacy - set all the spacing values the same.

virtual void vtkImageMandelbrotSource::SetSampleCX double   ,
double   ,
double   ,
double   
[virtual]
 

Imaginary and real value for C (constant in equation) and X (initial value).

void vtkImageMandelbrotSource::SetWholeExtent int    extent[6]
 

Set/Get the extent of the whole output Volume.

void vtkImageMandelbrotSource::Zoom double    factor
 

Convienence for Viewer. Pan 3D volume relative to spacing. Zoom constant factor.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:26:33 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002