#include <cellspace.h>
Public Member Functions | |
CellSpace (Model *parent, int w, int h) | |
~CellSpace () | |
void | run (int iteration=1) |
Model * | getParent () |
cl_mem * | getSpace () |
int | getWidth () |
int | getHeight () |
void | setValue (string key, Variant v) |
Variant | getValue (string key) |
unsigned char * | renderToTexture () |
CellSpace::CellSpace | ( | Model * | parent, | |
int | w, | |||
int | h | |||
) |
Vytvory stavovy priestor modelu
parent | rodic ku ktoremu je dany stavovy priestor priradeny | |
w | sirka v pocte buniek | |
h | vyska v pocte buniek |
CellSpace::~CellSpace | ( | ) |
int CellSpace::getHeight | ( | ) | [inline] |
Model* CellSpace::getParent | ( | ) | [inline] |
cl_mem* CellSpace::getSpace | ( | ) | [inline] |
Variant CellSpace::getValue | ( | string | key | ) |
int CellSpace::getWidth | ( | ) | [inline] |
unsigned char * CellSpace::renderToTexture | ( | ) |
Vykresli do textury aktualny stav priestoru
void CellSpace::run | ( | int | iteration = 1 |
) |
Spusti simulaciu daneho pristoru
iteration | pocet iteracii ktore sa maju vykonat |
void CellSpace::setValue | ( | string | key, | |
Variant | v | |||
) |