CC-Fractal-Suite
Public Member Functions | Public Attributes | List of all members
CC::Mandelbrot Class Reference

Class implementing the Mandelbrot fractal. More...

#include <Mandelbrot.h>

Inheritance diagram for CC::Mandelbrot:
CC::Fractal CC::Pickover

Public Member Functions

 Mandelbrot (MandelbrotStashData &mandelData)
 
virtual FractalCoordsInfo calculate (COMPLEX coords) override
 Calculates the Mandelbrot fractal. More...
 
COMPLEX calculate_z (COMPLEX z, COMPLEX c)
 Calculate Z runs only the fractal math calculation. More...
 

Public Attributes

MandelbrotStashData data
 

Detailed Description

Class implementing the Mandelbrot fractal.

It is being treated as a 'principled mandelbrot', where as far as is sensibles, the formula was opened up and parameterized so that it can be animated, meaning that it is easily capable of creating fractals that are not strictly fractals. Julia sets, multibrots, and the ability to animate between them is expressed through this object.

Member Function Documentation

§ calculate()

CC::FractalCoordsInfo CC::Mandelbrot::calculate ( COMPLEX  coords)
overridevirtual

Calculates the Mandelbrot fractal.

Implements CC::Fractal.

Reimplemented in CC::Pickover.

§ calculate_z()

COMPLEX CC::Mandelbrot::calculate_z ( COMPLEX  z,
COMPLEX  c 
)

Calculate Z runs only the fractal math calculation.

This is distinct from the calculate member in that calculate initializes some data, and sets the return type conditions. This has been separated so that this class can be subclassed, and still use Mandelbrot-like fractals without duplicating the fundamental math.


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