STIRA  0.1
Public Member Functions | List of all members
stira::imagetools::FractalGenerator Class Reference

class to generate fractals It can generate the Mandelbrot set and associated Julia sets More...

#include <FractalGenerator.h>

Public Member Functions

 FractalGenerator ()
 constructor
 
 ~FractalGenerator ()
 destructor
 
ImageCreateMandelbrot (double centerX, double centerY, double width)
 Generates Mandelbrot set http://en.wikipedia.org/wiki/Mandelbrot_set. More...
 
ImageCreateJulia (double centerX, double centerY, double width, double Cx, double Cy)
 Generates Julia set http://www.karlsims.com/julia.html. More...
 
void SetMaxNumberOfIterations (int maxNr)
 sets the maximum number of iterations to test if a point can escape More...
 
void SetEscapeRadius (double radius)
 sets the escape radius if a point has escaped after a certain number of iterations More...
 
void SetRenderDimensions (int width, int height)
 sets the render dimensions More...
 
double GetResolutionX ()
 Gets the number of pixels per mathematical unit length in the x direction.
 
double GetResolutionY ()
 Gets the number of pixels per mathematical unit length in the y direction.
 
common::Point< double > GetMathCenterPoint ()
 Gets the mathematical center of the generated fractal.
 
double GetMathWidth ()
 Gets the mathematical width of the generated image.
 
double GetPixelWidth ()
 Gets the number of pixels in x direction of the final image.
 
double GetPixelHeight ()
 gets the number of pixels in x direction of the final image
 

Detailed Description

class to generate fractals It can generate the Mandelbrot set and associated Julia sets

Member Function Documentation

Image * stira::imagetools::FractalGenerator::CreateJulia ( double  centerX,
double  centerY,
double  width,
double  Cx,
double  Cy 
)

Generates Julia set http://www.karlsims.com/julia.html.

Parameters
centerXmathematical x coordinate of image center
centerYmathematical y coordinate of image center
widthmathematical image width

References stira::imagedata::Image::SetColor().

Image * stira::imagetools::FractalGenerator::CreateMandelbrot ( double  centerX,
double  centerY,
double  width 
)

Generates Mandelbrot set http://en.wikipedia.org/wiki/Mandelbrot_set.

Parameters
centerXmathematical x coordinate of image center
centerYmathematical y coordinate of image center
widthmathematical image width

References stira::imagedata::Image::SetColor().

void stira::imagetools::FractalGenerator::SetEscapeRadius ( double  radius)

sets the escape radius if a point has escaped after a certain number of iterations

Parameters
radiusthe escape radius
void stira::imagetools::FractalGenerator::SetMaxNumberOfIterations ( int  maxNr)

sets the maximum number of iterations to test if a point can escape

Parameters
maxNrthe maximal number of iterations
void stira::imagetools::FractalGenerator::SetRenderDimensions ( int  width,
int  height 
)

sets the render dimensions

Parameters
widththe number of pixels in x direction of the final image
heightthe number of pixels in y direction of the final image

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