-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQtGeneticAlgorithm.h
42 lines (33 loc) · 928 Bytes
/
QtGeneticAlgorithm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* QtGeneticAlgorithm.h
*
* Created on: Aug 9, 2011
* Author: Jeroen Vlek
* Email: jeroenvlek@gmail.com
* Website: www.perceptivebits.com
* License: Free Beer (Feel free to use it in every
* way possible and if you like it, make
* sure to give me credit and buy me a drink
* if we ever meet ;) )
*/
#ifndef QTGENETICALGORITHM_H_
#define QTGENETICALGORITHM_H_
#include "GeneticAlgorithm.h"
#include "QtEvoPic.h"
#include <qobject.h>
class QtEvoPic;
class QtGeneticAlgorithm: public QObject, public GeneticAlgorithm
{
Q_OBJECT
public:
QtGeneticAlgorithm(QtEvoPic& gui);
virtual ~QtGeneticAlgorithm();
public slots:
void toggle();
void setMutationInterval(int mutationInterval) { Config::SetMutationInterval(mutationInterval); }
void incrementDisplaySize();
void decrementDisplaySize();
private:
bool m_turnOn;
};
#endif /* QTGENETICALGORITHM_H_ */