#include <Fractal.h>
Public Member Functions | |
Fractal () | |
Public constructor. | |
virtual | ~Fractal () |
Virtual destructor. | |
common::ErrorCodeType | Allocate (int width, int height) |
Allocates fractal. | |
common::ErrorCodeType | Generate (int scale) |
Generates fractal. | |
common::ErrorCodeType | GetData (int x, int y, int &rData) const |
Gets fractal data. | |
Private Member Functions | |
common::ErrorCodeType | SetData (int x, int y, int data) |
Sets fractal data. | |
common::ErrorCodeType | Pass (int xstep, int ystep, int step, int scale) |
Makes single fractal generation pass. | |
Private Attributes | |
unsigned char * | m_pData |
Pointer to array of fractal data. | |
int | m_Size |
Size of one side of the fractal data. |
Fractal | ( | ) |
Public constructor.
~Fractal | ( | ) | [virtual] |
Virtual destructor.
common::ErrorCodeType Allocate | ( | int | width, | |
int | height | |||
) |
Allocates fractal.
Failure otherwise.
width | Width of fractal. |
height | Height of fractal. |
common::ErrorCodeType Generate | ( | int | scale | ) |
Generates fractal.
Failure otherwise.
scale | Scaling factor. |
common::ErrorCodeType GetData | ( | int | x, | |
int | y, | |||
int & | rData | |||
) | const |
Gets fractal data.
Failure otherwise.
x | X coordinate. |
y | Y coordinate. |
rData | Fractal data. |
common::ErrorCodeType SetData | ( | int | x, | |
int | y, | |||
int | data | |||
) | [private] |
Sets fractal data.
Failure otherwise.
x | X coordinate. |
y | Y coordinate. |
data | Fractal data. |
common::ErrorCodeType Pass | ( | int | xstep, | |
int | ystep, | |||
int | step, | |||
int | scale | |||
) | [private] |
Makes single fractal generation pass.
xstep | X step direction. |
ystep | Y step direction. |
step | Width of step. |
scale | Scaling factor. |
unsigned char* m_pData [private] |
Pointer to array of fractal data.
int m_Size [private] |
Size of one side of the fractal data.
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander