STIRA
0.1
|
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 | |
Image * | CreateMandelbrot (double centerX, double centerY, double width) |
Generates Mandelbrot set http://en.wikipedia.org/wiki/Mandelbrot_set. More... | |
Image * | CreateJulia (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 | |
class to generate fractals It can generate the Mandelbrot set and associated Julia sets
Image * stira::imagetools::FractalGenerator::CreateJulia | ( | double | centerX, |
double | centerY, | ||
double | width, | ||
double | Cx, | ||
double | Cy | ||
) |
Generates Julia set http://www.karlsims.com/julia.html.
centerX | mathematical x coordinate of image center |
centerY | mathematical y coordinate of image center |
width | mathematical 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.
centerX | mathematical x coordinate of image center |
centerY | mathematical y coordinate of image center |
width | mathematical 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
radius | the escape radius |
void stira::imagetools::FractalGenerator::SetMaxNumberOfIterations | ( | int | maxNr | ) |
sets the maximum number of iterations to test if a point can escape
maxNr | the maximal number of iterations |
void stira::imagetools::FractalGenerator::SetRenderDimensions | ( | int | width, |
int | height | ||
) |
sets the render dimensions
width | the number of pixels in x direction of the final image |
height | the number of pixels in y direction of the final image |