#include <FastImageGen.h>
Inheritance diagram for FastImageGen:

Public Methods | |
| FastImageGen (FractalImage *) | |
| Constructor. | |
| void | init (void) |
| Overriden from ImageGen base class. | |
| void | restart (void) |
| Overriden from ImageGen base class. | |
| bool | process (void) |
| Overriden from ImageGen base class. | |
| bool | inq_done (void) const |
| Overriden from ImageGen base class. | |
| int | inq_progress (void) const |
| Overriden from ImageGen base class. | |
Private Attributes | |
| FractalImage * | m_image |
| FractalImage. | |
| bool | m_done |
| Flag that is set once processing is finished. | |
| int | m_progress |
| Progress counter - increments from 0 to 100 during processing. | |
| int | m_x |
| 'x' offset to current pixel. | |
| int | m_y |
| 'y' offset to current pixel. | |
| rgbcolour_t * | m_curr_rgb_pixel |
| Pointer to current RGB pixel. | |
| unsigned short * | m_curr_pixel_itns |
| Pointer to current pixel iteration count,. | |
| Vector2 | m_curr_pixel |
| Position of bottom left corner of current pixel. | |
| Vector2 | m_rowstart |
| Position in fractal space of first pixel on the current row. | |
| Vector2 | m_xoffs |
| Offset in fractal space from a pixel to the next. | |
| Vector2 | m_yoffs |
| Offset in fractal space from a pixel in one row to the next. | |
This is much faster than the technique used by ProgressiveFractalImage, but it does mean there is nothing to see until the whole image has been calculated.
|
|
Constructor.
|
|
|
Overriden from ImageGen base class.
Implements ImageGen. |
|
|
Overriden from ImageGen base class.
Implements ImageGen. |
|
|
Overriden from ImageGen base class.
Implements ImageGen. |
|
|
Overriden from ImageGen base class. Processes the next pixel. This method should be called repeatedly until inq_done() returns true.
Implements ImageGen. |
|
|
Overriden from ImageGen base class. Initialises all the member variables for processing 'm_image'. This must be called before process() is called, and whenever the image changes. Implements ImageGen. |
|
|
Position of bottom left corner of current pixel.
|
|
|
Pointer to current pixel iteration count,.
|
|
|
Pointer to current RGB pixel.
|
|
|
Flag that is set once processing is finished.
|
|
|
|
|
|
Progress counter - increments from 0 to 100 during processing.
|
|
|
Position in fractal space of first pixel on the current row.
|
|
|
'x' offset to current pixel.
|
|
|
Offset in fractal space from a pixel to the next. This is determined from the view transform and the image size. |
|
|
'y' offset to current pixel.
|
|
|
Offset in fractal space from a pixel in one row to the next. This is determined from the view transform and the image size. |
1.2.16