#include <AAFractalImage.h>
Public Methods | |
| AAFractalImage (FractalImage *) | |
| Constructor. | |
| void | set_subpixel_gridsize (int) |
| Sets the sub pixel grid size. | |
| int | inq_subpixel_gridsize (void) const |
| void | restart (void) |
| Initialises all the member variables for anti-aliasing 'm_image'. | |
| bool | process (void) |
| Processes the next pixel. | |
| bool | inq_done (void) const |
| int | inq_progress (void) const |
Private Attributes | |
| FractalImage * | m_image |
| FractalImage. | |
| int | m_subpixel_gridsize |
| Size of subpixel square grid. | |
| 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. | |
| 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. | |
| Vector2 | m_xsuboffs |
| Distance from current sub-pixel row to next. | |
| Vector2 | m_ysuboffs |
| Distance from current sub-pixel to next sub-pixel on current sub-pixel row. | |
This is done by comparing each pixel with it's 8 neighbours. If it is different to any of its neighbours, it is anti-aliased. Otherwise, it is assumed to be in a constant region, so it does not need anti-aliasing.
|
|
Constructor.
|
|
|
|
|
|
|
|
|
|
|
|
Processes the next pixel. This method should be called repeatedly until inq_done() returns true.
|
|
|
Initialises all the member variables for anti-aliasing 'm_image'. This must be called before process() is called, and whenever the image or sub pixel grid size changes. |
|
|
Sets the sub pixel grid size.
|
|
|
Position of bottom left corner of current pixel.
|
|
|
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.
|
|
|
Size of subpixel square grid. There will be the square of this value subpixels per pixel. |
|
|
'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. |
|
|
Distance from current sub-pixel row to next.
|
|
|
'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. |
|
|
Distance from current sub-pixel to next sub-pixel on current sub-pixel row.
|
1.2.16